DirectoryPostgreSQL MCP Server
43
Health
fair
79
Popularity
Connect AI assistants directly to PostgreSQL databases. Run queries, inspect schemas, and manage data with natural language.
3,400stars
610forks
11,200views
TypeScript
MIT
Updated March 11, 2026
#postgresql#database#sql#official#mcp
Add to Claude Desktop
Paste this into your claude_desktop_config.json file:
{
"mcpServers": {
"postgresql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres"
],
"env": {
"DATABASE_URL": "postgresql://user:password@host:5432/dbname"
}
}
}
}Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Installation
npx @modelcontextprotocol/server-postgres postgresql://localhost/mydb
Key Features
Execute SQL queries with natural language
Inspect database schemas and tables
Read and write database records
Transaction support
Schema introspection
Compatibility
claude✓ Yes
openai✓ Yes
langchain✓ Yes
Maintenance Healthfair
Freshness10/40
Issue response15/30
Org backing15/20
Longevity3/10
› Community-backed
Server Info
Categorydatabase
LanguageTypeScript
LicenseMIT
StatusACTIVE
Submit Your Server
Built an MCP server? Get it listed in front of thousands of developers.
List Your Server Free