Best MCP Servers for Databases
Stop copying schema definitions into chat. These MCP servers let Claude, Cursor, and Cline query your databases directly — read tables, run SQL, even modify data with your approval.
Top Picks
Server Comparison
| Server | Database | Read | Write | Schema | Stars |
|---|---|---|---|---|---|
| postgres-mcp | PostgreSQL | ✓ | ✓ | ✓ | 1,247 |
| sqlite-mcp | SQLite | ✓ | ✓ | ✓ | 892 |
| mongodb-mcp | MongoDB | ✓ | Read-only | ✓ | 634 |
| redis-mcp | Redis | ✓ | ✓ | ✗ | 421 |
| mysql-mcp | MySQL | ✓ | ✓ | ✓ | 378 |
What You Can Do
"Show me the schema for the users table"
The postgres-mcp server exposes schema introspection. Ask Claude to describe any table, list foreign keys, or find columns without indexes. No more \d commands.
Browse database servers →"Find all orders from last month over $500"
Natural language to SQL. The model writes the query, the MCP server executes it, and returns results. Cursor can iterate: "Now join with customers and group by city."
Browse database servers →"Is there a migration that adds this column?"
Search across schema history, migration files, and current state. The model can correlate Git history with schema changes to answer questions no single query can.
Browse database servers →Install Database MCP Servers
Use our VS Code extension to install any of these servers in one click.
Get the Extension