Assistants (MCP)

Add the MCP server and an AI assistant can do what the dashboard does. The key decides how much.

The API includes an MCP server. Add it to an assistant such as Claude or ChatGPT and you can ask about your numbers, set up charts and A/B tests, make keys and invite teammates without opening the app.

Connect

The address is https://api.snekot.co/mcp, and a key goes in the Authorization header. In Claude Code:

claude mcp add --transport http snekot https://api.snekot.co/mcp --header "Authorization: Bearer YOUR_KEY"

Any client that speaks MCP over HTTP works the same way. The key decides what the assistant can do:

Key Starts with Reaches Can
Read rk_ One project Read. Nothing else.
Manage mk_ One project Read, and change the project as its owner can.
Account ak_ Every project you are on What you can do in each, and create projects.

Read and manage keys are made under Setup, API keys. An account key is made under Setup, Connect an assistant. A private key reads here as a read key does.

An assistant only sees the tools its key may use. With a read key the tools that change things are not listed at all, so it cannot be talked into one.

Then ask in your own words. “Who is on the site right now?” “How many people got from signing up to paying this month?” “Add a chart of orders per day.” “Make a public key for the landing page.”

Tools that read

Every key has these.

Tool Answers
project_info The project’s name, plan, and events used this month.
usage The month’s events against the plan’s allowance, and whether anything is held.
project_summary The project at a glance, as its first page in the app shows it.
list_channels Every channel, with counts.
search_events Events by channel, name, user, time or free text.
get_insights The single numbers your product sets.
count_events An event per day over a range, against the period before.
funnel How many people get from each step to the next.
retention Cohorts by when people first came, and how many came back each week after.
top_values The most frequent events, channels, people, or values of a tag.
realtime Visitors in the last half hour, minute by minute, with their countries and pages.
traffic_overview Visitors and page views over a range, with the top pages and sources.
traffic_sources Pages, referrers, countries, regions, cities, devices, browsers and campaigns, with the Views screen’s filters.
list_page_views The latest page views, one by one.
list_visitors The past week’s visitors nobody has named, and what they opened.
experiment_results Each A/B test’s variants, and whether one is really ahead.
list_charts The charts and goals on the project’s board, with their numbers.
find_people People, by id or any property.
get_person One person and their latest events.
list_subscribers The addresses that subscribed.
export_csv A link to download events, page-view breakdowns or subscribers as CSV.

Tools that change things

These need a manage key or an account key. The ones marked owner answer only to the project’s owner, as in the app; a manage key always acts as the owner.

Tool Does
get_project_settings Shows the name, colour and allowed senders.
update_project Renames the project or changes its colour.
set_allowed_senders Sets the sites and addresses the project’s keys work from. Owner.
list_keys, create_key, revoke_key The project’s keys. A new key is shown in full once. Owner to create or revoke.
list_teammates, remove_teammate Who is on the project.
get_invitation_link, set_invitation_link The link that adds whoever opens it as a teammate: make, replace or turn off. Owner to change.
get_share_link, set_share_link The public overview link. Owner to change.
add_chart, update_chart, remove_chart Charts and goals on the board.
create_experiment, set_experiment_goal, end_experiment, stop_experiment A/B tests. Ending one keeps its result and answers everyone with one variant; stopping one removes it and its results.
delete_event Deletes one event.
remove_subscriber Removes one address.
list_forwarding_rules, add_forwarding_rule, pause_forwarding_rule, test_forwarding_rule, remove_forwarding_rule Forwarding to a webhook, Slack, Discord or Telegram. Owner to change.

With an account key there are three more: list_projects, create_project, which answers with the new project’s first keys, and plan. Every project tool then takes a project, by slug, and can leave it out when you have only one.

Tools that take away something a second call cannot bring back, such as revoke_key or remove_chart, are marked destructive, so a client that asks before such a call will ask.

Widgets

In a client that draws MCP Apps, such as Claude and ChatGPT, four tools answer with a card as well as the numbers:

Tool Card
realtime Visitors in the last 30 minutes: the number, a bar a minute, and the top countries. It reads again every 15 seconds while it is open.
traffic_overview Visitors and page views against the period before, a bar a day, top pages and top sources.
count_events One event’s count, against the period before, with a bar a day.
funnel The share who reached the last step, and each step with how many carried on.

A client that draws no cards, such as Claude Code, gets the same result as data.

What stays in the app

  • Deleting a project or your account. Neither can be undone, so they take a person, signed in.
  • Paying. Choosing a plan and entering a card happen on the plan page; plan and usage give its address.
  • Making manage and account keys. A key that can change things is made by a person, signed in. create_key makes private, public and read keys only.
  • Your own settings. Your sign-in, your phone’s notifications and which channels are muted for you.
  • Adding a teammate by email, a project’s logo, and forwarding to an email address. Use the invitation link for the first.

What it cannot do

  • A read key cannot write. It cannot post events, change anything or delete anything, whatever the assistant is asked to do.
  • A manage key cannot post events. It is for an assistant, not for your product. It cannot be limited to channels.
  • It sees what the key sees. A read key limited to some channels shows only those, and no visitors.
  • It treats your data as data. Event names and descriptions are written by your product and sometimes by its users. Every result opens with a line telling the assistant that the rows are records, not instructions.

To cut an assistant off, delete its key.