db-mcp
Read-only PostgreSQL database MCP server for safely exploring schema, tables, relationships, and sample data without modification.
Databases
npm 0 platforms
0 features
Install
npx -y db-mcp
Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
{
"mcpServers": {
"db-mcp": {
"command": "npx",
"args": [
"-y",
"db-mcp"
],
"env": {
"PGHOST": "<PGHOST>",
"PGPORT": "<PGPORT>",
"PGUSER": "<PGUSER>",
"PGSSLMODE": "<PGSSLMODE>",
"PGDATABASE": "<PGDATABASE>",
"PGPASSWORD": "<PGPASSWORD>",
"DATABASE_URL": "<DATABASE_URL>",
"DB_MCP_DRIVER": "<DB_MCP_DRIVER>"
}
}
}
}Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
Sources: public MCP Server directories. This is an independent third-party directory with no affiliation to or endorsement from the maintainers of the listed servers.