如何配置数据库连接?
通过环境变量设置 `MYSQL_HOST`、`MYSQL_USER`、`MYSQL_PASSWORD`、`MYSQL_DATABASE`,`MYSQL_PORT` 可选(默认 3306);也可在运行时通过 `connect_db` 工具传入参数。
@MCP-Mirror
基本信息
Mirror of
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Malove86_mcp-mysql-server": {
"command": "npx",
"args": [
"@malove86/mcp-mysql-server"
]
}
}
}Connect to MySQL database (optional if environment variables are set)
Execute a SELECT query
List all tables in the database
Get table structure
一个基于 Model Context Protocol 的 MySQL 数据库操作服务器,使 AI 模型能够通过标准化接口与 MySQL 数据库进行交互。
支持两种部署模式:在 MCP 配置文件中的本地模式通过 npx 运行并设置环境变量(MYSQL_HOST、MYSQL_USER、MYSQL_PASSWORD、MYSQL_DATABASE、MYSQL_PORT 可选),或远程 URL 模式指定服务器地址。服务器启动后提供 connect_db、query、list_tables、describe_table 等工具。
通过环境变量设置 `MYSQL_HOST`、`MYSQL_USER`、`MYSQL_PASSWORD`、`MYSQL_DATABASE`,`MYSQL_PORT` 可选(默认 3306);也可在运行时通过 `connect_db` 工具传入参数。
提供 `connect_db`、`query`(执行 SELECT 查询)、`list_tables`(列出所有表)、`describe_table`(获取表结构)四个工具。
支持最多 50 个并发连接(可配置),连接池自动管理以提高资源利用率。
使用预处理语句,执行前验证查询,并在完成后自动关闭连接。
新增多用户并发支持、高效连接池管理、请求级别隔离、详细日志记录、改进的错误处理和性能优化。
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.

Model Context Protocol Servers
An official Qdrant Model Context Protocol (MCP) server implementation
Connect ClickHouse to your AI assistants.

Connect Karma.Domains to ChatGPT, Claude, Cursor, VS Code, or another MCP client — and find a domain in plain language. The same auctions, expired, backorder, and buy-now data you use in the app, plus saved filters, note
评论