What type of database access does mcp-server-postgres provide?
It provides read-only access only. All queries are executed within READ ONLY transactions to protect your data.
@yuru-sha
Basic information
MCP Server for PostgreSQL databases
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-postgres-yuru-sha": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/postgres",
"postgresql://host:port/dbname"
]
}
}
}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.
mcp-server-postgres is a Model Context Protocol (MCP) server for PostgreSQL databases. It lets LLMs inspect database schemas and execute read-only queries, providing safe, read-only access to PostgreSQL through the MCP interface.
Install via Docker (build with make docker and run with docker run -i --rm mcp/postgres postgresql://host:port/dbname) or install via Smithery (npx -y @smithery/cli install @yuru-sha/mcp-server-postgres --client claude). For Claude Desktop, add a configuration entry to claude_desktop_config.json specifying the Docker command and connection URL.
It provides read-only access only. All queries are executed within READ ONLY transactions to protect your data.
Use a connection URL in the format `postgresql://[user][:password]@host[:port]/database`. Replace `/database` with your database name.
You need either Docker (to run the provided Docker image) or Node.js (if installing via Smithery/npm). A running PostgreSQL instance is required.
No. The server enforces read-only queries; any write operations are blocked by the READ ONLY transaction mode.
Authentication is handled through the PostgreSQL connection string, which can include username and password. For enhanced security, creating a dedicated read-only PostgreSQL user is recommended.
An official Qdrant Model Context Protocol (MCP) server implementation
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
Local MCP server for DuckDB and MotherDuck
Comments