MySQL Server MCP Server
mysql-server MCP サーバー
MySQLデータベースアクセス用のモデルコンテキストプロトコルサーバー
これはTypeScriptベースのMCPサーバーで、MySQLデータベースへのクエリツールを提供します。以下の機能を提供することで、MCPのコアコンセプトを実証します。
SQLクエリを実行するためのツール
環境変数経由でのMySQLデータベースへの接続
特徴
ツール
query- SQLクエリを実行する必須パラメータとしてSQLクエリ文字列を受け取ります
クエリ結果を返します
Related MCP server: Angular Bootstrap MCP Server
構成
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 を提供します。
This server cannot be deployed
Maintenance
Related MCP Connectors
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Related MCP Servers
- AlicenseAqualityFmaintenanceA TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.185 npm103MIT
- AlicenseNot gradedqualityDmaintenanceA TypeScript-based MCP server that provides backend API handling and facilitates communication between microservices. Features an organized structure with controllers, routes, and models for easy extensibility and maintenance.284 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA TypeScript/Node.js MCP server that wraps the Metabase REST API, enabling AI agents to execute queries, explore schemas, and build dashboards through structured tool calls.41 npmMIT
- AlicenseNot gradedqualityAmaintenanceA simple MCP server that executes SQL queries on a MariaDB database using a YAML config file.1MIT
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