mysql_mcp_server

mysql_mcp_server

A server that enables secure interaction with MySQL databases via the MCP protocol.

MCPDataOpen source
Type
MCP
Open source
Yes
GitHub Stars
★ 1.3k
Source
mcp-github

Overview

MySQL MCP Server is a Model Context Protocol (MCP) implementation that allows AI applications to securely interact with MySQL databases. This server component facilitates communication between AI applications and MySQL databases through a controlled interface, making database exploration and analysis safer and more structured. Supports standard input/output (STDIO) and streaming HTTP (SSE) transmission modes. Suitable for AI applications requiring access to and manipulation of MySQL databases.

Capabilities

  • List available MySQL tables as resources
  • Read table contents
  • Execute SQL queries and handle errors
  • Multi-database mode support
  • SSH tunnel support
  • Comprehensive schema information

Use cases

AI application data queryingSecure access to database contentMetadata analysis of database structureRemote or self-hosted deployment

Setup

Requires: API KeyNode 环境
pip install mysql-mcp-server or use Smithery for automatic installation: npx -y @smithery/cli install designcomputer/mysql-mcp-server --client claude

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I configure environment variables?

Set variables like MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD in the .env file.

What transmission modes are supported?

Supports STDIO and SSE transmission modes.

Related skills