Google PageRank for AI agents. 25,000+ tools indexed.

Best MCP Servers for Database & SQL

Top-ranked MCP servers for database access — PostgreSQL, MySQL, SQLite, MongoDB, Redis, and more. Scored by stars, freshness, issue health, and real usage signals.

Database MCP servers give AI agents direct, structured access to SQL and NoSQL databases through the Model Context Protocol. Instead of writing raw connection code, you define the query in natural language and the MCP server handles translation, execution, and type-safe results.

This guide ranks the top-performing database MCP servers from the AgentRank index — covering PostgreSQL, MySQL, SQLite, MongoDB, Redis, DuckDB, and cloud databases like Neon, Supabase, and PlanetScale. Scores are computed from a five-signal composite: stars, freshness, issue health, contributor depth, and inbound dependents.

Top Database & SQL MCP servers

Ranked by the composite AgentRank score — a weighted blend of stars (15%), freshness (25%), issue health (25%), contributors (10%), and inbound dependents (25%). Average score across these 8 tools: 86.4.

# Repository Score Stars Lang Updated
1 erikdarlingdata/PerformanceMonitor Free, open-source SQL Server performance monitoring — 32 collectors, real-time alerts, gra… 91.2 281 C# 1d ago
2 mongodb-js/mongodb-mcp-server A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters… 89.8 974 TypeScript 1d ago
3 redis/mcp-redis The official Redis MCP Server is a natural language interface designed for agentic applica… 89.2 462 Python 4d ago
4 Gentleman-Programming/engram Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5… 88.2 1.9k Go 1d ago
5 erikdarlingdata/PerformanceStudio Free, open-source SQL Server execution plan analyzer — cross-platform GUI + CLI with 30 an… 86.3 129 C# 2d ago
6 pgEdge/pgedge-postgres-mcp pgEdge MCP Server. A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI. … 85.5 105 Go 1d ago
7 benborla/mcp-server-mysql A Model Context Protocol server that provides read-only access to MySQL databases. This se… 81.9 1.4k JavaScript 17d ago
8 call518/MCP-PostgreSQL-Ops 🔍Professional MCP server for PostgreSQL operations & monitoring: 30+ extension-independen… 78.8 142 Python 1d ago

See all database tools in the index →

Choosing by use case

Relational DBs (Postgres, MySQL)
Query and manage structured data with full SQL support, schema inspection, and transactional writes.
Document stores (MongoDB)
Flexible schema access for document-based data with aggregation pipeline support.
Caching & real-time (Redis)
Key-value reads/writes, pub-sub, and sorted sets for session data, leaderboards, and real-time feeds.
Analytics & OLAP (DuckDB)
In-process columnar queries over Parquet, CSV, and large local datasets at analytical speed.

Quick setup

Most MCP servers follow the same config pattern. Add this to your Claude Desktop, Cursor, or Windsurf MCP config file:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"]
    }
  }
}

See the integrations page for platform-specific setup guides for Claude Code, Cursor, VS Code, Windsurf, and Cline.

Reading the AgentRank signals

Each tool in this guide is scored on five signals that predict long-term reliability:

Signal Weight What it means
Stars 15% Raw popularity — how many developers have found and bookmarked this tool
Freshness 25% Days since last commit — tools with no recent commits decay hard after 90 days
Issue health 25% Ratio of closed to total issues — measures maintainer responsiveness
Contributors 10% More contributors = less bus-factor risk, broader review surface
Dependents 25% How many other repos depend on this — the strongest signal of real-world adoption

Full scoring methodology →

Query this live from your editor: Install AgentRank in Cursor, VS Code, or Claude Code — your AI agent can query live rankings on demand.

Missing a tool? Submit it to the index — new tools are scored in the next nightly crawl.

Get the weekly AgentRank digest

Top movers, new tools, ecosystem insights — straight to your inbox.