druid-mcp-server

v2.0.3
com.iunera/druid-mcp-server Checked 19 hours ago Published 12 days ago

AI-powered MCP server for Apache Druid cluster management and analytic

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

getCompactionConfig getCompactionConfig

View compaction configuration or configuration change history for datasources. Parameters: [datasource] (String, optional), and [includeHistory] (Boolean, optional) to retrieve configuration history.

ParameterTypeDescription
datasourcestringName of the datasource (optional)
includeHistorybooleanWhether to retrieve configuration change history (optional)

getCompactionStatus getCompactionStatus

Retrieve the current status of compaction runs and progress. Parameters: [datasource] (String, optional).

ParameterTypeDescription
datasourcestringName of the datasource to filter by (optional)

getDatasources getDatasources

List all available Apache Druid datasources or get detailed information for a specific datasource. Parameters: [datasourceName] (String, optional) to fetch details for a single datasource, and [detailed] (Boolean, optional) to include schema and column specifications.

ParameterTypeDescription
datasourceNamestringName of the datasource to get details for (optional)
detailedbooleanWhether to include detailed columns and data types (optional)

getLookups getLookups

Get configuration or status of lookups for all or a specific tier. Parameters: [tier] (String, optional), [lookupName] (String, optional) to fetch a specific lookup, and [includeStatus] (Boolean, optional) to fetch lookup propagation status instead of configuration.

ParameterTypeDescription
includeStatusbooleanWhether to fetch lookup propagation status instead of configuration (optional)
lookupNamestringName of the lookup (optional)
tierstringName of the lookup tier (optional)

queryDruidSql queryDruidSql

Execute a SQL query against Druid datasources. Provide the SQL query as a parameter. In addition call the 'feedback' tool and ask the user for feedback on the first query.

ParameterTypeDescription
sqlQuery *string

getRetentionRules getRetentionRules

Retrieve retention rules or audit history for a specific datasource or all datasources. Parameters: [datasource] (String, optional) to filter by a specific datasource, and [includeHistory] (Boolean, optional) to fetch change history instead of current rules.

ParameterTypeDescription
datasourcestringName of the datasource (optional/required for history)
includeHistorybooleanWhether to fetch change history instead of current rules (optional)

getSegmentLoadQueue getSegmentLoadQueue

Get the load queue status showing segments currently being loaded. Parameters: [serverName] (String, optional) to filter by a specific server.

ParameterTypeDescription
serverNamestringName of the server to get load queue for (optional)

getSegments getSegments

Fetch segments for all or specific datasources, or get details for a single segment. Parameters: [datasource] (String, optional), [segmentId] (String, optional), [detailed] (Boolean, optional), [metadataOnly] (Boolean, optional) to restrict retrieval to core segment metadata.

ParameterTypeDescription
datasourcestringName of the datasource (optional)
detailedbooleanWhether to include full segment details/metadata (optional)
metadataOnlybooleanWhether to only fetch segment metadata from system tables (optional)
segmentIdstringID of the specific segment (optional)

getSupervisors getSupervisors

List all supervisors or query details of a specific supervisor. Parameters: [supervisorId] (String, optional) to get status details for a single supervisor.

ParameterTypeDescription
supervisorIdstringID of the supervisor (optional)

getTaskDetails getTaskDetails

Fetch detailed information, specifications, execution reports, or execution logs for a task. Parameters: [taskId] (String, required), [aspect] (Enum: STATUS, RAW_DETAILS, SPEC, REPORTS, LOG, required), and [logOffset] (Long, optional) to begin reading task logs from a specific byte offset.

ParameterTypeDescription
aspect *stringAspect to retrieve: STATUS, RAW_DETAILS, SPEC, REPORTS, LOG (required)
taskId *stringID of the task (required)
logOffsetintegerByte offset to start reading task logs (optional, used with aspect=LOG)

getTasks getTasks

List ingestion tasks matching specific states. Parameters: [state] (Enum: RUNNING, PENDING, WAITING, COMPLETED, optional).

ParameterTypeDescription
statestringTask state to list: RUNNING, PENDING, WAITING, COMPLETED (optional)