MCP server for read-only Apache Druid access

MCP server for read-only Apache Druid access

An MCP server enabling AI applications to query and explore Apache Druid datasources, monitor ingestion, and inspect cluster operations across multiple clusters.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Executes SQL and native JSON queries against Druid clusters.
  • •Lists and inspects datasources and their schemas.
  • •Tracks ingestion via supervisors and tasks, plus cluster health and segments.
  • •Connects to multiple Druid clusters simultaneously with read-only access.

BEST FOR

  • •Comparing datasources across multiple Druid environments from an AI agent.
  • •Monitoring ingestion health and task status in Druid.
  • •Ad-hoc data analysis and troubleshooting of Druid data.

ABOUT DRUID-MCP

MCP server for read-only Apache Druid access is cataloged as an MCP server attributed to christian-schlichtherle. An MCP server enabling AI applications to query and explore Apache Druid datasources, monitor ingestion, and inspect cluster operations across multiple clusters. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for read-only Apache Druid access are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Is write access to Druid supported?

No, the server provides read-only access only.

How many tools does the server expose?

The server exposes 16 tools organized by functionality.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 16a3c9e807a5 · 采集于 2026-11-13 12:14:39 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Druid MCP

This repository provides an MCP (Model Context Protocol) server for comprehensive read-only access to one or more Apache Druid clusters for ad-hoc data analysis, monitoring, troubleshooting, and comparison.

For example, if you have multiple environments, each with their own Druid cluster, but ingesting data from the same origin, then you could use a simple prompt like this to run a complex cross-cluster comparison:

Check and compare the datasource for SumUp across all Druid clusters.

The AI agent should then list the Druid clusters, list their datasources, explore their schemas, segments, tasks, and their data distribution all by itself, and ultimately present you a nice summary.

Overview

The Druid MCP server enables AI applications to interact with Apache Druid through the Model Context Protocol (MCP). It provides a standardized interface for querying and exploring Druid datasources, making it easy to integrate Druid data into AI workflows.

Features

  • Multi-Cluster Support: Connect to and query multiple Druid clusters simultaneously
  • Query Execution: SQL and native JSON queries
  • Datasource Management: List, explore, and inspect datasource 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 data analysis tasks
  • Schema Caching: Efficient caching with 5-minute TTL for better performance in resources only

Prerequisites

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

Installation

Install dependencies using uv:

uv install

Or with pip:

pip install -e .

Configuration

Multi-Cluster Support

Configure multiple Druid clusters with whitespace-separated key=value pairs:

# Define available clusters (optional, defaults to "localhost=http://localhost:8088")
export DRUID_CLUSTER_URLS="localhost=http://localhost:8088 dev=https://druid.dev.example.com prod=https://druid.prod.example.com"

The cluster names can be any valid string and are used in:

  • Resource URIs (e.g., druid://dev/v2/datasources)
  • Tool parameters (e.g., execute_sql_query("dev", "SELECT ..."))
  • Cluster management commands

Usage

Development Mode

Run with auto-reload for development:

mcp dev main.py

Production Mode

Run the server in production:

mcp run main.py

Claude Desktop Integration

Install the server for use with Claude Desktop:

mcp install main.py

Available Tools

The MCP server exposes 16 tools organized by functionality:

Important: All tools (except cluster management tools) require an explicit cluster parameter as the first argument. This enables efficient multi-cluster operations without state management.

Query Execution

  • execute_sql_query(cluster, query, context): Execute SQL queries
  • execute_native_query(cluster, query): Execute native JSON queries (timeseries, topN, groupBy, etc.)

Datasource Operations

  • list_datasources(cluster, include_details): List all available datasources
  • get_datasource_schema(cluster, datasource): Get dimensions and metrics for a datasource

Ingestion Monitoring

  • list_supervisors(cluster, include_state): List all supervisors with optional state information
  • get_supervisor_status(cluster, supervisor_id): Get detailed supervisor status and health
  • list_tasks(cluster, ...): List tasks with filtering options
  • get_task_status(cluster, task_id): Get status of specific tasks

Cluster Management

  • get_cluster_status(cluster): Overall cluster health status
  • list_services(cluster, service_type): List active services by type
  • list_segments(cluster, datasource, full): List segments for a datasource
  • get_segments_info(cluster, datasource): Get aggregated segment statistics

Lookup Management

  • list_lookups(cluster, tier): List lookups by tier
  • get_lookup(cluster, lookup_id, tier): Get specific lookup configuration
  • get_lookup_status(cluster, lookup_id, tier): Get lookup loading status across nodes

Multi-Cluster Management

  • list_clusters(): List all configured Druid cluster names

Analysis Prompts

5 pre-built prompts with smart defaults (last month to now):

  • analyze_time_range: Analyze data within time periods
  • explore_datasource: Explore datasource structure and content
  • monitor_ingestion: Monitor ingestion health and progress
  • compare_periods: Compare metrics between time periods
  • data_quality_check: Perform comprehensive data quality checks

Examples

Basic Usage

# List datasources from production cluster
list_datasources("prod")

# Execute SQL query on development cluster
execute_sql_query("dev", "SELECT COUNT(*) FROM wikipedia WHERE __time >= CURRENT_TIMESTAMP - INTERVAL '1' DAY")

# Get datasource schema from staging
get_datasource_schema("stage", "wikipedia")

Multi-Cluster Operations

# Compare data across environments
dev_count = execute_sql_query("dev", "SELECT COUNT(*) FROM orders")
prod_count = execute_sql_query("prod", "SELECT COUNT(*) FROM orders")

# Check cluster health across all environments
for cluster in ["dev", "stage", "prod"]:
    status = get_cluster_status(cluster)
    print(f"{cluster}: {status}")

# Monitor ingestion across clusters
list_supervisors("dev", include_state=True)
list_supervisors("prod", include_state=True)

Advanced Queries

# Native query with explicit cluster
execute_native_query("prod", {
    "queryType": "timeseries",
    "dataSource": "wikipedia",
    "intervals": ["2024-01-01/2024-01-02"],
    "granularity": "hour",
    "aggregations": [
        {"type": "count", "name": "edits"},
        {"type": "longSum", "name": "added", "fieldName": "added"}
    ]
})

# Complex filtering with multiple parameters
list_tasks("prod", 
    datasource="wikipedia",
    state="running",
    max_tasks=10
)

Resources

Druid API endpoints are exposed as MCP resources with caching and multi-cluster support:

Resource URI Format

druid://{cluster}/{path}

Available Resources

  • druid://localhost/v2/datasources - List all datasources
  • druid://localhost/v2/datasources/{name} - Get datasource schema
  • druid://localhost/coordinator/v1/datasources/{name} - Coordinator info
  • druid://localhost/coordinator/v1/metadata/datasources/{name}/segments - Segments
  • druid://localhost/overlord/v1/tasks - List tasks
  • druid://localhost/overlord/v1/supervisors - List supervisors
  • druid://localhost/status/health - Health check

Replace localhost with any configured cluster name to access different environments.

Security

This MCP server provides read-only access to your Druid cluster. No write operations are supported or allowed.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for read-only Apache Druid access from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/druid-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage