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

      • -
        security
        A
        license
        -
        quality
        A template project for building custom MCP servers that enables direct access to PostgreSQL databases, allowing SQL query execution and schema information retrieval through the Model Context Protocol.
        Last updated -
        30
        Python
        MIT License
        • Apple
        • Linux
      • -
        security
        F
        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 -
        600
        2
        JavaScript
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol (MCP) server that converts natural language queries into SQL statements, allowing users to query MySQL databases using conversational language instead of writing SQL code.
        Last updated -
        3
        TypeScript
      • -
        security
        F
        license
        -
        quality
        A template repository for building Model Context Protocol (MCP) servers with TypeScript, featuring full TypeScript support, testing setup, CI/CD pipelines, and modular architecture for easy extension.
        Last updated -
        0
        TypeScript

      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