MySQL MCP Server
MySQL MCP サーバー
MySQLデータベースへの直接アクセスを提供する強力なMCPサーバー。このサーバーにより、AIエージェントはMySQLデータベースと対話し、SQLクエリを実行し、シンプルなインターフェースを通じてデータベースコンテンツを管理できるようになります。
特徴
リソース
データベースに保存されているノートに
note:///{id}URI 経由でアクセスします。各メモにはタイトルと内容があります
シンプルなコンテンツアクセスのためのプレーンテキスト MIME タイプ
ツール
create_note- データベースに新しいテキストノートを作成するタイトルとコンテンツを必須パラメータとして受け取ります
MySQLデータベースにメモを保存する
list_tables- 接続されたデータベース内のすべてのテーブルを一覧表示しますcount_tables- データベース内のテーブルの合計数を取得しますsearch_tables- LIKEパターンを使用してテーブルを検索するdescribe_table- 特定のテーブルの構造を取得するexecute_sql- カスタムSQLクエリを実行する
Related MCP server: MySQL MCP Server
前提条件
Node.js 18以上
MySQLサーバーがインストールされ、実行中
適切な権限を持つデータベース
設定
このリポジトリをクローンします:
git clone git@github.com:LeonMelamud/mysql-mcp.git cd mysql-mcp依存関係をインストールします:
npm installMySQL 接続の詳細を含む
.envファイルをルート ディレクトリに作成します。MYSQL_HOST=localhost MYSQL_USER=your_username MYSQL_PASSWORD=your_password MYSQL_DATABASE=your_databaseサーバーを構築します。
npm run build
インストール
クロードデスクトップ向け
Claude Desktop 構成ファイルにサーバー構成を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mysql": {
"command": "node",
"args": ["/path/to/mysql-server/build/index.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}クラインのために
Cline MCP 設定ファイルにサーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json Windows の場合: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
{
"mcpServers": {
"mysql": {
"command": "node",
"args": ["/path/to/mysql-server/build/index.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
},
"disabled": false,
"autoApprove": []
}
}
}使用例
インストールが完了すると、Claude との会話で MySQL MCP サーバーを使用できるようになります。
データベース内のすべてのテーブルを一覧表示する
Please list all the tables in my MySQL database.SQLクエリを実行する
Run this SQL query: SELECT * FROM users LIMIT 5メモを作成する
Create a note titled "Meeting Notes" with the content "Discussed project timeline and assigned tasks."発達
自動リビルドを使用した開発の場合:
npm run watchデバッグ
MCP Inspector を使用してサーバーをデバッグします。
npm run inspectorインスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceThis server enables AI models to interact with MySQL databases through a standardized interface.5466168MIT
- AlicenseNot gradedqualityCmaintenanceA server that enables AI models to interact with MySQL databases through a Model Control Protocol, providing tools for table creation, schema inspection, query execution, and data retrieval.28MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that allows AI agents to execute SQL queries against a MySQL database, supporting operations like reading data, creating tables, inserting, updating, and deleting records.65198MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that connects AI agents to MySQL databases for schema exploration, data querying, and SQL execution via natural language.2MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Appeared in Searches
- A tool for comparing design documents and source code, and accumulating business knowledge
- Exploring MySQL Database Information
- Information about MySQL database management system
- An open-source relational database management system
- Connect to MySQL server, edit database structure, and run manual migrations
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/LeonMelamud/mysql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server