Is this server read-only?
Yes. All queries are executed inside a READ ONLY transaction, preventing any data modification.
@vinsidious
Basic information
MCP server for getting schema information from a PostgreSQL database
Add this server to your MCP-compatible client using the configuration below.
{
"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.
MCP server for interacting with Neon Management API and databases
MCP server for interacting with Neon Management API and databases
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.

Safety-first stdio MCP server with 38 tools for operating Docker-based local-ydb environments locally or over SSH.
Comments