What queries are allowed?
Only SQL SELECT queries are permitted; all other SQL statements are rejected by the validation logic.
@RathodDarshil
基本信息
暂无概览
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"postgres-query": {
"command": "node",
"args": [
"/path/to/your/mcp-postgres-query-server/dist/index.js",
"postgresql://username:password@hostname:port/database"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
MCP Postgres Query Server is a Model Context Protocol server that provides a secure, read-only interface to a PostgreSQL database. It is designed for use with Claude Desktop and other MCP clients, allowing users to execute SELECT queries safely.
Clone the repository, install dependencies (npm install), and build (npm run build). Configure Claude Desktop by adding the server to claude_desktop_config.json with the command node and an argument pointing to the built dist/index.js followed by your PostgreSQL connection string. Then restart Claude Desktop.
Only SQL SELECT queries are permitted; all other SQL statements are rejected by the validation logic.
Node.js v14 or later, npm, and a PostgreSQL database with connection credentials.
Edit the `claude_desktop_config.json` file (accessible from Settings > Developer > Edit Config) and add a `postgres-query` entry with the correct path to the built server and your PostgreSQL connection string.
No, the server is strictly read-only. Query validation ensures only SELECT queries can execute.
Credentials are passed directly as a command-line argument (the connection string) and are not stored in configuration files.

Model Context Protocol Servers

Model Context Protocol Servers

Model Context Protocol Servers

Access millions of official legal and regulatory source documents from 155+ jurisdictions via MCP. Lawstronaut supports AI agents with structured legal research, legal data, laws, regulations, cases, guidance, official s
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
评论