Databases
Verified
Trust: 54/100 (Fair)PostgreSQL MCP Guide
Execute SQL queries, manage schemas, inspect tables, and interact with PostgreSQL databases. Supports parameterized queries and transactions.
891 stars 34,200 downloadsby Anthropic
Quick Start
Install
npx @mcp/postgresqlClaude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"postgresql-mcp": {
"command": "npx",
"args": [
"@mcp/postgresql"
]
}
}
}What PostgreSQL MCP Can Do
execute_query
Run SQL queries against the database
inspect_schema
View table schemas and relationships
manage_tables
Create and alter tables
Permissions Required
PostgreSQL MCP requires the following permissions. Review the risk levels before granting access.
| Permission | Description | Risk |
|---|---|---|
database.read | Read database data | low |
database.write | Write database data | high |
database.admin | Manage database schema | critical |
Platform Compatibility
| Platform | Status |
|---|---|
| Claude Desktop | Supported |
| Cursor | Supported |
| LangChain | Supported |
| AutoGen | Supported |