Is this server read-only?
Yes. All queries are executed inside a READ ONLY transaction, preventing any data modification.
@vinsidious
基本情報
MCP server for getting schema information from a PostgreSQL database
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-pg-schema": {
"command": "docker",
"args": [
"build",
"-t",
"mcp/postgres",
"-f",
"src/postgres/Dockerfile",
"."
]
}
}
}Execute read-only SQL queries against the connected database
A Model Context Protocol server that provides read-only access to PostgreSQL databases, enabling LLMs to inspect database schemas and execute read-only SQL queries.
Configure the server in the claude_desktop_config.json under mcpServers using either Docker (run mcp/postgres image) or NPX (@modelcontextprotocol/server-postgres). Provide a PostgreSQL connection URL (e.g., postgresql://host.docker.internal:5432/mydb) as an argument.
query tool.Yes. All queries are executed inside a READ ONLY transaction, preventing any data modification.
You need a running PostgreSQL database and either Docker or Node.js (for NPX). The server connects to the database via the provided URL.
Include username and password in the PostgreSQL connection URL, e.g., `postgresql://user:password@host:port/db-name`.
Schema information is automatically discovered from the connected database's metadata. Each table's JSON schema includes column names and data types.
The server follows the Model Context Protocol (stdio-based transport as typical for Claude Desktop MCP servers). The README does not detail other transport options.
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
Local MCP server for DuckDB and MotherDuck
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
コメント