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 (10%), freshness (20%), issue health (20%), contributors (8%), and inbound dependents (22%). Average score across these 8 tools: 90.5.

# Repository Score Stars Lang Updated
1 kossakovsky/selfhost-ai One-command installer for a self-hosted AI stack on your own server: n8n, Ollama, Open Web… 97.3 944 Shell 9d ago
2 Higangssh/homebutler 🏠 Tells you what changed on your server — only what's worth telling. Single Go binary, no… 93.0 302 Go 8d ago
3 erikdarlingdata/PerformanceStudio Free, open-source SQL Server execution plan analyzer — cross-platform GUI + CLI with 30 an… 91.1 244 C# 7d ago
4 FreePeak/db-mcp-server A powerful multi-database server implementing the Model Context Protocol (MCP) to provide … 91.0 462 Go 7d ago
5 runekaagaard/mcp-alchemy A MCP (model context protocol) server that gives the LLM access to and knowledge about rel… 90.8 420 Python 10d ago
6 Lyellr88/marm-memory Local-first 3-in-1 AI memory layer & MCP server for Claude Code, Codex, Grok, Gemini, VS C… 88.3 420 Python 8d ago
7 icoretech/airbroke 🔥 Lightweight, Airbrake/Sentry-compatible, PostgreSQL-based Open Source Error Catcher 86.6 220 TypeScript 7d ago
8 Dicklesworthstone/meta_skill Local-first skill management platform for AI coding agents: dual SQLite+Git persistence, s… 86.2 206 Rust 10d 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 the core 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.