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
基本信息
MCP Server (STDIO) for PostgreSQL Database
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"postgres-mcp-server-aadarshjain": {
"command": "python",
"args": [
"server.py",
"postgresql://username:password@hostname:port/database"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
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.
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

Model Context Protocol Servers

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.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
评论