PostgreSQL Server
Database FeaturedRead-only access to PostgreSQL databases with schema inspection and query execution. Part of the official MCP servers collection.
Author
Anthropic
Category
Database
GitHub Stars
85,203+
Clients
2 supported
Freshness
Needs review
Installation
Run this command to install:
npx -y @modelcontextprotocol/server-postgres Sample Configuration
Add this to your MCP client configuration file (e.g., claude_desktop_config.json for Claude Desktop):
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres"
]
}
}
} Use our MCP Manifest Generator to build complete configurations visually, or the MCP Config Validator to check your existing config.
Compatible Clients
Details
| Server ID | postgres |
| Author | Anthropic |
| Category | Database |
| Compatible With | Claude Desktop, Cursor |
| Tags | postgressqldatabaseofficial |
| GitHub | https://github.com/modelcontextprotocol/servers/tree/main/src/postgres |
| GitHub Stars | 85,203+ |
| Maintenance | Needs review |
About PostgreSQL Server
PostgreSQL Server is a Model Context Protocol (MCP) server created by Anthropic. It enables AI assistants to interact with PostgreSQL capabilities.
MCP (Model Context Protocol) is an open standard that allows AI models to securely connect to external tools and data sources. By installing PostgreSQL Server, you give your AI assistant the ability to perform real actions through a standardized interface, rather than just generating text about them.
This server is compatible with Claude Desktop, Cursor and has 85,203+ stars on GitHub. It falls under the "Database" category of MCP servers.
To get started, use our MCP Manifest Generator to create a complete configuration, or validate your existing setup with the MCP Config Validator.
Other Database Servers
SQLite Server
Anthropic
Full SQLite database operations including queries, tables, and schema management.
MongoDB MCP
MongoDB
Official MongoDB MCP server for working with MongoDB databases and Atlas clusters from AI clients.
Supabase MCP
Supabase
Official Supabase MCP server — manage database, auth, storage, and edge functions via AI.
Popular MCP Servers
Filesystem Server
Anthropic · 85,203+ stars
Secure file operations with configurable access controls. Read, write, and manage files and directories.
GitHub Server
GitHub · 29,569+ stars
GitHub API integration for repository management, issues, pull requests, and more. Now a standalone package maintained by GitHub.
Context7 MCP
Upstash · 54,683+ stars
Up-to-date, version-specific library documentation and code examples for AI coding agents.
Related Tools
FAQ
How do I install PostgreSQL Server?
Run "npx -y @modelcontextprotocol/server-postgres" in your terminal. Then add the server configuration to your MCP client's config file. For Claude Desktop, this is typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows.
What clients work with PostgreSQL Server?
PostgreSQL Server is compatible with Claude Desktop, Cursor. Each client has its own configuration file format, but the MCP server setup is similar across all of them.
What can I do with PostgreSQL Server?
Read-only access to PostgreSQL databases with schema inspection and query execution. Part of the official MCP servers collection. Once configured, your AI assistant can interact with these capabilities through natural language commands, making it possible to perform real actions directly from your AI chat interface.