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
Awesome-MCP-Servers
A curated, community-driven list of Model Context Protocol (MCP) servers, tools, frameworks, clients, and utilities, enabling AI models to securely interact with local and remote resources.
tiger-linear-mcp-server
This server acts as a wrapper around the Linear API, providing focused tools to Language Models (LLMs) for interacting with project management data like issues, users, and projects.
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.