Skip to main content
Glama

MCP MySQL Server

mcp-server-mysql

MySQLデータベース用のモデルコンテキストプロトコルサーバー。このサーバーにより、LLMはデータベーススキーマを検査し、読み取り専用クエリを実行できるようになります。

特徴

  • MySQL データベースへの読み取り専用アクセス
  • スキーマ検査機能
  • 読み取り専用トランザクション内での安全なクエリ実行
  • Dockerサポート
  • NPMパッケージが利用可能

インストール

Dockerの使用

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

Smithery経由でインストール

Smithery経由で Claude Desktop 用の MySQL データベース サーバーを自動的にインストールするには:

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

使用法

クロード・デスクトップ

claude_desktop_config.jsonに次の構成を追加します。

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

注意: macOS で Docker を使用する場合、MySQL サーバーがホスト ネットワーク上で実行されている場合は、 host.docker.internalを使用します。

接続URLの形式

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

/databaseデータベース名に置き換えます。

発達

# Initial setup make setup # Build the project make build # Format code make format # Run linter make lint

ライセンス

このプロジェクトはMIT ライセンスの下でリリースされています。

安全

このサーバーは、データベースを保護するために読み取り専用アクセスを強制します。すべてのクエリは読み取り専用トランザクション内で実行されます。

セキュリティを強化するために、読み取り専用ユーザーを作成することをお勧めします。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

スキーマを検査し、トランザクション内で安全な読み取り専用クエリを実行することにより、LLM が MySQL データベースと対話できるようにします。

  1. 特徴
    1. インストール
      1. Dockerの使用
      2. Smithery経由でインストール
    2. 使用法
      1. クロード・デスクトップ
      2. 接続URLの形式
    3. 発達
      1. ライセンス
        1. 安全
          1. 貢献

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
              Last updated -
              5,426
              418
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server providing read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
              Last updated -
              5,426
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
              Last updated -
              5,426
              MIT License
            • -
              security
              F
              license
              -
              quality
              Provides read-only access to PostgreSQL databases, enabling LLMs to inspect database schemas and execute read-only SQL queries within a secure transaction context.
              Last updated -
              16,948
              JavaScript
              • Apple

            View all related MCP servers

            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