Back to Home
neverinfamous icon

db-mcp

Verified Safe

by neverinfamous

Overview

An enterprise-grade SQLite MCP server for database management, analytics, and AI-native operations with OAuth 2.0 authentication and granular access control.

Installation

Run Command
docker run -i --rm -v $(pwd):/workspace writenotenow/db-mcp:latest --sqlite-native /workspace/database.db

Environment Variables

  • DB_MCP_TOOL_FILTER
  • DATABASE_URI
  • SQLITE_DATABASE
  • POSTGRES_URI
  • MYSQL_URI
  • MONGODB_URI
  • REDIS_URI
  • KEYCLOAK_URL
  • KEYCLOAK_REALM
  • KEYCLOAK_CLIENT_ID
  • DBMCP_PORT
  • DBMCP_OAUTH_ENABLED

Security Notes

The server implements robust security measures including: OAuth 2.0 authentication (RFC 9728/8414 compliant) with JWT validation and JWKS for signature verification; strict scope-based authorization; default restrictive CORS configuration; and extensive input validation (regex for table/column names) to prevent SQL injection. SQL queries predominantly use parameter binding, and logging sanitizes messages to prevent log injection. Strict TypeScript and ESLint configurations contribute to overall code quality and reduce potential vulnerabilities. No 'eval' or obfuscation patterns were observed. A point is deducted as some SQL string construction involves manual escaping rather than universally relying on parameter binding, though the implemented validation significantly mitigates this.

Similar Servers

Stats

Interest Score55
Security Score9
Cost ClassMedium
Avg Tokens7000
Stars1
Forks0
Last Update2025-12-12

Tags

SQLiteMCP ServerOAuth 2.0Data ManagementAnalyticsAI Tools