MCP server
Connect Claude, Cursor and other AI tools to your analytics.
Ultanimus runs an MCP server, so AI tools that speak the Model Context Protocol can set up sites, build dashboards and manage what a site measures for you. Describe the dashboard you want and let the agent build and rearrange it, or let a coding agent add a site, install the script and wait for the first visit. Ask it to rename a goal, add a step to a funnel, save a segment or pause an alert, and it does that too.
The server uses Streamable HTTP and authenticates with an API key. Any client that supports remote MCP servers with a custom header can connect.
Create a key
Create an API key under Integrations → API keys in your organization settings. Every key can read. Tick Change dashboards (dashboards:write) if the agent should build dashboards and add or change goals, funnels, segments, alerts and annotations, and Add sites (sites:write) if it should create sites and set which pages count. Tick Delete dashboards (dashboards:delete) only for an agent that asks you before it runs a tool, since it lets the agent delete those things for good. Keep the key out of files you share: use your client's secret prompt or an environment variable.
Connect your client
claude mcp add --transport http ultanimus https://api.ultanimus.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"# Codex reads the key from your shell: export ULTANIMUS_API_KEY=YOUR_API_KEY
[mcp_servers.ultanimus]
url = "https://api.ultanimus.com/mcp"
bearer_token_env_var = "ULTANIMUS_API_KEY"{
"mcpServers": {
"ultanimus": {
"url": "https://api.ultanimus.com/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}{
"inputs": [
{ "type": "promptString", "id": "ultanimus-key", "description": "Ultanimus API key", "password": true }
],
"servers": {
"ultanimus": {
"type": "http",
"url": "https://api.ultanimus.com/mcp",
"headers": { "Authorization": "Bearer ${input:ultanimus-key}" }
}
}
}Tools
| Tool | Scope | What it does |
|---|---|---|
list_sites | stats:read | Lists the sites in the organization with their IDs, domains and whether the first event has arrived. |
list_dashboards | stats:read | Lists a site's custom dashboards. |
get_dashboard | stats:read | Returns a dashboard's widgets, their positions, a text map of the layout and a link. |
list_goals | stats:read | Lists a site's goals with the keys goal and funnel widgets take. |
list_funnels | stats:read | Lists a site's saved funnels with their keys and steps in order. |
list_alerts | stats:read | Lists a site's alerts with their rules, whether each one is going off and the last reading, with the page an alert watches and the new error or file it found. |
list_annotations | stats:read | Lists a site's annotations, newest first, with times in the site's timezone. It reads the last 30 days unless you ask for up to 1,830. |
list_page_rules | stats:read | Lists the pages a site does not count, with who added each rule and how many events the rules kept out in the last 7 days. |
list_segments | stats:read | Lists a site's saved segments with their keys and filters. |
get_widget_catalog | stats:read | Lists every widget type with its settings and sizes, and the metrics and dimensions widgets can show. |
get_snippet | stats:read | Returns the install snippet for a site. |
install_status | stats:read | Says whether the site's first event has arrived. |
get_web_vitals | stats:read | Returns a site's LCP, INP, CLS, FCP and TTFB from real visits, the elements behind slow page loads and a fix for each. page narrows it to one path, like /pricing. On Foresight it also splits them by browser and country. Insight and Foresight. |
get_load_audit | stats:read | Returns what makes a site's pages heavy on real visits, with fixes ranked by the bytes they save. page narrows it to one path, like /pricing. Insight and Foresight. |
get_search_queries | stats:read | Returns a site's top Google search queries from Search Console, with clicks, impressions, click-through rate and position, and the last day Google reported. Insight and Foresight. |
create_site | sites:write | Adds a site for a domain and returns its ID and snippet. |
create_page_rule | sites:write | Stops counting pages that match a pattern, like /admin/* or a staging host, or brings some back from a wider rule. It says what the rule would have kept out over the last 30 days and which goals it stops. |
delete_page_rule | sites:write | Removes a page rule by its pattern, so those pages count again. |
create_dashboard | dashboards:write | Builds a dashboard from a list of widgets in reading order. |
update_dashboard | dashboards:write | Adds, moves, resizes, edits and removes widgets. |
restore_dashboard | dashboards:write | Undoes changes by saving an earlier revision as the newest. |
create_goal | dashboards:write | Adds a goal: a custom event, or a visit to a page path where * matches anything. |
create_funnel | dashboards:write | Adds a funnel of 2 to 8 steps in order, counted within a day or within one visit. |
create_alert | dashboards:write | Adds an alert for tracking that stops, a number that crosses a line, moves by a percent or leaves its usual range, errors that spike, or a new error or heavy file. It tells owners and admins unless you name other members. |
create_annotation | dashboards:write | Marks something that happened on a site, like a release, at a time you give or now. The note shows the key's name as its author. |
rename_goal | dashboards:write | Changes a goal's name. Its key and what it counts stay, so widgets and alerts keep working. |
update_funnel | dashboards:write | Changes a funnel's name, its steps or whether they count within a day or one visit. The key stays, and the answer shows the steps it had. |
create_segment | dashboards:write | Saves a named group of visits that match every filter you give, like mobile visitors from organic search. |
rename_segment | dashboards:write | Changes a segment's name. Its key and filters stay. |
update_alert | dashboards:write | Changes what an alert watches. The people and channels it tells stay as they are, and the alert starts over. |
pause_alert, resume_alert | dashboards:write | Stops an alert from checking and telling anyone, and turns it back on. |
update_annotation | dashboards:write | Changes an annotation's text, its time or both. |
delete_goal, delete_funnel, delete_segment | dashboards:delete | Deletes one for good. The events and visits stay, so adding it again under the same key brings the numbers back. |
delete_alert | dashboards:delete | Deletes an alert with its record of going off. |
delete_annotation | dashboards:delete | Deletes a note from the charts. The answer repeats its text and time. |
delete_dashboard | dashboards:delete | Deletes a dashboard with its history and every share link that shows it. The answer carries its widgets, so the agent can build it again. |
Tools that read traffic numbers are not built yet, so an agent builds the dashboards and you read the numbers in them.
Things to ask
- "Build a dashboard on example.com for the signup funnel, with sources and countries beside it."
- "Move the map to the top of the Marketing dashboard and make it full width."
- "Undo the last change you made to the Marketing dashboard."
- "Add a goal for the signup event and a funnel from /pricing to signup to purchase, then put the funnel on the Marketing dashboard."
- "Tell me when signups on example.com drop by a third in a day."
- "Rename the goal Signed up to Created an account, and add a checkout step to the Signup funnel after pricing."
- "Save a segment for mobile visitors from organic search."
- "Pause the alerts on example.com until the migration is done, then turn them back on."
- "Delete the three test goals on staging.example.com."
- "Mark today's release on example.com, then tell me why visitors dropped last Tuesday."
- "Stop counting our admin area and staging.example.com."
- "Set up Ultanimus in this project and tell me when the first visit arrives."
Limits and safety
- A key reads only until you tick a permission.
dashboards:writelets an agent add and change dashboards, goals, funnels, segments, alerts and annotations.sites:writelets it add sites and add or remove page rules, and a removed rule can be added back. No tool deletes a site. - Only a key with
dashboards:deletedeletes a dashboard, goal, funnel, segment, alert or annotation, and a delete cannot be undone. A deleted dashboard takes its history and its share links with it. A deleted goal, funnel or segment leaves the events, so adding it again under the same key brings the numbers back. - An agent reads text that visitors send, like error messages, page paths and search words, and someone can hide instructions for the agent in it. Give
dashboards:deleteonly to an agent that asks you before it runs a tool, and keep agents that run on their own on keys without it. - On Foresight, the audit log lists each change under the key's name and marks it as made through MCP. An annotation an agent edits or deletes shows there too.
- Every dashboard change is a new revision. Open History on the dashboard to restore any of the last 50 saves, or ask the agent to undo.
- Each key can make 240 calls a minute, 60 changes a minute and 30 deletes an hour.
- The server sends your analytics to the tool you connect. Connect only tools you trust, and revoke keys you no longer use.
Plans
| Feature | Glance | Insight | Foresight |
|---|---|---|---|
| MCP server | Not included | Included | Included |