MCP.so
ログイン
D

Druid MCP Server

@christian-schlichtherle

基本情報

カテゴリ

その他

トランスポート

stdio

作者

christian-schlichtherle

投稿者

Christian Schlichtherle

Druid MCP Server について

An MCP server for comprehensive read-only access to one or more Apache Druid clusters for ad-hoc data analysis, monitoring, troubleshooting, and comparison.

#druid#apache-druid#mcp#mcp-server

Druid MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "druid": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/druid-mcp",
        "run",
        "main.py"
      ],
      "env": {
        "DRUID_CLUSTERS": "dev=http://localhost:8088 stage=http://localhost:8089 prod=http://localhost:8090"
      }
    }
  }
}

Druid MCP Server のツール

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

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

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

概要

What is Druid MCP Server?

Druid MCP Server provides an MCP server for read-only access to one or more Apache Druid clusters. It enables AI applications to interact with Druid through the Model Context Protocol (MCP), allowing ad-hoc data analysis and comparison across multiple Druid clusters.

How to use Druid MCP Server?

Install dependencies with uv install or pip install -e ., then configure clusters via the DRUID_CLUSTERS environment variable (whitespace-separated key=value pairs). Run the server in development with mcp dev main.py or production with mcp run main.py. Integrate with Claude Desktop using mcp install main.py. All tools (except cluster management) require an explicit cluster parameter as the first argument.

Key features of Druid MCP Server

  • Multi-cluster support: connect to and query multiple clusters simultaneously
  • Query execution: SQL and native JSON queries
  • Datasource management: list, explore, and inspect schemas
  • Ingestion monitoring: supervisor and task status tracking
  • Cluster operations: service health monitoring and segment analysis
  • Lookup management: query and inspect lookup tables
  • Smart analysis prompts: pre-built prompts for common analysis tasks
  • Schema caching: 5-minute TTL for resource endpoints

Use cases of Druid MCP Server

  • Compare datasource schemas and data distribution across development, staging, and production clusters
  • Execute ad-hoc SQL or native queries on any configured Druid cluster
  • Monitor ingestion health and task status across multiple environments simultaneously
  • Perform cross-cluster data quality checks and time-period comparisons
  • Explore datasource structure and content with AI-assisted prompts

よくある質問

1

What access mode does Druid MCP Server use?

Druid MCP Server provides read-only access to your Druid clusters. No write operations are supported.

2

What are the prerequisites for running Druid MCP Server?

Python 3.11+, access to an Apache Druid cluster, and an MCP-compatible client (e.g., Claude Desktop).

3

How does multi-cluster support work?

Configure multiple Druid clusters with the `DRUID_CLUSTERS` environment variable using `name=url` pairs. Each tool accepts an explicit cluster name parameter, enabling simultaneous queries to different clusters without hidden state.

4

Does Druid MCP Server support native Druid queries?

Yes, it supports both SQL queries via `execute_sql_query` and native JSON queries (timeseries, topN, groupBy, etc.) via `execute_native_query`.

5

Is there any caching for Druid API responses?

Schema caching is implemented with a 5-minute TTL for resource endpoints only, improving performance for repeated schema accesses.

コメント

「その他」の他のコンテンツ