What transport does PostgreSQL MCP Server use?
The server uses stdio transport (MCP protocol over standard input/output).
@VivekMalipatel
Basic information
FastMCP Based MCP Server to Control Postgres
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"Postgres_MCP_Server": {
"command": "python",
"args": [
"-m",
"venv",
".mcp"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
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.
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.

Oracle MCP server with no run-sql tool: It generates tools for each of the PL/SQL procedures, tables and approved SQL you choose. The server doesn't expose a SQL prompt, and can't reveal how it's connected to Oracle.
MCP server for interacting with Neon Management API and databases
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Comments