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

# Repository Score Stars Lang Updated
1 bytebase/dbhub Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, Mari… 84.0 2.3k TypeScript 6mo ago
2 googleapis/genai-toolbox MCP Toolbox for Databases is an open source MCP server for databases. 80.5 13k Go 6mo ago
3 mongodb-js/mongodb-mcp-server A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters… 80.0 955 TypeScript 6mo ago
4 benborla/mcp-server-mysql A Model Context Protocol server that provides read-only access to MySQL databases. This se… 73.7 1.3k JavaScript 6mo ago
5 Gentleman-Programming/engram Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5… 67.8 1.2k Go 6mo ago
6 neondatabase/mcp-server-neon MCP server for interacting with Neon Management API and databases 66.9 560 TypeScript 6mo ago
7 ralfbecher/orionbelt-semantic-layer API-first semantic layer engine with MCP server that compiles declarative YAML models into… 59.9 18 Python 6mo ago
8 fivetran/fivetran-mcp This is a model context protocol (MCP) server that Fivetran users can clone, configure, an… 59.2 9 Python 6mo 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.