Best for
- AI coding tools that need to interact with PostgreSQL, MySQL, Redis, or MongoDB via typed JSON
- Scripting and automation workflows involving database operations
Pare DB is an MCP server from the Pare project that wraps common database CLI tools (psql, mysql, redis-cli, mongosh) and returns schema-validated JSON instead of raw terminal text. Designed for AI agents (e.g., Claude, Cursor) to interact directly with databases without fragile parsing. Suitable for developers and teams using AI coding tools to perform standard database operations like queries, table management, and data manipulation. Not intended for users needing advanced database administration features or non-standard CLI workflows. It requires local installation of the underlying CLI tools and communicates via stdio. Risks include potential data misuse by AI agents, such as destructive operations, and exposure of sensitive data if credentials are present. Troubleshooting typically involves verifying CLI tool installation, correct MCP configuration, and database connectivity.
Install via npm using npx: npx @paretools/db. It is recommended to configure tool selection via environment variables like PARE_DB_TOOLS to limit available tools. For MCP clients, add a server entry with command npx and args -y @paretools/db.
{
"command": "npx",
"args": [
"-y",
"@paretools/db"
]
}