# mcp-server-mysql

> MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default

Source: https://talira.ai/catalog/mcp-server-mysql-ttm9zvf9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: MCP server
- Categories: [ai / mcp / servers](https://talira.ai/categories/ai/mcp/servers), [databases / mysql](https://talira.ai/categories/databases/mysql)
- Platforms: macos, linux, windows, docker[^2][^3]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- MCP server: yes[^2]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^2]
- Backed by: [Ben Borla](https://talira.ai/orgs/ben-borla.md)

mcp-server-mysql is a Model Context Protocol server that gives Claude and other LLMs access to MySQL databases: a mysql_query tool runs SQL and a resource lists every table with its columns. It is read-only by default, with inserts, updates and deletes each enabled by an environment flag and permissions settable per schema. It supports SSH tunnels to remote databases, SSL/TLS with mutual TLS, a multi-database mode, automatic PII redaction in results, and a remote mode over HTTP with bearer token auth. Runs with npx on Node.js 20+ against MySQL 5.7 or later. MIT.

## Links

- GitHub: https://github.com/benborla/mcp-server-mysql
- Docs: https://github.com/benborla/mcp-server-mysql/tree/main/docs

## Problems it solves

- let Claude query my MySQL database and look at its schema
- give an AI assistant read-only access to a production MySQL database
- an MCP server for MySQL that can reach a remote database through an SSH tunnel
- mask personal data in query results before an LLM sees them

## Features

- mysql_query tool, read-only by default
- insert, update and delete enabled separately by environment flags
- per-schema read and write permissions
- table and column listing resource
- SSH tunnel support for remote databases
- SSL/TLS with optional mutual TLS
- multi-database mode
- automatic PII redaction in results
- remote mode over HTTP with bearer token auth

## Capabilities

- Has an MCP server: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by Ben Borla
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [MySQL MCP Server](https://talira.ai/catalog/mysql-mcp-server-51fznpxz.md): Python MCP server for exploring and querying MySQL databases from AI assistants
- [MCP SSH Manager](https://talira.ai/catalog/mcp-ssh-manager-6qzcmyqd.md): MCP server that lets Claude Code, Claude Desktop and Codex manage multiple SSH servers
- [Postgres MCP Pro](https://talira.ai/catalog/postgres-mcp-pro-j2wvmkav.md): A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
- [MCP Toolbox for Databases](https://talira.ai/catalog/mcp-toolbox-for-databases-yx1af6jx.md): An open source MCP server for databases
- [pgEdge Postgres MCP Server](https://talira.ai/catalog/pgedge-postgres-mcp-server-fr903afd.md): A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI
- [Open Source MCP Servers for AWS](https://talira.ai/catalog/open-source-mcp-servers-for-aws-0nk09f9c.md): A suite of open source MCP servers that connect AI assistants to AWS services, docs and best practices

## Sources

[^1]: https://github.com/benborla/mcp-server-mysql/blob/main/LICENSE.md (checked 22 Nov 2026)
[^2]: https://github.com/benborla/mcp-server-mysql#readme (checked 22 Nov 2026)
[^3]: https://github.com/benborla/mcp-server-mysql/blob/main/Dockerfile (checked 22 Nov 2026)
