PostgreSQL
Provides read-only access to PostgreSQL databases, allowing LLMs to inspect schemas and execute queries.
K_YH mcp-db-server
Introduction
This package is purely experimental and just for fun!
Do not use this code in production or with any critical databases.
This implementation grants full control over the database to the agent. Therefore, it is strongly discouraged to use shared or sensitive databases.
References
This implementation is based on the mcp/postgres Docker image.
Usage
npx @k_yh/mcp-db-server <your-postgresql-url>
For example:
npx @k_yh/mcp-db-server 'postgresql://user:password@127.0.0.1:5432/my-db'
To use this with an agent like Claude desktop or Cursor, configure it like so:
{
"mcpServers": {
"my-db-server": {
"command": "npx",
"args": [
"-y",
"@k_yh/mcp-db-server",
"postgresql://user:password@localhost:5432/my-db"
]
}
}
}
You can manipulate the database through the agent using your prompt.
Related Servers
MSSQL MCP Server
Connect to and interact with Microsoft SQL Server databases.
Advanced Memory Bank MCP
An intelligent memory management server with 14 optimized tools. It provides AI-powered summaries, a clean interface, and supports an optional PostgreSQL database with pgvector.
SQL Server Express
An MCP server for interacting with Microsoft SQL Server Express databases.
Apache Doris
MCP Server For Apache Doris, an MPP-based real-time data warehouse.
JDBC Explorer
A server that enables LLMs to connect and interact with databases via JDBC, built using the Spring AI MCP framework.
CData Google Spanner
A read-only MCP server for Google Spanner, enabling LLMs to query live data.
dbt CLI
An MCP server that wraps the dbt CLI, allowing AI agents to interact with dbt projects.
Poland Parliament
MCP server providing access to official records of activities of the Polish Parliament, including information on members, voting records, committees, and proceedings.
MongoDB MCP Server
A server for interacting with MongoDB databases and MongoDB Atlas.
InterSystems IRIS
Interact with and automate InterSystems IRIS databases.