db-mcp-server-npx
Verified Safeby aike1202
Overview
Enables AI assistants to securely interact with various relational databases for querying data, analyzing schema, and performing controlled data modifications.
Installation
npx -y db-mcp-serverEnvironment Variables
- DATABASE_URL
- MCP_DB_READ_ONLY
- MCP_LOG_PATH
Security Notes
The server employs robust security measures against SQL injection by using parameterized queries in most database adapters (MySQL, PostgreSQL, SQLite, Oracle). Table names passed to `describe_table` and `inspect_table` tools are rigorously validated using a regex to prevent injection. The `MCP_DB_READ_ONLY` environment variable provides a critical safeguard to disable all write operations. Audit logs capture detailed information about tool calls, queries, and parameters. While the SQL Server adapter's parameter conversion logic could theoretically misinterpret '?' within string literals in AI-generated SQL, the underlying driver's parameter binding still mitigates direct SQL injection from user-supplied values.
Similar Servers
tiger-linear-mcp-server
This server acts as a wrapper for the Linear API, providing focused tools for LLMs to manage and query issue tracking and project data.
tiger-memory-mcp-server
A backend server for a Minecraft-related application, likely providing data management or proxy services.
raml-mcp-server
This server provides an implementation or framework for interacting with the Minecraft Protocol (MCP), likely for custom game logic or client interactions.
valeria-mcp-server
Provide a Microservices Communication Platform (MCP) API for managing barber shop appointments, including catalog search, barber resolution, and Google Calendar integration for scheduling and availability checks.