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
79,000+
Clients
2 supported
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 | 79,000+ |
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 79,000+ 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.
Supabase MCP
Supabase
Official Supabase MCP server — manage database, auth, storage, and edge functions via AI.
MySQL MCP
Community
MySQL database integration with query execution, schema exploration, and data management.
Popular MCP Servers
Filesystem Server
Anthropic · 79,000+ stars
Secure file operations with configurable access controls. Read, write, and manage files and directories.
GitHub Server
GitHub · 16,000+ stars
GitHub API integration for repository management, issues, pull requests, and more. Now a standalone package maintained by GitHub.
Brave Search Server
Anthropic · 79,000+ stars
Web and local search using the Brave Search API with privacy-focused results.
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.