プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Mysql MCP

作者:neverinfamousバージョン 1.0.0i★ –iパソコンで動く
レジストリ名io.github.neverinfamous/mysql-mcp

インストール

概要

作者による説明(英語の原文)

Enterprise-grade MySQL MCP Server with OAuth 2.0, 106 tools, and Docker deployment

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: データベース・データセット

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • DockerDockerのインストール

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "mysql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/writenotenow/mysql-mcp:v1.0.0"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add mysql -- docker run -i --rm docker.io/writenotenow/mysql-mcp:v1.0.0

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "mysql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/writenotenow/mysql-mcp:v1.0.0"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "mysql": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/writenotenow/mysql-mcp:v1.0.0"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント neverinfamous で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

データベース・データセットのほかのサーバーとの比較i

  • このカテゴリのほかの953件のうち0%よりスターが多い
  • このカテゴリのほかの953件のうち2%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの953件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Mysql MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.0)がレジストリに届いたのは11 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。

代わりに使えるものは?

同じカテゴリには:Supabase, MongoDB MCP Server, Elasticsearch MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Supabase

作者:supabase

MCP server for interacting with the Supabase platform

パソコンでもクラウドでも★ 2,993Apache-2.0今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

MySQL MCP Server (mysql-mcp)

[📚 Full Documentation (Wiki)](https://github.com/neverinfamous/mysql-mcp/wiki) • [Changelog](CHANGELOG.md) • [Security](SECURITY.md) • [Release Article](https://adamic.tech/articles/mysql-mcp-server)

💎 Value Proposition

Integrate your AI agents with a production-ready MySQL environment. Deploy MCP v2 stateless architecture via HTTP transport. Optimize token efficiency via Code Mode. Secure your database with OAuth 2.1.

🎯 Leverage Core Benefits

FeatureDescription
Specialized ToolsAccess specialized tools for core CRUD, JSON, spatial data, document stores, and clusters.
ResourcesMonitor schema, performance metrics, process lists, replication status, and InnoDB diagnostics in real-time.
AI-Powered PromptsExecute guided workflows for query building, schema design, performance tuning, and infrastructure setup.
Code ModeReduce LLM token consumption by consolidating operations inside a secure, sandboxed V8 isolate.
Token-Optimized PayloadsMaximize token efficiency. Use optional flags to reduce response size for large payloads.
OAuth 2.1 SecurityEnforce granular access control with RFC compliance, strict scopes, and Keycloak integration.
Smart Tool FilteringUse tool groups and shortcuts to stay within IDE tool limits.
Streamable & Stateless HTTPSupport MCP v2 streamable HTTP and stateless HTTP deployments.
Connection PoolingLeverage built-in connection pooling for efficient, highly concurrent database access.
Ecosystem IntegrationsManage MySQL Router, ProxySQL, and MySQL Shell utilities directly from your agent.
Advanced EncryptionEnforce TLS/SSL connections. Manage data masking, encryption monitoring, and compliance effortlessly.
Production-Ready SecurityPrevent SQL injection with parameterized queries. Rely on strict input validation and audit logging.
Deterministic ErrorsReceive structured responses with actionable suggestions. Eliminate silent failures and raw exceptions.
ObservabilityExport Prometheus metrics. Track container logs with Dozzle and audit trails with Grafana Alloy/Loki.
Strict TypeScriptRely on strict TypeScript backed by robust test suites.
MCP v2 CompliantFully support the MCP v2 specification. This includes stateless routing, caching, safety hints, and notifications.

🤖 Automate Tasks with Guided Workflows

This server includes intelligent prompts for guided workflows:

PromptDescription
mysql_tool_indexComplete tool index with categories
mysql_quick_queryQuick query execution shortcut
mysql_quick_schemaQuick schema exploration
mysql_setup_observabilityComplete observability stack setup guide (Datadog, etc.)

Note: This is a subset of available prompts. Use mysql_tool_index to discover the full list of guided workflows.


📊 Improve Observability with Resources

This server exposes a comprehensive set of resources for database observability and telemetry:

ResourceCategoryDescription
mysql://schemaCoreFull database schema
mysql://tablesCoreTable listing with metadata
mysql://variablesCoreServer configuration variables
mysql://statusCoreServer status metrics
mysql://processlistCoreActive connections and queries
mysql://poolCoreConnection pool statistics
mysql://capabilitiesExtendedServer version, features, and tool categories
mysql://healthExtendedComprehensive database health status
mysql://performanceExtendedQuery performance metrics
mysql://indexesExtendedIndex usage and statistics
mysql://replicationExtendedReplication status and lag
mysql://innodbExtendedInnoDB buffer pool and engine metrics
mysql://eventsDomainEvent Scheduler status and scheduled events
mysql://sysschemaDomainsys schema diagnostics summary
mysql://locksDomainInnoDB lock contention detection
mysql://clusterDomainGroup Replication / InnoDB Cluster status
mysql://spatialDomainSpatial columns and indexes
mysql://docstoreDomainDocument Store collections
mysql://insightsAnalyticsBusiness insights memo from mysql_append_insight
mysql://metricsObservabilityIn-memory token usage, latency, and request metrics
mysql://auditObservabilityForensic trail and snapshot of system errors
mysql://helpDocumentationCritical gotchas and high-level API reference
mysql://help/{group}DocumentationDynamic group-specific tool reference (e.g., core, codemode)

🚀 Deploy Your AI Database

Meet Prerequisites
  • Node.js >= 24.0.0 (See .node-version for the pinned local development version)
  • Bun (for executing repository automation scripts)
  • MySQL server
  • pnpm
Install the Server
Install via NPM / PNPM
pnpm add -g @neverinfamous/mysql-mcp

Run the server:

mysql-mcp --transport stdio --mysql "mysql://mcp_user:secure_password@localhost:3306/testdb"

Or use npx without installing:

npx @neverinfamous/mysql-mcp --transport stdio --mysql "mysql://mcp_user:secure_password@localhost:3306/testdb"
Run with Docker

Note on Namespaces: The Docker image uses the writenotenow namespace. The GitHub repo uses neverinfamous.

Linux Users: For host.docker.internal on Linux, run the container with --add-host host.docker.internal:host-gateway.

docker run -i --rm -v ./data:/app/data -v ./logs:/var/log/mysql-mcp writenotenow/mysql-mcp:latest \

--transport stdio \ --allowed-io-roots /app/data \ --mysql "mysql://mcp_user:secure_password@host.docker.internal:3306/testdb"

Enable Observability via Docker Compose

Launch the full observability stack using the included template. This includes Datadog, OpenTelemetry, Prometheus, and Grafana. This spins up the MCP server, MySQL database, Redis, and observability sidecars:

cd examples/basic-mysql-datadog

cp .env.example .env docker compose up -d

  • Grafana: Available at http://localhost:3001 (Dashboard pre-loaded).
  • Prometheus: Available at http://localhost:9090.
  • MCP Server: Available at http://localhost:3000.
Follow Datadog & OpenTelemetry Observability Rules

Datadog Constraints:

  • Authentication: Use pup CLI for authentication.
  • Autodiscovery: Avoid duplicate autodiscovery configurations. Add standard tracking labels (tags.datadoghq.com/env, tags.datadoghq.com/service, tags.datadoghq.com/version) to your containers.
  • WSL2 Hardening Limits: Enforce stop_grace_period: 30s, mem_limit: 1536m, and OpenMetrics timeouts of 10s.
  • Host Configuration: Use DD_HOSTNAME and native /etc/docker/daemon.json cgroup configurations ("default-cgroupns-mode": "host"). Disable DD_EXTRA_PERFORMANCE_METRICS.
  • Windows File Tailing: Be warned that Windows inotify tailing issues may occur with Docker/WSL2 log mapping.

OpenTelemetry Rules:

  • Semantic Conventions: Enforce gen_ai.* semantics.
  • Instrumentation: Use auto-instrumentation when possible.
  • Context Propagation: Ensure traceparent and tracestate propagation.
  • Processing & Logging: Utilize batch processors and ensure logs are formatted as JSON logs.

Audit Architecture & Exporter Healthcheck:

  • The primary MCP server writes execution traces to mcp-audit.jsonl via the --audit-log flag.
  • The metrics exporter runs as an independent sidecar process. It reads from mcp-audit.jsonl using the AUDIT_LOG_PATH environment variable to compute metrics.
  • The exporter isolates its own internal logs by setting its --audit-log flag to exporter-audit.jsonl.
  • The metrics server and exporter share a single process. Both operate on port 3000. This prevents port contention.
  • Exporter Healthcheck: wget --spider -q http://127.0.0.1:3000/metrics
Build From Source
git clone https://github.com/neverinfamous/mysql-mcp.git

cd mysql-mcp pnpm install pnpm run build node dist/cli.js --transport stdio --mysql "mysql://mcp_user:secure_password@localhost:3306/testdb"


🏗️ Use Infrastructure Templates

We provide production-ready Docker Compose templates in the examples/ directory. Use these to spin up test environments quickly. These templates include full Datadog observability out-of-the-box (Metrics, APM, and Logs).

  • [Basic Template](examples/basic-mysql-datadog): A lightweight, single-node MySQL setup. Perfect for quick starts.
  • [Enterprise HA Template](examples/enterprise-ha-mysql): A highly-available InnoDB Cluster with MySQL Router and ProxySQL. Perfect for staging or production replicas.
  • [Full Observability Ecosystem](examples/full-observability-ecosystem): A complete enterprise monitoring stack with Datadog, Prometheus, Grafana, Loki, and Alloy. See the [Observability Wiki](https://github.com/neverinfamous/mysql-mcp/wiki/Observability) for deep-dive metrics configuration.

See the README in each directory for quick start instructions.


⚡ Optimize Token Usage with Code Mode

Code Mode (mysql_execute_code) reduces token usage by consolidating operations in a secure sandbox.

Code executes securely in a C++ V8 isolate sandbox. It enforces strict heap limits and synchronous termination. Native wrappers map all API calls across the boundary. This guarantees defense-in-depth and fleet-standard restrictions:

Enforce Engine-Level Restrictions
  • ✅ Strict V8 Isolate Boundary — Code executes within a physically separate V8 isolate. It ensures native objects and prototypes cannot cross the boundary.
  • ✅ Memory & CPU Constraints — enforced at the C++ level. This includes synchronous timeouts and strict heap limits.
  • ✅ **API Bindings

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く