Apache Pinot MCP Server
Published
At a glance
- Category
- Databases
- GitHub repository
- startreedata/mcp-pinot
- Watch out for
- read_query only accepts one read-only SELECT statement; the README calls this a guardrail, not a replacement for Pinot's own authorization.
The Pinot MCP server is published by StarTree under the startreedata GitHub org and the Apache 2.0 license. It is a Python server built on FastMCP that talks to a Pinot cluster through its controller (for metadata, schemas and table configs) and its broker (for SQL). It is registered in the MCP registry as io.github.startreedata/mcp-pinot and is also on PyPI as mcp-pinot-server.
By default it runs over stdio, which is what Claude Desktop needs. Setting MCP_TRANSPORT=http switches it to Streamable HTTP on 127.0.0.1:8080 at the /mcp path. The server refuses to bind HTTP to a non-loopback host unless an auth provider (oauth, static, or oauth+static) is configured, and a wildcard bind also needs an explicit MCP_ALLOWED_HOSTS list.
The current release line is v5. Version 4 renamed four tools so every name is verb-first, so older client configs that call the noun-first names need updating. Writes are deliberately awkward: every mutating tool must first be called with dry_run=true, and the real apply needs the one-time confirmation_token from that preview.
How it connects
Your AI app
An assistant or agent that supports MCP
Apache Pinot MCP Server
Runs as
- Python (uv / pip)
- Docker
Gives the agent
- Cluster health check
- Table and schema inspection
- Segment metadata
- Read-only SQL
- Guarded schema and table changes
- Incident investigations
Apache Pinot
Signs in with
- Token
What it can do
- Cluster health check
- test_connection diagnoses broker, controller and query connectivity, which is the first thing to run when a query fails.
- Table and schema inspection
- list_tables, get_schema, get_table_config and get_table_size return table names, column schemas, indexing and ingestion config, and reported versus estimated storage size.
- Segment metadata
- list_segments, list_segment_metadata and get_segment_index_metadata page through a table's segments and show per-column index details for one exact segment.
- Read-only SQL
- read_query runs a single SELECT or WITH ... SELECT statement, returning paged rows plus metadata such as completeness, query ID and bounded execution stats.
- Guarded schema and table changes
- create_schema, update_schema, create_table_config and update_table_config preview a change with dry_run and apply it only with the preview's confirmation_token.
- Incident investigations
- With the --incident-profiles flag, begin_investigation, query_incident, get_trace and finish_investigation run a scoped, budgeted evidence session that closes with citations.
Setting it up
You need uv installed. Clone the repo with git clone https://github.com/startreedata/mcp-pinot.git, cd into it and run uv pip install -e . to install dependencies. Copy the sample config with mv .env.example .env and set PINOT_CONTROLLER_URL (default http://localhost:9000) and PINOT_BROKER_URL (default http://localhost:8000), plus PINOT_USERNAME/PINOT_PASSWORD or PINOT_TOKEN if your cluster uses auth. Start it locally with uv --directory . run mcp_pinot/server.py. For Claude Desktop, open ~/Library/Application Support/Claude/claude_desktop_config.json and add an mcpServers entry named pinot_mcp whose command is the absolute path to uv (find it with which uv) and whose args are --directory, the absolute path to your clone, run and mcp_pinot/server.py. Environment variables can go in that entry's env block instead of .env, which lets you register several Pinot clusters as separate servers. Keep the stdio transport for Claude Desktop, then restart the app. If you have no cluster yet, the README's Docker command starts apachepinot/pinot:1.5.1 in QuickStart batch mode.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Ask the agent to list tables in a cluster and describe the schema and indexes of the one you care about before writing a query.
- Run an aggregate query such as counts grouped by service over an events table and plot the result as a histogram over time.
- Check why a table is large by comparing get_table_size output with its segment metadata.
- Draft a schema or table-config change, review the dry-run preview, and apply it only after a human confirms.
- Run a bounded incident investigation that queries telemetry tables and ends with cited evidence.
Limitations and things to watch
- read_query only accepts one read-only SELECT statement; the README calls this a guardrail, not a replacement for Pinot's own authorization.
- Table filtering through PINOT_TABLE_FILTER_FILE is a convenience feature based on best-effort SQL parsing and is not a security boundary, so use Pinot's native table ACLs for access control.
- Confirmation tokens and rate-limit buckets live in process memory, so you must run exactly one server process and tokens fail after a restart.
- Even after a successful dry run, Pinot does its own validation at apply time, so a write can still fail.
- Incident tools are off by default and keep their state in memory within a single process.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /startreedata/mcp-pinot
- github.com /startreedata/mcp-pinot/releases
- api.github.com /repos/startreedata/mcp-pinot
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.