universal-db-mcp  by Anarkh-Lee

Universal database connector for AI natural language querying

Created 1 month ago
499 stars

Top 62.3% on SourcePulse

GitHubView on GitHub
Project Summary

Universal DB MCP addresses the challenge of enabling AI assistants to query and analyze data from diverse databases using natural language. It acts as a universal connector, supporting 17 database types and over 55 AI platforms, thereby eliminating the need for manual SQL writing and democratizing data access for a broad technical audience.

How It Works

The project implements the Model Context Protocol (MCP) and an HTTP API, offering flexible stdio and http startup modes. It employs a database adapter layer for broad compatibility and features intelligent schema caching and batch query optimization. This architecture allows AI agents to interact with databases securely (read-only by default) and efficiently, translating natural language into actionable database queries.

Quick Start & Requirements

Installation is via npm install -g universal-db-mcp. The project requires Node.js and npm. It supports two primary startup modes: MCP (stdio) for local AI clients like Claude Desktop, and HTTP API for remote access and platforms like Dify. Detailed integration guides are available within the documentation.

Highlighted Details

  • Broad database support: 17 types including MySQL, PostgreSQL, Oracle, MongoDB, and several Chinese domestic databases.
  • Extensive platform integration: Over 55 AI assistants, IDEs, and platforms such as VS Code, ChatGPT, Cursor, and Dify.
  • Performance enhancements: Schema retrieval is up to 100x faster for large databases due to intelligent caching and batch optimization.
  • Security features: Defaults to read-only mode, with automatic sensitive data masking (phone, email, etc.).

Maintenance & Community

The README does not detail specific maintenance schedules, contributor information, or community channels like Discord or Slack. It is maintained by Anarkh-Lee.

Licensing & Compatibility

Licensed under the permissive MIT License, this project is compatible with commercial use and integration into closed-source applications.

Limitations & Caveats

Enabling write operations requires explicit use of the --danger-allow-write flag and is strongly discouraged for production environments due to security risks. Users should adhere to best practices like using read-only database accounts and secure connections.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
4
Issues (30d)
7
Star History
416 stars in the last 30 days

Explore Similar Projects

Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Michael Chiang Michael Chiang(Cofounder of Ollama), and
2 more.

enrichmcp by featureform

0.1%
642
ORM for AI agents
Created 11 months ago
Updated 1 month ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), and
12 more.

mindsdb by mindsdb

0.2%
39k
AI query engine for federated data sources
Created 7 years ago
Updated 1 day ago
Feedback? Help us improve.