MCP tool for connecting to MySQL, PostgreSQL, Redis and MongoDB databases
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"poly-query-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Poly Query MCP Poly Query MCP 是一个支持多种数据库查询的MCP(Model Context Protocol)工具,允许您通过MCP协议查询MySQL、PostgreSQL、Redis和MongoDB数据库。 ## 功能特性 - 🔌 **多数据库支持**: 支持MySQL、PostgreSQL、Redis和MongoDB - ⚙️ **灵活配置**: 支持配置文件和环境变量配置 - 🛡️ **错误处理**: 完善的错误处理和异常管理 - 📝 **日志记录**: 结构化的日志记录系统 - 🔧 **MCP协议**: 完全兼容MCP协议,可与Claude等AI助手集成 ## 快速开始 ### 安装 #### 使用uv安装(推荐) ```bash # 从PyPI安装 uv add poly-query-mcp # 或者从GitHub安装 uv add git+https://github.com/yourusername/poly-query-mcp.git # 或者使用uvx直接运行 uvx poly-query-mcp ``` #### 传统安装方式 1. 克隆仓库 ```bash git clone <repository-url> cd poly_query_mcp ``` 2. 创建虚拟环境 ```bash python -m venv .venv .venv\Scripts\activate # Windows source .venv/bin/activate # Linux/Mac ``` 3. 安装依赖 ```bash pip install -r requirements.txt ``` ### 配置 1. 复制示例配置文件 ```bash cp config.json config.json ``` 2. 编辑配置文件,添加您的数据库连接信息 ### 使用 启动MCP服务器: ```bash # 使用uvx uvx poly-query-mcp # 或者传统方式 python main.py ``` mcp接入使用: 1. 在支持mcp client中(如Claude Desktop)的配置文件中添加此MCP服务器(参考下面完整的mcp的数据库配置): ```json { "mcpServers": { "poly-query-mcp": { "command": "uvx", "args": [ "poly-query-mcp", "--mysql-host", "localhost", "--mysql-port", "3306", "--mysql-user", "root", "--mysql-password", "your_mysql_password", "--mysql-database", "your_mysql_database" ] } } } ``` 1. 重启mcp服务 2. 在对话中使用数据库查询功能 更多安装和配置选项请参考 [uv安装指南](docs/UV_INSTALLATION.md) ## 数据库配置 Poly Query MCP 支持多种配置方式,包括传统配置文件、增强配置文件和环境变量。您可以根据需要选择最适合的配置方式。 ### 1. 直接传入数据库参数 ```json { "mcpServers": { "poly-query-mcp": { "command": "uvx", "args": [ "poly-query-mcp", "--mysql-host", "localhost", "--mysql-port", "3306", "--mysql-user", "root", "--mysql-password", "password", "--mysql-database", "mysql_database", "--postgresql-host", "localhost", "--postgresql-port", "5432", "--postgresql-user", "postgres", "--postgresql-password", "password", "--postgresql…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.