yooztech_mcp_mysql
OfficialEnables secure read-only access to MySQL databases with automatic database inference from project co...
打开 FastMCP 连接界面并点击 “Install Now”
在 FastMCP 的连接界面中使用已准备好的 “Install Now” 按钮开始添加环境变量(ENVs)。你将在该界面看到可以填写环境变量的表单字段 —— 接下来的值都要填写到那里。准备 DB_HOST(数据库地址)
- 本地 MySQL:填写
127.0.0.1或localhost(如果 FastMCP 与数据库在同一台机器或通过本地端口转发)。 - 云数据库(RDS/Cloud SQL/Azure 等):在云控制台找到实例的连接端点(endpoint / hostname),将该值填写为 DB_HOST(示例:
mydb.xxxxxx.region.rds.amazonaws.com)。 - 容器/私有网络:填写容器或内网的 IP/主机名;若通过 SSH 隧道或端口映射,填写隧道本地监听地址(例如
127.0.0.1)和映射端口。
将得到的主机名或 IP 填到 FastMCP 表单的 DB_HOST 字段。
- 本地 MySQL:填写
确认 DB_PORT(数据库端口)
- 默认 MySQL 端口为
3306。若数据库使用自定义端口,请在云控制台/数据库配置中查到实际端口并填写到 DB_PORT 字段。 - 示例:DB_PORT = 3306
- 默认 MySQL 端口为
准备 DB_USER 和 DB_PASS(只读账号与密码)
- 推荐创建最小权限的只读账号。示例 SQL(在数据库管理员账户下运行):
CREATE USER 'mcp_tool'@'10.0.%' IDENTIFIED BY '<your-strong-pass>'; GRANT SELECT ON *.* TO 'mcp_tool'@'10.0.%'; FLUSH PRIVILEGES;- 把
<your-strong-pass>替换为强密码。若 FastMCP 从公网连接,改用合适的主机匹配(例如具体 IP 或'%)并结合防火墙规则。 - 如需更严格权限,按库/表粒度只授予
SELECT(例如GRANT SELECT ON mydb.* TO ...)。
- 把
- 在 FastMCP 表单中将用户名填写到 DB_USER,密码填写到 DB_PASS。
- 推荐创建最小权限的只读账号。示例 SQL(在数据库管理员账户下运行):
生成与保存强密码
- 使用密码管理器生成长度足够且随机的密码(例如 16+ 字符,包含大小写/数字/符号)。
- 将密码安全地保存到你的密码管理器;不要在 README 或代码仓库中明文提交密码。
确保网络/防火墙允许连接
- 在数据库服务器或云控制台中,将运行 FastMCP 的主机或 IP 列入允许连接的白名单(安全组、防火墙规则)。
- 如果不便开放端口,考虑使用 SSH 隧道或将 FastMCP 部署在与数据库同一私有网络中。
本地测试连接(可选,但强烈建议)
- 在可以访问数据库的主机上用 mysql 客户端测试:
然后输入密码并执行mysql -h <DB_HOST> -P <DB_PORT> -u <DB_USER> -pSELECT 1;或SHOW DATABASES;验证只读账号可用且权限正确。
- 在可以访问数据库的主机上用 mysql 客户端测试:
在 FastMCP 连接界面填写并保存 ENV 值
- 把上面准备好的值填写到对应字段:
- DB_HOST: <你的数据库地址>
- DB_PORT: <端口,通常 3306>
- DB_USER: <只读用户名,如 mcp_tool>
- DB_PASS: <对应密码>
- 点击保存/安装(Install Now 完成后按界面提示保存配置)。
- 把上面准备好的值填写到对应字段:
在 FastMCP 中验证 MCP 功能(运行最小查询)
- 在 FastMCP/客户端里调用本工具的轻量操作(例如 list_databases() 或 infer_database())确认能正常列出数据库或返回推断结果。若报网络/认证错误,回到上述步骤检查主机、端口、防火墙与用户名/密码。
安全建议与维护
- 使用最小权限原则:只授予必要的 SELECT 权限,按库或表细化。
- 定期轮换 DB_PASS 并更新 FastMCP 配置。
- 如果可能,限制 mcp_tool 的连接来源 IP,并启用连接监控与审计。
Quick Start
Choose Connection Type for
Authentication Required
Please sign in to use FastMCP hosted connections
Run MCP servers without
local setup or downtime
Access to 1,000+ ready-to-use MCP servers
Skip installation, maintenance, and trial-and-error.
No local setup or infra
Run MCP servers without Docker, ports, or tunnels.
Always online
Your MCP keeps working even when your laptop is off.
One secure URL
Use the same MCP from any agent, anywhere.
Secure by default
Encrypted connections. Secrets never stored locally.
Configuration for
Environment Variables
Please provide values for the following environment variables:
HTTP Headers
Please provide values for the following HTTP headers:
started!
The MCP server should open in . If it doesn't open automatically, please check that you have the application installed.
Copy and run this command in your terminal:
Make sure Gemini CLI is installed:
Visit Gemini CLI documentation for installation instructions.
Make sure Claude Code is installed:
Visit Claude Code documentation for installation instructions.
Installation Steps:
Configuration
Installation Failed
More for Database
View All →Supabase MCP Server
Connect Supabase projects directly with AI assistants using the Model Context Protocol (MCP). This server standardizes communication between Large Language Models and Supabase, enabling AI to manage tables, query data, and interact with project features like edge functions, storage, and branching. Customize access with read-only or project-scoped modes and select specific tool groups to fit your needs. Integrated tools cover account management, documentation search, database operations, debugging, and more, empowering AI to assist with development, monitoring, and deployment tasks in your Supabase environment efficiently and securely.
Svelte
Official Svelte documentation access and code analysis server that provides up-to-date reference material, playground link generation, and intelligent autofixer capabilities for detecting common patterns, anti-patterns, and migration opportunities in Svelte 5 and SvelteKit projects.
ClickHouse
Unlock powerful analytics with the ClickHouse MCP Server—seamlessly run, explore, and manage SQL queries across ClickHouse clusters or with chDB’s embedded OLAP engine. This server offers easy database and table listing, safe query execution, and flexible access to data from files, URLs, or databases. Built-in health checks ensure reliability, while support for both ClickHouse and chDB enables robust data workflows for any project.