Skip to main content
Glama
yuru-sha

MCP MySQL Server

by yuru-sha

mcp-server-mysql

CI-Status Schmiedeabzeichen

Model Context Protocol Server für MySQL-Datenbanken. Dieser Server ermöglicht LLMs die Überprüfung von Datenbankschemata und die Ausführung schreibgeschützter Abfragen.

Merkmale

  • Lesezugriff auf MySQL-Datenbanken

  • Schemaprüfungsfunktionen

  • Sichere Abfrageausführung innerhalb von READ ONLY-Transaktionen

  • Docker-Unterstützung

  • NPM-Paket verfügbar

Related MCP server: MySQL MCP Server

Installation

Verwenden von Docker

# Build the Docker image
make docker

# Run with Docker
docker run -i --rm mcp/mysql mysql://host:port/dbname

Installation über Smithery

So installieren Sie den MySQL-Datenbankserver für Claude Desktop automatisch über Smithery :

npx -y @smithery/cli install @yuru-sha/mcp-server-mysql --client claude

Verwendung

Mit Claude Desktop

Fügen Sie Ihrer claude_desktop_config.json die folgende Konfiguration hinzu:

{
  "mcpServers": {
    "mysql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/mysql",
        "mysql://host:port/dbname"
      ]
    }
  }
}

Hinweis: Wenn Sie Docker unter macOS verwenden, verwenden Sie host.docker.internal , wenn der MySQL-Server im Hostnetzwerk ausgeführt wird.

Verbindungs-URL-Format

mysql://[user][:password]@host[:port]/database

Ersetzen Sie /database durch Ihren Datenbanknamen.

Entwicklung

# Initial setup
make setup

# Build the project
make build

# Format code
make format

# Run linter
make lint

Lizenz

Dieses Projekt wird unter der MIT-Lizenz veröffentlicht.

Sicherheit

Dieser Server erzwingt schreibgeschützten Zugriff zum Schutz Ihrer Datenbank. Alle Abfragen werden in schreibgeschützten Transaktionen ausgeführt.

Zur Erhöhung der Sicherheit empfehlen wir die Erstellung eines schreibgeschützten Benutzers.

Beitragen

Beiträge sind willkommen! Senden Sie gerne einen Pull Request.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables read-only access to MySQL databases through natural language queries. Provides automatic table schema discovery and executes SELECT, SHOW, DESCRIBE, and EXPLAIN statements within secure read-only transactions.
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables safe interaction with MySQL databases through SELECT queries, table structure inspection, and database schema exploration. Provides read-only access to query data and examine database metadata.
    1
    -
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to inspect and query a MySQL database through safe, structured tools, including schema discovery and read-only queries.
    9
    89
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to securely interact with MySQL databases, including listing tables, viewing schemas, and executing read-only SQL queries through natural language.
    6
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuru-sha/mcp-server-mysql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server