← MCP Server Directory

Database MCP Servers

Database MCP Servers

Database MCP servers help Claude, Cursor, and AI agents inspect schemas, query sandbox data, and reason about product data with explicit access boundaries.

Recommended database servers

Start with the servers below, then review permissions, credentials, and client-specific setup before connecting production resources.

Review security checklist →
Database

Read-only database access with schema inspection.

ClaudeCursorGeneric
npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb
Database

SQLite database interaction and querying.

ClaudeCursorGeneric
npx -y @modelcontextprotocol/server-sqlite /path/to/database.db
Database

Redis operations including read, write, and search.

ClaudeCursorGeneric
npx -y @modelcontextprotocol/server-redis

Best first use case

Use this category when the agent has a clear task that needs structured access, not as a default permission bundle for every chat.

Setup checklist

Install one server, confirm the client can discover tools, run a harmless test, and document any tokens or paths as placeholders only.

Safety boundary

Prefer read-only access first, avoid broad production credentials, and require review before write-capable or external-facing actions.

Before production access

Audit permissions, secrets, and rollback controls

Turn your selected database servers into a reviewable deployment decision with permission scoring, prompt-injection checks, and rollout gates.

Open the Audit Pack