Skip to main content
Glama

MySQL Server MCP Server

by xianzong85

mysql-server MCP サーバー

MySQLデータベースアクセス用のモデルコンテキストプロトコルサーバー

これはTypeScriptベースのMCPサーバーで、MySQLデータベースへのクエリツールを提供します。以下の機能を提供することで、MCPのコアコンセプトを実証します。

  • SQLクエリを実行するためのツール
  • 環境変数経由でのMySQLデータベースへの接続

特徴

ツール

  • query - SQLクエリを実行する
    • 必須パラメータとしてSQLクエリ文字列を受け取ります
    • クエリ結果を返します

構成

MCP サーバー構成で次の環境変数を設定します。

  • MYSQL_HOST: MySQLサーバーホスト
  • MYSQL_USER: MySQLユーザー名
  • MYSQL_PASSWORD: MySQLパスワード
  • MYSQL_DATABASE: MySQLデータベース名

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "mysql": { "command": "/path/to/mysql-server/build/index.js", "env": { "MYSQL_HOST": "your-mysql-host", "MYSQL_USER": "your-mysql-user", "MYSQL_PASSWORD": "your-mysql-password", "MYSQL_DATABASE": "your-mysql-database" } } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

-
security - not tested
F
license - not found
-
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.

環境変数を使用して SQL クエリの実行と MySQL データベース接続を容易にする TypeScript ベースの MCP サーバー。

  1. 特徴
    1. ツール
  2. 構成
    1. 発達
      1. インストール
        1. デバッグ

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        A TypeScript-based MCP server designed for experimentation and integration with Calude Desktop and Cursor IDE, offering a modular playground for extending server capabilities.
        Last updated -
        2
        645
        4
        JavaScript
      • A
        security
        F
        license
        A
        quality
        MCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.
        Last updated -
        1
        6
        3
        JavaScript
      • -
        security
        A
        license
        -
        quality
        A TypeScript framework for building MCP servers with client session management capabilities, supporting tools definition, authentication, image content, logging, and error handling.
        Last updated -
        6,371
        TypeScript
        MIT License
      • -
        security
        -
        license
        -
        quality
        An MCP server that allows working with MySQL databases by providing tools for executing read-only SQL queries, getting table schemas, and listing database tables.
        Last updated -
        1
        JavaScript

      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/xianzong85/mysql-server-MCP-Server'

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