What transport does PostgreSQL MCP Server use?
The server uses stdio transport (MCP protocol over standard input/output).
@VivekMalipatel
基本情報
FastMCP Based MCP Server to Control Postgres
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"Postgres_MCP_Server": {
"command": "python",
"args": [
"-m",
"venv",
".mcp"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
A FastMCP-powered Model Context Protocol server that gives AI assistants (Claude, Cursor, etc.) full, structured access to a PostgreSQL database — no SQL knowledge required from the user.
Clone the repository, create a virtual environment, install dependencies from requirements.txt, and configure a .env file with database credentials. Then connect an MCP-compatible client (e.g., Claude Desktop) by adding the provided JSON block to its MCP config file. Alternatively, run manually with python postgres_mcp_server.py.
execute_query toolThe server uses stdio transport (MCP protocol over standard input/output).
Python 3.8+ and a PostgreSQL server (local or remote) with the `uv` package runner (recommended) or `pip`.
Via a `.env` file with `POSTGRES_HOST`, `POSTGRES_PORT`, `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD`, or directly in the client config's `env` block.
`mcp[cli]`, `asyncpg`, `psycopg2-binary`, `python-dotenv`, `httpx`, `uvicorn`, and `uv`.
The `postgres://data/{table_name}` resource returns only the first 100 rows as a safe preview. Other tools allow configurable limits.

Model Context Protocol Servers
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
コメント