</>MCP Agents Market
MCP Server

universal-db-mcp

by Anarkh-Lee927TypeScriptUpdated 2026-03-17

通用数据库 MCP 连接器:支持 MySQL、PostgreSQL、Oracle、MongoDB 等 17 种数据库,支持 Claude Desktop、Cursor、Windsurf、VS Code、ChatGPT 等 50+ 平台,用自然语言查询和分析数据

Claude DesktopClaude CodeCursorWindsurfVS CodeChatGPTDifyCoze

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

17 database types supported: MySQL, PostgreSQL, Oracle, SQL Server, MongoDB, Redis, SQLite, and 10 Chinese databases (Dameng, KingbaseES, GaussDB, OceanBase, TiDB, ClickHouse, etc.)
Multiple transport modes: stdio for local clients, SSE/Streamable HTTP for remote access, and REST API for custom integrations
Read-only mode by default with fine-grained permission control (safe, readwrite, full, custom)
Performance optimizations: schema caching with configurable TTL, batch query optimization (up to 100x faster), connection pooling
Security features: automatic sensitive data masking (phone, email, ID, bank card), TCP Keep-Alive, automatic reconnection
Multi-schema support with automatic discovery for PostgreSQL, SQL Server, Oracle, and others
Schema enhancement with table comments and implicit relationship inference for improved Text2SQL accuracy
Works with 55+ platforms including Claude Desktop, Cursor, Windsurf, VS Code, JetBrains IDEs, ChatGPT, Dify, Coze, n8n, and LangChain

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 more

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.

Related searches