Rill MCP Server
Published
At a glance
- Category
- Data & analytics
- GitHub repository
- rilldata/rill
- Watch out for
- It queries existing metrics views and is not designed for creating them or for general data engineering work.
Rill Data builds the MCP server into Rill itself, so there is nothing separate to install. Every Rill Cloud project exposes a remote HTTP endpoint at api.rilldata.com, and Rill Developer serves one locally at localhost:9009/mcp. The source lives in the main rilldata/rill repository alongside the runtime.
The server is aimed at analysts rather than data engineers. It lets an AI client read and query metrics views that already exist in a project, with their defined measures and dimensions, instead of pointing the model at raw warehouse tables. Rill's argument is that answers then line up with what the project's dashboards show.
There are two kinds of endpoint. A per-project URL scopes the connection to one project (and optionally one branch deployment), while the unified https://api.rilldata.com/v1/mcp endpoint covers every project your account can reach and adds a project argument to each tool call. Project owners can add ai_instructions in rill.yaml or in metrics view YAML to give the model extra context, and can define skills the client loads on demand.
How it connects
Your AI app
An assistant or agent that supports MCP
Rill MCP Server
Runs as
- npx (Node.js)
- Remote (HTTP)
Gives the agent
- Discover metrics views
- Check data time range
- Run aggregate queries
- Charts
- Project skills
- Multi-project and file tools
Rill
Signs in with
- OAuth / browser sign-in
- Token
What it can do
- Discover metrics views
- list_metrics_views returns the metrics views in a project, and get_metrics_view fetches one view's spec with its dimensions and measures.
- Check data time range
- query_metrics_view_summary reports the time range a metrics view covers, which helps the model pick sensible periods before querying.
- Run aggregate queries
- query_metrics_view runs queries against a metrics view and returns aggregated results.
- Charts
- create_chart returns chart data as a table with an Open in Rill link, and clients that support MCP Apps render it as an interactive chart. chart_data is used by that chart app to refetch data and is not meant to be called directly.
- Project skills
- list_skills lists skills defined in the project and load_skill fetches a skill's full instructions, such as the bundled rill-charts skill.
- Multi-project and file tools
- On the unified endpoint, list_projects returns the org/project slugs you can access. Per-project endpoints also offer developer file tools: list_files, read_file, search_files and write_file.
Setting it up
For Claude Code, run claude mcp add --transport http <rill-mcp-server-name> https://api.rilldata.com/v1/orgs/{org_name}/projects/{project_name}/runtime/mcp, start claude, open /mcp, pick the Rill server and choose Authenticate to finish the OAuth login in your browser. In Claude Desktop on a paid plan you can instead go to Settings, Connectors, Add custom connector and paste the same URL. To target a branch deployment, insert /branch/{branch_name} after the project name. For manual configuration (needed for a local Rill Developer instance), install Node.js and add an mcpServers entry that runs npx with the args mcp-remote and the endpoint URL. For private Cloud projects also pass --header Authorization:${AUTH_HEADER} and set AUTH_HEADER to Bearer followed by a token created with rill token issue or from the project's AI tab. The local endpoint is http://localhost:9009/mcp. Restart Claude Desktop after editing claude_desktop_config.json.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Ask how sales of one service changed week on week and get numbers computed from the project's defined measures.
- Compare last quarter with the current quarter for a metric such as customer access and summarise the trend.
- Break down recent request counts by a dimension like mobile versus desktop over the last 7 days.
- Chart a metrics view query and hand a colleague the Open in Rill link to the matching Explore dashboard.
- Load a project skill such as a revenue root-cause playbook before investigating a drop.
Limitations and things to watch
- It queries existing metrics views and is not designed for creating them or for general data engineering work.
- Answers only cover data modelled in Rill metrics views, not arbitrary warehouse tables.
- OAuth custom connectors in Claude Desktop and ChatGPT require paid plans, and the manual route needs Node.js plus a personal access token for private projects.
- Per-project endpoints expose write_file, so a connected agent can change project files if the user has that access.
- Inline interactive charts only appear in clients that support MCP Apps; Claude Code and similar clients get a table and link instead.
Sources
Written from the project's own documentation, checked November 2026.
- docs.rilldata.com /guide/ai/mcp
- github.com /rilldata/rill/blob/main/docs/docs/guide/ai/mcp.md
- github.com /rilldata/rill/blob/main/docs/docs/guide/ai/external-mcp.md
- github.com /rilldata/rill
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.