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: 83.7.

# Repository Score Stars Lang Updated
1 erikdarlingdata/PerformanceMonitor Free, open-source SQL Server performance monitoring. All the important stuff. Built-in MCP… 89.4 255 C# 5d ago
2 redis/mcp-redis The official Redis MCP Server is a natural language interface designed for agentic applica… 88.8 454 Python 1d ago
3 mongodb-js/mongodb-mcp-server A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters… 88.6 965 TypeScript 1d ago
4 Gentleman-Programming/engram Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5… 86.3 1.3k Go 5d ago
5 benborla/mcp-server-mysql A Model Context Protocol server that provides read-only access to MySQL databases. This se… 85.2 1.4k JavaScript 8d ago
6 neondatabase/mcp-server-neon MCP server for interacting with Neon Management API and databases 78.6 564 TypeScript 1d ago
7 pgEdge/pgedge-postgres-mcp pgEdge MCP Server. A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI. … 77.0 90 Go 5d ago
8 HenkDz/selfhosted-supabase-mcp An MCP Server for your Self Hosted Supabase 75.4 118 TypeScript 27d 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.