MCP MySQL Server
mcp-сервер-mysql
Model Context Protocol Server для баз данных MySQL. Этот сервер позволяет LLM проверять схемы баз данных и выполнять запросы только для чтения.
Функции
Доступ только для чтения к базам данных MySQL
Возможности проверки схем
Безопасное выполнение запросов в транзакциях READ ONLY
Поддержка докера
Доступен пакет NPM
Related MCP server: MySQL MCP Server
Установка
Использование Докера
# Build the Docker image
make docker
# Run with Docker
docker run -i --rm mcp/mysql mysql://host:port/dbnameУстановка через Smithery
Чтобы автоматически установить сервер баз данных MySQL для Claude Desktop через Smithery :
npx -y @smithery/cli install @yuru-sha/mcp-server-mysql --client claudeИспользование
С Клодом Десктопом
Добавьте следующую конфигурацию в ваш claude_desktop_config.json :
{
"mcpServers": {
"mysql": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/mysql",
"mysql://host:port/dbname"
]
}
}
}Примечание: при использовании Docker на macOS используйте host.docker.internal , если сервер MySQL работает в сети хоста.
Формат URL-адреса подключения
mysql://[user][:password]@host[:port]/databaseЗамените /database на имя вашей базы данных.
Разработка
# Initial setup
make setup
# Build the project
make build
# Format code
make format
# Run linter
make lintЛицензия
Этот проект выпущен под лицензией MIT .
Безопасность
Этот сервер обеспечивает доступ только для чтения, чтобы защитить вашу базу данных. Все запросы выполняются в транзакциях READ ONLY.
Для повышения безопасности мы рекомендуем создать пользователя с правами только для чтения.
Внося вклад
Вклады приветствуются! Пожалуйста, не стесняйтесь отправлять запрос на включение.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables read-only access to MySQL databases through natural language queries. Provides automatic table schema discovery and executes SELECT, SHOW, DESCRIBE, and EXPLAIN statements within secure read-only transactions.MIT
- FlicenseNot gradedqualityDmaintenanceEnables safe interaction with MySQL databases through SELECT queries, table structure inspection, and database schema exploration. Provides read-only access to query data and examine database metadata.1-
- AlicenseAqualityCmaintenanceEnables AI assistants to inspect and query a MySQL database through safe, structured tools, including schema discovery and read-only queries.989MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely interact with MySQL databases, including listing tables, viewing schemas, and executing read-only SQL queries through natural language.6-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuru-sha/mcp-server-mysql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server