AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
API Integration/
mysql_mcp_server
mysql_mcp_server logo

mysql_mcp_server

Active·★ 1.4k·MIT·Updated 2026-08-02
★ 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. Data as of 2026-10-22.

License
MIT
Latest release
v0.4.4 · 2026-07-30
Last commit
2026-08-02
Contributors
11
Forks
261
Open issues and PRs
6
First published
2024-12-03

Source: GitHub, npm and PyPI public APIs.

#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
05

Maintenance check

ActiveChecked: 2026-10-19
Last commit
2026-08-02
Commits, last 90 days
5
Releases, last 90 days
2
Latest release
v0.4.4 (2026-07-30)
Open issues
6
Recent issues with at least one comment
25/30
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

Most discussed open issues

  • #20 Can this server support chunked select (aka cursor)?5 comments · 2025-03-28
  • #102 Missing output encoding in `get_schema_info`: a rejected `table_name` is echoed raw in the error (and in the log)0 comments · 2026-10-14
  • #101 Added 1-click config generator and setup guide for mysql_mcp_server on MCP ServerList0 comments · 2026-10-12
  • #99 Tool name conflicts when running multiple MCP server instances with different databases0 comments · 2026-09-16
  • #98 Proposal: optional OAuth 2.1 authentication for the SSE transport, with the read scope enforced by MySQL0 comments · 2026-09-08

Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.

04

Who it fits

Pick it if
  • You only need MySQL and want a small server you can install with pip install mysql-mcp-server.
  • You use Claude Desktop and want credentials passed as environment variables (MYSQL_HOST, MYSQL_USER and so on).
  • You want a short codebase to read: the README and SECURITY.md spell out least-privilege setup.
Look elsewhere if
  • You need anything beyond MySQL, or a query whitelist: the README only suggests adding one for production.
  • You want to limit the model to reviewed operations; the server can run arbitrary SQL unless the MySQL user is read-only.
  • You handle sensitive data: query results are sent to the model provider.
06

How it differs

dbhub logovs dbhub★ 3.7k

DBHub also supports PostgreSQL, SQL Server, MariaDB and SQLite and lets you define custom parameterised tools. This server is MySQL only and simpler, with no built-in way to restrict queries beyond the database user's own privileges.

Full comparison →
07

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
08

Quick start

1
$ pip install mysql-mcp-server
09

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.
10

Alternatives

⚡Top VS:
VSdbhub★3.7k→VScursor-talk-to-figma-mcp★7.1k→VSmcp-atlassian★6.0k→VSgoogle_workspace_mcp★3.4k→
dbhub logo
dbhub★ 3.7k
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
VSCompare→
cursor-talk-to-figma-mcp logo
cursor-talk-to-figma-mcp★ 7.1k
TalkToFigma: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
VSCompare→
mcp-atlassian logo
mcp-atlassian★ 6.0k
MCP server for Atlassian tools (Confluence, Jira)
VSCompare→
google_workspace_mcp logo
google_workspace_mcp★ 3.4k
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace / G Suite MCP Server
VSCompare→
xiaohongshu-mcp logo
xiaohongshu-mcp★ 16.4k
MCP for xiaohongshu.com
VSCompare→
GitHub MCP Server logo
GitHub MCP Server★ 33.9k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
VSCompare→
mcp logo
mcp★ 9.8k
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP.
VSCompare→
whatsapp-mcp logo
whatsapp-mcp★ 6.7k
WhatsApp MCP server
VSCompare→
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-offs05Maintenance check04Who it fits06How it differs07Compatibility08Quick start09Use cases10Alternatives
designcomputer /
mysql_mcp_server
↗

MIT MCP server that lists MySQL tables, reads them and runs SQL for Claude Desktop and other AI apps

1.4k261MIT
Last commit2mo ago
StatusActive
CategoryAPI Integration
Contributors11
Latest releasev0.4.4
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.