MySQL

● Active

io.github.marcelo-ochoa/mysql

An MCP server for MySQL databases.

Connect this server

One click to install, or copy the config below. Suits: Claude Desktop · Cursor.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-mysql@1.0.7"
      ],
      "env": {
        "MYSQL_PASSWORD": "<your MYSQL_PASSWORD>"
      }
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add --env MYSQL_PASSWORD='<your MYSQL_PASSWORD>' --transport stdio mysql -- npx -y @marcelo-ochoa/server-mysql@1.0.7
OpenAI Codex CLI
codex mcp add mysql --env MYSQL_PASSWORD='<your MYSQL_PASSWORD>' -- npx -y @marcelo-ochoa/server-mysql@1.0.7
VS Code
code --add-mcp '{"name":"mysql","type":"stdio","command":"npx","args":["-y","@marcelo-ochoa/server-mysql@1.0.7"],"env":{"MYSQL_PASSWORD":"<your MYSQL_PASSWORD>"}}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.

Environment variables
  • MYSQL_PASSWORDsecretMySQL password

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Databases
Version
1.0.7
Registry
active
Published
3/11/2026

On GitHub

read Nov 17, 2026
Stars
2
Forks
0
Last push
Aug 21, 2026
License
Other

TypeScript

From the README

Model Context Protocol servers This repository is a collection of reference implementations for the Model Context Protocol (MCP), as well as references to community-built servers and additional resources. [!IMPORTANT] If you are looking for a list of MCP servers, you can browse published servers on the MCP Registry. The repository served by this README is dedicated to housing just the small number of reference servers maintained by the MCP steering group. [!WARNING] The servers in this repository are intended as reference implementations to demonstrate MCP features and SDK usage. They are meant to serve as educational examples for developers building their own MCP servers, not as production-ready solutions. Developers should evaluate their own security requirements and implement appropriate safeguards based on their specific threat model and use case. The servers in this repository showcase the versatility and extensibility of MCP, demonstrating how it can be used to give Large Language Models (LLMs) secure, controlled access to tools and data sources. Typically, each MCP server is implemented with an MCP SDK: • C# MCP SDK • Go MCP SDK • Java MCP SDK • Kotlin MCP SDK • PHP MCP SDK • Python MCP SDK • Ruby MCP SDK • Rust MCP SDK • Swift MCP SDK • TypeScript MCP SDK 🌟 Reference Servers These servers aim to demonstrate MCP features and the official SDKs. • Everything - Reference / test server with prompts, resources, and tools.…

Read the full README on GitHub →

Alternatives to MySQL

Best Databases servers →

The most-starred Databases servers in the index, with their live-check result.

ServerStarsLast pushLive check
Dbx30,677Nov 2026Local / not checked
MCP Toolbox for Databases16,897Nov 2026Local / not checked
MCP Toolbox for Databases16,897Nov 2026Local / not checked
Finance Database9,627Nov 2026Working
DBHub3,868Nov 2026Local / not checked

MySQL: questions people ask

Is MySQL a remote or a local MCP server?
According to its entry in the official MCP registry, MySQL ships as a local package (npm) that your client starts on your machine.
Does MySQL need an API key?
Its registry entry declares one required environment variable: MYSQL_PASSWORD. The config on this page shows where each goes.
Is MySQL still maintained?
Active: the repository's last commit 3 months ago. Last push Aug 21, 2026, 2 GitHub stars, Other licence. Read from GitHub on Nov 17, 2026.
How do I add MySQL to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
Browse all Databases →

Add the badge to your site

Show visitors that MySQL is listed here — it’s also the link we check for a free listing.

MySQL — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-marcelo-ochoa-mysql?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MySQL — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![MySQL — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-marcelo-ochoa-mysql?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.