universal-db-mcp
通用数据库 MCP 连接器:支持 MySQL、PostgreSQL、Oracle、MongoDB 等 17 种数据库,支持 Claude Desktop、Cursor、Windsurf、VS Code、ChatGPT 等 50+ 平台,用自然语言查询和分析数据
Universal DB MCP is a Model Context Protocol server that connects AI assistants to databases through natural language queries. It supports 17 database systems including MySQL, PostgreSQL, MongoDB, Oracle, Redis, and various Chinese domestic databases. The server works with 55+ platforms including Claude Desktop, Cursor, VS Code, ChatGPT, and Dify through multiple transport modes (stdio, SSE, Streamable HTTP, and REST API). It provides read-only mode by default for safety, intelligent schema caching for performance, and features like data masking and connection pooling for production use.
Key Features
Use Cases
- 01Query business intelligence data using natural language in Claude Desktop or ChatGPT
- 02Enable AI code assistants (Cursor, Cline, Continue) to analyze application databases during development
- 03Build AI agents in Dify or Coze that can access and report on production database metrics
- 04Automate data analysis workflows in n8n by connecting LLMs to databases
- 05Allow AI assistants to generate insights from customer data, sales records, or user analytics
- 06Create read-only database interfaces for AI tools to prevent accidental data modifications
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
universal-db-mcp — FAQ
What is universal-db-mcp?+
Universal DB MCP is a Model Context Protocol server that allows AI assistants to query and analyze databases using natural language. It supports 17 database types and works with 55+ AI platforms including Claude Desktop, Cursor, VS Code, ChatGPT, and Dify.
How do I install universal-db-mcp for Claude Desktop?+
Install globally with npm install -g universal-db-mcp, then add the MCP server configuration to Claude Desktop's config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows) with your database connection details, then restart Claude Desktop.
Which AI clients and platforms work with universal-db-mcp?+
It works with 55+ platforms including Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, JetBrains IDEs, ChatGPT Desktop, Dify, Coze, n8n, GitHub Copilot, Cline, Continue, Cherry Studio, LM Studio, and many more through stdio, SSE, or REST API connections.
Do I need database credentials or API keys?+
Yes, you need connection credentials (host, port, username, password, database name) for your target database. No additional API keys are required beyond the database access itself.
Is universal-db-mcp free to use?+
Yes, universal-db-mcp is open source and free under the MIT License. You only need Node.js 20+ and access to a database.
Is it safe to connect to production databases?+
The server runs in read-only mode by default, blocking all write operations (INSERT, UPDATE, DELETE, DROP). It also includes automatic sensitive data masking and fine-grained permission controls for additional safety.
How do I install universal-db-mcp?+
Open the source repository on GitHub and follow its README. universal-db-mcp is a mcp server — MCP Agents Market links you directly to the official repo.
Is universal-db-mcp free?+
universal-db-mcp is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.