MySQL MCP Server
@davewind/mysql-mcp-server
MySQLデータベースへの読み取り専用アクセスを提供するモデルコンテキストプロトコル(CMP)サーバー。このサーバーにより、LLMはデータベーススキーマを検査し、読み取り専用クエリを実行できます。
主な特徴
1. 読み取り専用データベースアクセス: SQL検証と読み取り専用トランザクションを通じて読み取り専用操作を強制します。
2.スキーマ検出: データベースのテーブル構造を自動的に識別して公開します
3.SQLクエリ実行:SELECT文を受け入れて実行するクエリツールを提供します。
4.モデルコンテキストプロトコル準拠:互換性のあるLLMとのシームレスな統合のためにMCP仕様を実装します。
5.シンプルな構成: 最小限の構成で簡単にセットアップできます
ツール
クエリ
接続されたデータベースに対して読み取り専用のSQLクエリを実行する
入力:
sql(文字列): 実行するSQLクエリすべてのクエリは読み取り専用トランザクション内で実行されます
リソース
サーバーは、データベース内の各テーブルのスキーマ情報を提供します。
テーブルスキーマ(
mysql://user:password@localhost:3306/database)各テーブルのJSONスキーマ情報
列名とデータ型が含まれます
データベースのメタデータから自動的に検出
インストール
npm install @davewind/mysql-mcp-server -g構成
MCP 設定構成ファイル:
推奨用途
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@davewind/mysql-mcp-server", "mysql://user:password@localhost:port/database"],
}
}
}テスト
mysql://user:password@localhost:port/ と npm run inspector を置き換えます。
"scripts": {
"inspector": "npx @modelcontextprotocol/inspector@0.10.2 build/index.js mysql://user:password@localhost:port/database
}環境
node v18 +
システムアーキテクチャ
MySQL MCP サーバーは、LLM と MySQL データベース間の仲介役として機能し、モデル コンテキスト プロトコルに従って要求を処理します。
コンポーネントの相互作用
コンポーネントの相互作用
セキュリティモデル
MySQL MCP サーバーは、データベース アクセスが読み取り専用であることを保証するために、厳格なセキュリティ モデルを実装しています。
セキュリティ対策には次のものが含まれます。
1.SQL クエリ検証では SELECT 文のみを許可します 2.すべてのクエリを READ ONLY トランザクション内で実行します 3.データ変更操作 (INSERT、UPDATE、DELETE など) はサポートされません 4.データベース スキーマ変更 (CREATE、ALTER、DROP など) はサポートされません
LLMとの統合
MySQL MCPサーバーは、モデルコンテキストプロトコル(MCP)をサポートするあらゆるLLMシステムと連携するように設計されています。MCP仕様に従い、stdio経由のJSON-RPCを介して通信します。
Related MCP server: MCP Server for MySQL
ライセンス
マサチューセッツ工科大学
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
The HubSpot MCP Server acts as a bridge that enables AI assistants and Large Language Models to securely interact with HubSpot CRM data through natural conversation, without requiring users to understand complex API structures. It provides read-only access to standard CRM objects (contacts, companies, deals, tickets, products, invoices, and more) and their associations, secured via OAuth 2.0, allowing AI agents to perform tasks like summarizing deals, fetching company updates, and looking up record changes.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.15,0852,091MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.191MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.15,085MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.4541MIT
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/dave-wind/mysql-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server