MCP server
Your AI agent gets the approved number, not a guess
Canon is governed AI analytics. Your team approves each metric definition once, and every answer uses that definition. The Canon MCP server lets Claude Code, Cursor or any MCP client ask the same ledger. If no approved metric fits, Canon says so instead of guessing.
- Endpoint
- https://canonmetrics.com/api/mcp
- Transport
- Streamable HTTP, JSON-RPC 2.0, POST only
- Auth
- X-Api-Key header (no OAuth)
- Price
- Free during the beta, no credit card
1. Get an MCP key
- Sign up free or log in, and upload a CSV file.
- Open Ledger. On the card MCP key for AI agents, click Create MCP key, then Copy.
- Put the key in the X-Api-Key header of your MCP client (examples below). Keep it secret.
The MCP key has editor rights. It can read approved metrics, ask questions and draft new metrics. It cannot approve or publish a metric. That boundary is enforced in the Canon API, not only in the agent prompt.
2. Connect your client
Claude Code
claude mcp add --transport http canon https://canonmetrics.com/api/mcp \
--header "X-Api-Key: <your Canon MCP key>"Or add it to .mcp.json in your project:
{
"mcpServers": {
"canon": {
"type": "http",
"url": "https://canonmetrics.com/api/mcp",
"headers": { "X-Api-Key": "<your Canon MCP key>" }
}
}
}Cursor
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"canon": {
"url": "https://canonmetrics.com/api/mcp",
"headers": { "X-Api-Key": "<your Canon MCP key>" }
}
}
}Other MCP clients
Use a remote (streamable HTTP) server with the URL https://canonmetrics.com/api/mcp and the header X-Api-Key. Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05 are supported. Listing the tools needs no key, so you can check the connection first:
curl -s -X POST https://canonmetrics.com/api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'3. The 9 tools
Read tools (5)
list_metricsList the approved metrics, with the business questions each one answers. Call this first to see what you can ask about.
get_metricGet the full approved definition of one metric by exact name: its SQL logic, dimensions and measures, and the example questions it answers.
ask_metricsAsk a question in plain English. You get the approved number or chart, or an honest refusal if no approved metric fits. Never a guess. It uses the same answer path as the Canon app.
drill_downGet up to 100 raw rows behind one approved metric, by its ledger id (from list_metrics or ask_metrics).
get_audit_logGet the recent audit trail: every question asked and answer given, from the app or from an agent, and when.
Write tools (4): drafts only, a human approves
propose_metricPropose a new metric as a draft. This does not approve it. sql_expression is a DuckDB aggregate over your data, for example SUM(revenue).
update_draftEdit a draft's name, description, business questions or synonyms. An approved metric cannot be changed; propose a new one instead.
quick_check_golden_queryRun the trust check on a draft: save its current value as the known-good answer and confirm it passes. Required before a draft can be submitted or approved.
submit_for_approvalMark a draft as ready for human review. This does not approve it. It needs at least one business question and a passing trust check.
The rule: there is no approve tool
Agents propose, humans approve, Canon records. An agent can draft a metric, run the trust check and submit it for review. Only a human approver, in the Canon app, can approve it.
An agent that calls a tool named approve gets a refusal, and the metric stays a draft. Every MCP call is written to your audit log with the origin mcp, so you can see what each agent asked and did.
What to know today
- Canon reads CSV files you upload, up to 50 MB. It does not connect to live databases yet.
- Canon's AI only picks the approved metric. Canon computes the number from your file itself and does not send your data rows to its AI model.
- Each key reads and writes only its own workspace.
Try it with your own numbers
Free during the beta. No credit card.
Sign up free