AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompareGuides
Submit Tool
ToolsCategoriesTrendingNewCompareGuides
Home/
API Integration/
mysql_mcp_server
mysql_mcp_server logo

mysql_mcp_server

Active·★ 1.4k·MIT·Updated 2026-08-02
★ Trending★ Essential

MySQL MCP Server connects AI applications to a MySQL database through MCP. The README lists its features: tables are exposed as resources, table contents can be read, SQL queries run with error handling, access is configured through environment variables, and operations are logged. It is meant to be launched by an MCP client such as Claude Desktop rather than run as a standalone program.

Setup is `pip install mysql-mcp-server` or an install through Smithery for Claude Desktop. You then set `MYSQL_HOST`, `MYSQL_PORT` (default 3306), `MYSQL_USER`, `MYSQL_PASSWORD` and `MYSQL_DATABASE`, and add a server entry to `claude_desktop_config.json`, for example with `uvx --from mysql-mcp-server mysql_mcp_server`. For debugging the README suggests the MCP Inspector instead of running the module directly, and the repo includes tests run with `pytest`.

The README is direct about risk. It says to create a dedicated MySQL user with minimal permissions, never use root or admin accounts, restrict access to necessary operations, enable logging, and consider query whitelisting in production, and it links a SECURITY.md with a restricted-user setup. The licence is MIT and the last push was 2026-08-02. This review is based on the README and repository data; we have not run it ourselves.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool.

#MySQL#MCP#AI Integration#Database Access#Security#Data Analysis
$ Install
$ pip install mysql-mcp-server
↗ Visit site★ GitHub
01

Features

01List available MySQL tables as resources
02Read table contents
03Execute SQL queries with proper error handling
04Secure database access through environment variables
05Comprehensive logging
02

Why choose it

+Small and simple: tables as resources, reads and SQL execution through MCP
+Credentials come from environment variables; logging included
+`pip install` or Smithery install for Claude Desktop
+The README and SECURITY.md spell out least-privilege setup; MIT license
03

Trade-offs

!It can run arbitrary SQL, so a model mistake can modify or delete data unless the MySQL user is read-only
!No built-in query whitelist; the README only suggests adding one for production
!Only MySQL, and meant to be started by an MCP client rather than used on its own
!Database contents you query are sent to the model provider, so avoid sensitive data
04

Compatibility

Claude Desktop
Supported
Verified via docs
Visual Studio Code
Supported
Verified via docs
Smithery
Via Smithery
Verified via docs
MCP Inspector
Debugging
Verified via docs
05

Quick start

1
$ pip install mysql-mcp-server
06

Use cases

↳Integrating MySQL database access with AI applications.
↳Enabling secure database interaction for Claude Desktop users.
↳Facilitating structured database exploration within Visual Studio Code.
07

Alternatives

GitHub MCP Server logo
GitHub MCP Server★ 33.6k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
python-sdk logo
python-sdk★ 24.6k
The official Python SDK for Model Context Protocol servers and clients
MindsHub (formerly MindsDB) logo
MindsHub (formerly MindsDB)★ 39.8k
MindsHub (formerly MindsDB) is an agent workspace for knowledge work and software development, with connected data sources, a model router across frontier and open models, open-source agent harnesses, and publishable artifacts.
dagster logo
dagster★ 16.3k
An orchestration platform for the development, production, and observation of data assets.
mcp-chrome logo
mcp-chrome★ 12.5k
Chrome MCP Server is a Chrome extension-based Model Context Protocol (MCP) server that exposes your Chrome browser functionality to AI assistants like Claude, enabling complex browser automation, content analysis, and semantic search.
awesome-mcp-servers logo
awesome-mcp-servers★ 96.3k
A collection of MCP servers.
TrendRadar logo
TrendRadar★ 62.9k
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
chrome-devtools-mcp logo
chrome-devtools-mcp★ 53.5k
Chrome DevTools for coding agents
See all alternatives →

Featured in these lists

  • Best MCP Servers for Databases

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Compatibility05Quick start06Use cases07Alternatives
Stats
GitHub Stars★ 1.4k
Last commit2mo ago
StatusActive
LicenseMIT
CategoryAPI Integration
Trend (30d)
+0k↑ 3.8%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.