Skip to content
← All release notesNewanfra0.4.0

Connect your coding agent to anfra over MCP

`anfra serve` also serves an MCP server, so Claude Code, Cursor or Codex can read your models and run queries.

anfra serve serves MCP at /mcp, over streamable HTTP, next to your Data Apps and the API. Add it to your agent:

claude mcp add --transport http anfra http://127.0.0.1:7878/mcp

Its tools are anfra's own commands, so the agent can list your datasets with their fields and metrics, validate the repo, search it and run queries.

The server needs no sign-in and queries with the credentials in .anfra/data_sources.yml, so it listens on 127.0.0.1 only. Pass --no-mcp to turn it off.

Full changelog (opens in a new tab)