What types of SQL queries are allowed?
Only SELECT queries are permitted to prevent database modifications. Connection credentials are provided via the command line and not stored.
@aadarshjain
Basic information
MCP Server (STDIO) for PostgreSQL Database
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"postgres-mcp-server-aadarshjain": {
"command": "python",
"args": [
"server.py",
"postgresql://username:password@hostname:port/database"
]
}
}
}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 Model Context Protocol (MCP) server implementation that connects to a PostgreSQL database and exposes data discovery and querying capabilities as MCP tools. It is intended for developers and AI assistants (e.g., Claude Desktop) to explore database structure and query data through a standardized interface.
Run the server by providing a PostgreSQL connection string: python server.py postgresql://username:password@hostname:port/database. For integration with Claude Desktop, add the configuration to the Claude Desktop config file (located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux) and restart the app.
Only SELECT queries are permitted to prevent database modifications. Connection credentials are provided via the command line and not stored.
Python 3.7+ and the required packages (`mcp`, `pg8000`, `sqlalchemy`) must be installed. A virtual environment is recommended.
Add a JSON entry to the Claude Desktop config file (see the config file locations above) with the command pointing to the absolute path of `server.py` and the connection string as an argument. Then restart Claude Desktop.
On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`. On Windows: `%APPDATA%\Claude\claude_desktop_config.json`. On Linux: `~/.config/Claude/claude_desktop_config.json`.
Check that the PostgreSQL connection string is correct, the server allows connections from your client, and all dependencies are installed. Use absolute paths for the Python executable if needed.
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
MCP server for interacting with Neon Management API and databases
Drop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Comments