Druid MCP Server logo

Druid MCP Server

by iunera

Connects MCP clients to Apache Druid for querying data, inspecting metadata, and managing cluster operations.

Install Druid MCP Server

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
http://localhost:8080/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

iunera/druid-mcp-server MCP server connects MCP-compatible AI clients with Apache Druid through tools, resources, and prompts. It uses Spring AI and can run over STDIO, Server-Sent Events, or Streamable HTTP, with tools activated through Spring profiles. The default query profile provides read-only data browsing and querying, while other profiles support additional Druid management areas. Use it when an agent needs access to Druid datasources, schemas, lookups, segments, or cluster workflows.

Use cases

  • Query Apache Druid data through an MCP client
  • Inspect datasource schemas and column metadata
  • Review Druid lookup configuration and status
  • Retrieve segment metadata for cluster analysis
  • Guide data analysis workflows with reusable prompts

Key features

  • Apache Druid datasource and schema queries
  • Lookup configuration and status retrieval
  • Segment metadata access
  • STDIO, SSE, and Streamable HTTP transports
  • MCP resources and customizable prompts
  • Spring profile-based capability activation

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

16/16 checks healthy over the last 79d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars18Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Druid MCP Server works

What iunera/druid-mcp-server MCP server does

iunera/druid-mcp-server MCP server exposes Apache Druid operations through the Model Context Protocol. Its interface is divided into three MCP component types: tools for executable operations, resources for retrieving Druid information, and prompts for task-oriented guidance. This makes Druid data and administrative context available to MCP clients without requiring the client to implement Druid API calls directly.

The project is written in Java and integrates with Spring AI's MCP server support. It is intended for environments with an existing Apache Druid cluster, including deployments where a Druid Router is available on port 8888.

How it works

The server connects to Druid using configured service URLs and exposes capabilities according to active Spring profiles. The default configuration uses STDIO transport and enables the query profile. That profile is described as safe and read-only, covering data discovery and querying rather than mutating cluster state.

Transport options include STDIO, SSE, and Streamable HTTP. Streamable HTTP uses an /mcp endpoint when the http profile is enabled. SSE and Streamable HTTP connections use OAuth 2.0 security by default, requiring clients to provide a Bearer token unless OAuth protection is disabled through configuration.

The repository includes an MCP configuration file, Docker examples, and a Ypipe blueprint.

Setup and configuration

Running the project requires Java 25. Building from source also requires Maven 3.6 or newer. The application can be packaged with Maven and started from the resulting JAR, or run from the published Docker image. A pre-built JAR is available through Maven Central.

Set DRUID_ROUTER_URL to the Druid Router address and DRUID_COORDINATOR_URL to the Coordinator address when using the documented Docker configuration. The default application port is 8080. To enable HTTP transport, activate the http and query Spring profiles; the documented HTTP configuration exposes /mcp on port 8080.

DRUID_MCP_SECURITY_OAUTH2_ENABLED controls OAuth 2.0 protection. Its documented default is true; setting it to false allows access without OAuth tokens. Enterprise identity-provider integrations such as OpenID Connect, Azure AD, and Keycloak are mentioned as consulting-supported options rather than fully documented local setup paths.

Tools and capabilities

iunera/druid-mcp-server MCP server includes a getDatasources tool for listing Druid datasources or retrieving schema details for a selected datasource. The tool can query table and column metadata and accepts optional datasource and detail parameters.

The getLookups tool retrieves lookup configuration or status for all lookups or a selected tier or lookup name. The getSegments capability provides segment metadata or details. The available tool set is organized around areas such as data management, ingestion management, and monitoring and health, with the exact active set controlled by Spring profiles.

Resources expose accessible Druid datasources and metadata. Prompts provide customizable templates intended to guide data analysis and Druid management tasks. The README presents these components through the MCP Inspector interface.

Limitations and notes

The default query profile is read-only, so write or administrative operations may require another profile and are not guaranteed to be enabled by default.

The server does not include an Apache Druid cluster. A reachable Druid deployment and correctly configured service URLs are required for meaningful use. OAuth behavior differs by transport: STDIO is shown as the default mode, while HTTP and SSE are secured by OAuth 2.0 unless explicitly disabled.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Druid MCP Server

Build it with Java 25 and Maven, run the published JAR from Maven Central, or use the documented Docker image `iunera/druid-mcp-server:latest`.

The Docker examples configure `DRUID_ROUTER_URL` and `DRUID_COORDINATOR_URL`. `SPRING_PROFILES_ACTIVE` selects profiles such as `http,query`, and `DRUID_MCP_SECURITY_OAUTH2_ENABLED` controls OAuth protection.

Yes. Enable the `http` Spring profile to expose Streamable HTTP at `/mcp` on port 8080. SSE is also listed as a supported transport.

OAuth 2.0 is enabled by default for Streamable HTTP and SSE. It can be disabled by setting `DRUID_MCP_SECURITY_OAUTH2_ENABLED` to `false`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDruid MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/iunera-druid-mcp-server?style=directory)](https://allmcps.com/mcp/iunera-druid-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/iunera-druid-mcp-server"><img src="https://allmcps.com/api/badge/iunera-druid-mcp-server?style=directory" alt="Druid MCP Server on AllMCPs" /></a>