Skip to content

MCP server

View as Markdown

Connect Claude, Cursor or another MCP client to your Reveata data.

On this page

Reveata runs a Model Context Protocol (opens in a new tab) server, so AI assistants can read your analytics and, with your permission, manage goals, funnels, segments, notes and alerts, and (with an access token) website settings, the team and API keys.

Server URL: https://reveata.com/api/mcp

Connect

Add the server URL to your MCP client. Clients that support OAuth open a Reveata consent page in your browser: choose the websites and permissions to share and approve. No token to copy.

Step-by-step guides: ChatGPT, Claude, Cursor, VS Code, Windsurf, Zed, Gemini CLI, Codex and Perplexity.

Claude Code

bash
claude mcp add --transport http reveata https://reveata.com/api/mcp

Cursor and other clients with a JSON config

json
{
  "mcpServers": {
    "reveata": { "url": "https://reveata.com/api/mcp" }
  }
}

Security

  • Connections use OAuth 2.1 with PKCE (see the OAuth reference). You see exactly which websites and permissions a client asks for before you approve.
  • A connection never has more access than your own role on each website, and viewers who may not see revenue get no revenue, payment or customer data.
  • AI tools connected with OAuth can read, and can change goals, funnels, segments, notes and alerts if you allow it. Read access to settings, the team, API keys, access tokens, your account and payments is never part of a default connection: a client gets it only when it asks for each one by name and you approve it on the consent screen. OAuth clients can never change those; that works only when the MCP client sends an account access token that has the permission.
  • Revoke a connection at any time from your account settings; it stops working immediately.

Changes need your confirmation

Every tool that changes something follows the same rules:

  • confirm: true is required. Without it the tool changes nothing and tells the assistant to describe the change and ask you first.
  • idempotencyKey makes retries safe. Send a unique key (8 to 128 characters, for example a UUID) with each change. If the call is repeated with the same key and the same arguments within 24 hours, the server returns the first result instead of making the change again. The same key with different arguments is refused, and a call that failed frees its key so it can be retried.
  • Secrets are shown once. A site key or access token created through a tool is in that one result. A replayed call returns a placeholder instead, and the secret is never stored with the key.
  • Honest hints. Every tool carries the MCP annotations readOnlyHint, destructiveHint (deletes, revokes and removals) and idempotentHint, so clients can warn before risky calls.
  • Audit log. Changes made through MCP are recorded in the audit log with the connection that made them, marked as coming from MCP.

Money values are integer minor units (cents) in the website's currency; rates are percentages.

Tools

Your client only lists the tools your connection has a permission for.

Analytics

Visitors, revenue, sources and pages for any date range, with comparisons, plus a shortcut per dimension.

Tool Kind What it does
get_overview Read Totals for a date range: visitors, revenue, conversion rate and more.
get_timeseries Read Metrics per hour, day, week or month for charts.
get_breakdown Read Top values of any dimension with the metrics you choose.
get_revenue_by_channel Read Revenue, payments and conversion rate per channel.
get_new_vs_returning Read Every metric for first-time versus returning visitors.
get_not_found_pages Read Pages that answered 404, and the pages linking to them.
get_pages Read Top pages.
get_entry_pages Read Pages visits started on.
get_exit_pages Read Pages visits ended on.
get_referrers Read Top referring websites.
get_channels Read Acquisition channels, including AI assistants.
get_campaigns Read Top UTM campaigns.
get_countries Read Top countries.
get_regions Read Top regions and states.
get_cities Read Top cities.
get_devices Read Desktop, mobile and tablet.
get_browsers Read Top browsers.
get_operating_systems Read Top operating systems.
get_hostnames Read Domains and subdomains pages were viewed on.
get_outbound_links Read Links to other websites people clicked.

Websites and settings

List and add sites, see who is on them right now, and change their settings.

Tool Kind What it does
list_websites Read Websites this connection can reach, with your role on each.
get_website Read One website with its timezone and reporting currency.
get_realtime Read Who is on the website right now, with top pages, countries and sources.
create_website Write Add a website and get its tracking id.
get_website_settings Read Exclusions, cookieless mode, public dashboard, attribution and other settings.
update_website Write Change exclusions, domains, cookieless mode, public dashboard, currency, timezone.
update_attribution_settings Write Change the attribution model and window, renewals and refunds.

Visitors

Find individual visitors, follow the path each one took, and identify them.

Tool Kind What it does
search_visitors Read Find visitors by identity, page, goal, location, device or source.
get_visitor_journey Read One visitor’s profile, sessions, goals, payments and events.
identify_visitor Write Attach your user id and email to a visitor from your backend.

Goals and funnels

Read conversions, customise goals, record goals and build funnels with step-by-step drop-off.

Tool Kind What it does
get_goals_report Read Completions, conversion rate and revenue for every goal.
get_goal_properties Read One goal with its sources, pages and custom property values.
list_goal_completions Read Individual goal completions of the last 30 days.
update_goal Write Rename, recolour or hide a goal, or make it the #1 KPI.
reset_goal Write, destructive Remove a goal’s display settings (completions are kept).
track_goal Write Record a goal from a trusted source, credited to a visitor.
list_funnels Read Saved funnels and their steps.
get_funnel_report Read Drop-off, conversion and timing per funnel step.
create_funnel Write Save a funnel of page and goal steps.
update_funnel Write Rename a funnel or replace its steps.
delete_funnel Write, destructive Delete a saved funnel.

Revenue and integrations

Payments with their traffic source, customers, MRR and the health of your payment providers.

Tool Kind What it does
list_payments Read Recent payments with the source each one is attributed to.
get_customers_summary Read Customers, new customers and lifetime value.
get_subscription_metrics Read MRR, ARR, churn and trial conversion.
list_integrations Read Payment providers with their sync and webhook health.
test_integration Write Check a payment provider connection.

Segments and notes

Saved filter sets and the notes pinned to your charts.

Tool Kind What it does
list_segments Read Your saved segments.
create_segment Write Save a set of filters as a segment.
update_segment Write Rename a segment or change its filters.
delete_segment Write, destructive Delete a segment.
list_notes Read Notes pinned to days on the charts.
create_note Write Pin a note to a day on the charts.
update_note Write Edit a chart note.
delete_note Write, destructive Delete a chart note.

Alerts

Traffic and revenue alerts, scheduled reports and their history.

Tool Kind What it does
list_alerts Read Traffic and revenue alerts and scheduled reports.
get_alert_history Read When alerts fired and how each delivery went.
create_alert Write Create an alert or a weekly or monthly report.
update_alert Write Pause an alert or change its condition and channels.
delete_alert Write, destructive Delete an alert.
test_alert Write Send a test through an alert’s channels.

Bots

AI and search crawler traffic and crawler rules.

Tool Kind What it does
get_bot_traffic Read Search, AI assistant and AI training crawler requests.
get_bot_rules Read Allow and block rules per crawler, as robots.txt.
update_bot_rules Write Allow or block crawlers.

Team and access

Members and invites, website API keys, account access tokens and your account.

Tool Kind What it does
list_team Read Members, their roles and pending invites.
invite_member Write Invite someone as viewer, editor or admin.
update_member_role Write Change a member’s role.
remove_member Write, destructive Remove someone from a website.
revoke_invite Write, destructive Cancel a pending invite.
list_site_keys Read Website API keys, masked.
create_site_key Write Create a website API key (secret shown once).
roll_site_key Write, destructive Replace a site key’s secret.
revoke_site_key Write, destructive Revoke a site key.
list_access_tokens Read Your account access tokens, masked.
create_access_token Write Create a token, never stronger than the one in use.
update_access_token Write Change a token’s permissions without changing its value.
revoke_access_token Write, destructive Revoke an access token.
get_account Read Your profile, sign-in methods and preferences.
update_account Write Change your name and preferences.

The same data is available over the REST API and the CLI.

Was this helpful?