DevTk.AI

PostgreSQL Server

Database Featured

Read-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

Claude DesktopCursor

Details

Server IDpostgres
AuthorAnthropic
CategoryDatabase
Compatible WithClaude Desktop, Cursor
Tags
postgressqldatabaseofficial
GitHubhttps://github.com/modelcontextprotocol/servers/tree/main/src/postgres
GitHub Stars79,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

Popular MCP Servers

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.