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データベース名
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
Claude Desktop で使用するには、サーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
This server cannot be installed
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 サーバー。
Related Resources
Related MCP Servers
- -security-license-qualityA 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 -31MIT License
- -security-license-qualityAn 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 -3114
- -security-license-qualityA containerized server that allows interaction with MySQL databases through Model Context Protocol (MCP), enabling SQL query execution, schema retrieval, and table listing via natural language.
- -security-license-qualityA 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
Appeared in Searches
- Best free MCP for React app with MySQL/MariaDB database
- Information about MySQL database management system
- A service or tool for downloading and installing SDKs for development
- Developing and redeveloping web frontend and Python backend projects, including frontend-backend integration and debugging
- Free PostgreSQL Database Solutions