MCPHub

0 serversUpdated Sep 16, 2026

TasksCollectionsPlaygroundSubmit
MCPHub

Catalog

  • Servers
  • Browse A–Z
  • Trending
  • Categories
  • Tasks
  • Collections
  • Playground
  • Submit
  • For agents

Company

  • About

Shout out

  • Formatly
  • Hirime

Searchable catalog of Model Context Protocol servers. Find tools that connect your AI assistant to the services and data you use.

PrivacyTerms

© 2026 MCPHub

  1. Home
  2. /Tasks
  3. /Query Postgres from Cursor

Query Postgres from Cursor

List schemas, run SQL, and explain slow queries

The Databases category has 100+ servers. Most are unrelated to Postgres. This page narrows to servers that actually speak SQL against PostgreSQL.

Ads

Pick a server

  1. 1
    modelcontextprotocol/server-postgresRecommendedOfficial0

    Official PostgreSQL MCP — solid default for schema browsing and SQL from the assistant.

  2. 2C
    crystaldba/postgres-mcpCommunity0

    Community DBA-oriented server with index advice and health checks.

  3. 3N
    neondatabase/mcp-server-neonOfficial0

    Official Neon server when your database is serverless Postgres on Neon.

  4. 4J
    JaviMaligno/postgres_mcpCommunity0

    Small community alternative for straightforward Postgres access.

Official

Start with the official PostgreSQL MCP when you want a maintained baseline for schema inspection and queries.

Community

Use Crystal DBA for index and health tooling, Neon for serverless Postgres, or a slim community server for read-only access.

Config for Cursor

One server — modelcontextprotocol/server-postgres. Not a stack merge.

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://USER:PASSWORD@HOST:5432/DB"
      ]
    }
  }
}

Added 17 days ago · Aug 30, 2026

FAQ

Is it safe to give the agent write access?
Prefer a read-only database role for exploration. Grant writes only when you intentionally want migrations or data fixes from chat.
Official PostgreSQL MCP or Crystal DBA?
Official for everyday query and schema work. Crystal DBA when you care about indexes, bloat, and operational health.

Related jobs

  • Query a local SQLite database
  • Query and manage Supabase
  • Persistent memory for your assistant