MCP.so
ログイン

MySQL MCP Server

@kaulvimal

基本情報

カテゴリ

データベース

ライセンス

MIT

トランスポート

stdio

作者

kaulvimal

MySQL MCP Server について

MCP Server for MySQL

#ai#mcp#mysql-mcp

MySQL MCP Server の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

MySQL MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MySQL MCP Server?

MySQL MCP Server is a read-only Model Context Protocol (MCP) server for interacting with MySQL and PostgreSQL databases. It allows MCP-compatible clients to inspect schemas, retrieve metadata, and execute read-only SQL queries safely.

How to use MySQL MCP Server?

Install Node.js and npm, clone the repository, run npm install and npm run build. Configure environment variables (MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_PORT, PG_HOST, PG_USER, PG_PASSWORD, PG_PORT, PG_DATABASE) in a shell script and make it executable. Integrate with MCP clients like Cursor by pointing to the script.

Key features of MySQL MCP Server

  • Read-only SQL query execution.
  • Schema inspection and metadata retrieval.
  • Visualize schema in JSON, DOT, Mermaid.
  • Compare and detect schema changes.
  • Discover foreign key relationships.
  • Retrieve database performance metrics.

Use cases of MySQL MCP Server

  • Database schema exploration for documentation.
  • Running read-only analytics queries via AI assistants.
  • Comparing two database schemas for migration planning.
  • Visualizing table relationships for ER diagrams.
  • Monitoring global database performance metrics.

よくある質問

1

What databases does it support?

MySQL and PostgreSQL.

2

Is it safe to use in production?

Yes, all operations are read-only to prevent data modification.

3

What are the prerequisites?

Node.js, npm, and access to a MySQL or PostgreSQL database.

4

How do I integrate it with Cursor?

Create a shell script with environment variables and configure Cursor’s mcpServers to point to that script.

5

Does it support query history?

No, the `get_query_history` tool is a placeholder and not implemented. The server does not provide query-specific history.

コメント

「データベース」の他のコンテンツ