Docs menu · Developers

Use ChartOmodo from an agent or coding assistant

An assistant that can read OpenAPI or a skill file can push rows into ChartOmodo and read charts back. You stay in charge of what gets drawn and where it is embedded.

Updated 15 October 2026

What an agent can do today

  • Create a dataset and push rows, replace them or append to them, with an Idempotency-Key so retries are safe.
  • Read the chart config shape from https://chartomodo.com/api/v1/charts/schema, check a chart with https://chartomodo.com/api/v1/charts/validate, create it on the dataset, and change it later.
  • Group charts into a dashboard and hand you the embed link.
  • List your charts and read the categories and series a chart draws.

The agent gets the same checks the builder runs: a chart option your plan does not include is refused with the plan that unlocks it, never saved silently. Your chart list draws a chart made by an agent directly until you save it once in the builder, which stores its thumbnail.

Four ways in

  1. MCP. Add https://chartomodo.com/mcp to Claude Code, Cursor, VS Code or any MCP client that can send a Bearer header. Setup is in the next section.
  2. OpenAPI. Give your tool https://chartomodo.com/openapi.json. It lists every endpoint, schema and error code.
  3. Skill file. Save https://chartomodo.com/developers/agents/skill.md as SKILL.md in your assistant's skills folder. It carries the workflow and the limits.
  4. One Markdown file. Paste https://chartomodo.com/llms-full.txt into the context when your tool reads neither of the above.

Connect over MCP

The server answers at https://chartomodo.com/mcp over HTTP and takes the same cmo_ token as the API, sent as a Bearer header. Create the token with the Agent preset: it expires after 90 days and you can revoke it alone.

Claude Code:

claude mcp add --transport http chartomodo https://chartomodo.com/mcp --header "Authorization: Bearer cmo_..."

Cursor, in .cursor/mcp.json:

{
  "mcpServers": {
    "chartomodo": {
      "url": "https://chartomodo.com/mcp",
      "headers": {
        "Authorization": "Bearer cmo_..."
      }
    }
  }
}

VS Code, in .vscode/mcp.json:

{
  "servers": {
    "chartomodo": {
      "type": "http",
      "url": "https://chartomodo.com/mcp",
      "headers": {
        "Authorization": "Bearer cmo_..."
      }
    }
  }
}

The tools, each one call to the API above:

  • get_account: Check the connection
  • list_datasets: List datasets
  • create_dataset: Create a dataset
  • append_rows: Append rows
  • replace_rows: Replace all rows
  • list_charts: List charts
  • get_chart: Read a chart
  • get_chart_data: Read chart numbers
  • get_chart_insights: Read chart Insights
  • get_chart_schema: Read the chart shape
  • validate_chart: Check a chart
  • create_chart: Create a chart
  • update_chart: Change a chart
  • create_dashboard: Create a dashboard

Each tool call counts as one request toward the token's limit of 60 per minute. Tokens from the Read only preset see only the tools that read.

Try it from a terminal

curl https://chartomodo.com/api/v1/me -H "Authorization: Bearer cmo_..."
curl -X POST https://chartomodo.com/api/v1/datasets -H "Authorization: Bearer cmo_..." -H "Content-Type: application/json"   -d '{"name":"Daily sales","rows":[{"day":"2026-10-01","amount":120.5}]}'
curl -X POST https://chartomodo.com/api/v1/charts -H "Authorization: Bearer cmo_..." -H "Content-Type: application/json"   -d '{"name":"Sales by day","type":"bar","datasetId":"<dataset id>","config_axis":{"xAxisProp":"day","yAxisProps":["amount"],"aggregation":"sum","filters":[]}}'
curl -X POST https://chartomodo.com/api/v1/dashboards -H "Authorization: Bearer cmo_..." -H "Content-Type: application/json"   -d '{"name":"Sales","chartIds":["<chart id>"]}'

Keep the token safe

Give the agent its own token, named after the agent, so you can revoke it alone. Do not paste tokens into prompts that get logged. The token can read your charts, write to datasets created through the API, and create and change charts, create dashboards, nothing else: it cannot delete a chart or touch Notion, CSV and connector sources.

chartomodo.com/settings/api
The Settings API page, where a token is created with a preset and listed with its scopes and expiry.
Settings → API: one token per agent, each revoked on its own.

Questions

Does ChartOmodo run a model of its own?

No. Your assistant does the thinking. ChartOmodo stores the rows, draws the chart and serves the embed.

Can an agent delete my data?

Only datasets created through the API, with DELETE on that dataset. Charts built on it stay. Notion, CSV and connector sources are not reachable over the API.

How do I cut an agent off?

Revoke its token in Settings, API. Every request with that token answers 401 from then on.

Which plan do I need?

Reading over the API starts on the Starter plan, writing on the Pro plan. The token page tells you which presets your plan includes.

Start free, then add a token

Reading over the API starts on the Starter plan, writing on the Pro plan.

Start free

May we use Google Analytics cookies to count visits to our public pages, and remember which link brought you here in case you sign up? Nothing inside the app or your embeds is ever tracked. Privacy Policy