# Pirsch Analytics MCP server > Read Pirsch web analytics: visitors, pages, referrers, UTM, events, funnels and sessions. A hosted remote MCP server by usefulapi.io, an independent service (not affiliated with Pirsch Analytics). - Server URL: https://pirsch.usefulapi.io/mcp - Transport: Streamable HTTP, OAuth sign-in - Status: live - Page: https://usefulapi.io/pirsch/ ## Connect - Claude (claude.ai, Desktop): Customize → Connectors → Add custom connector, name Pirsch Analytics, URL https://pirsch.usefulapi.io/mcp. Prefilled dialog: https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Pirsch%20Analytics&connectorUrl=https%3A%2F%2Fpirsch.usefulapi.io%2Fmcp - Claude Code: `claude mcp add --transport http pirsch https://pirsch.usefulapi.io/mcp`, then run `/mcp` to log in. As a plugin: `claude plugin marketplace add https://usefulapi.io/claude/marketplace.json`, then `claude plugin install pirsch@usefulapi`. - Codex: `codex mcp add pirsch --url https://pirsch.usefulapi.io/mcp`, then `codex mcp login pirsch`. - ChatGPT: Plugins → Add custom MCP server, authentication OAuth. - Perplexity (Pro, Max, Enterprise): Plugins → Add custom → Add MCP connector → Remote, URL https://pirsch.usefulapi.io/mcp, Advanced: OAuth, Streamable HTTP. - Cursor, VS Code and other MCP clients: add the URL as a remote MCP server. Add only the URL. Do not add an `Authorization` header or an API key to the client config. The server signs you in with OAuth: the login page asks for your **Pirsch client ID** and **Pirsch client secret**. If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401. ## Before you connect In Pirsch open **Account Settings** (all your dashboards) or, on a dashboard you own, **Integration Settings**, click **Add Client**, choose the type **oAuth** and turn off every write scope. The secret is shown once. Access keys (pa_...) cannot read statistics. Your credentials are used only to call the Pirsch API on your behalf; they are never shown to anyone. The Pirsch API needs a paid Pirsch plan. ## Example requests - How many visitors did my website get last month compared with the month before? - What are my top 10 pages this week, with visitors and bounce rate? - Where is my traffic coming from, by referrer? - Which countries do my visitors come from this month? ## Pricing - Free: $0, 50 tool calls / month - Pro: $9/mo · $90/yr per user, 10,000 tool calls / month - Pro+: $39/mo · $390/yr per user, 100,000 tool calls / month Each paid plan covers this Pirsch Analytics server only. ## Tools (31) ### Read only (27) - `pirsch_list_domains`: List domains (dashboards). List the Pirsch dashboards (domains) the OAuth client can read: id, hostname, display name, time zone and role. Use the id as domain\_id in every other tool. A dashboard-level client sees one domain; an account-level client sees all. - `pirsch_get_domain`: Get domain. One Pirsch dashboard (domain) by id, with its time zone, hostname, role and subscription state. - `pirsch_get_overview`: Get overview. Quick overview of a dashboard: visitors, views, growth compared with the previous period, a visitors time series and the number of team members. Cached by Pirsch; takes no date range or filters. - `pirsch_get_totals`: Get total visitors. Totals for a period: visitors, views, sessions, bounces, bounce rate and conversion rate. Not grouped by day, so returning visitors are counted once. GET /api/v1/statistics/total. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_visitors_time_series`: Get visitors time series. Visitors, views, sessions, bounces and bounce rate per day, week, month or year (see scale). Use it for traffic charts and trends. GET /api/v1/statistics/visitor. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_growth`: Get growth rates. Growth of visitors, views, sessions, bounces, time spent and conversion rate compared with the previous period of the same length. GET /api/v1/statistics/growth. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_active_visitors`: Get active visitors. Visitors on the site right now (or in the past n seconds), with the pages they are on and their countries. - `pirsch_get_time_distribution`: Get visitors by time. Visitors by hour of the day, by minute (only when from and to are the same day), or by weekday and hour (Monday is 0). Shows when traffic peaks. GET /api/v1/statistics/hours, /minutes or /weekdays. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_duration`: Get time spent. Average session duration over time, or average time on page over time, in seconds. GET /api/v1/statistics/duration/session or /duration/page. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_pages`: List pages. Top pages with visitors, views, sessions, bounces, bounce rate and average time on page. type=entry lists landing pages, type=exit lists exit pages. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/page, /page/entry or /page/exit. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_hostnames`: List hostnames. Traffic per hostname. Mostly useful for rollup views that combine several hostnames. GET /api/v1/statistics/hostname. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_referrers`: List referrers. Where visitors come from: referrers (by=referrer) or traffic channels such as Organic Search and Paid Search (by=channel). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/referrer or /channel. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_utm`: List UTM parameters. Visitors per UTM source, medium, campaign, content or term. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/utm/{dimension}. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_geography`: List countries, regions, cities and languages. Visitors per country, region, city or language. Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/country, /region, /city or /language. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_devices`: List browsers, operating systems and screens. Visitors per browser, browser version, operating system or screen class (XXL to S). Filters narrow the data (for example country=de, path=~blog). Results are rows with visitors, views, sessions, bounces and relative shares. GET /api/v1/statistics/browser, /browser/version, /os or /screen. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_platforms`: Get platform split. Visitors on desktop, mobile and unknown platforms, as counts and shares. GET /api/v1/statistics/platform. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_events`: List events. Custom events with count, visitors, views, conversion rate, average duration and their metadata keys. Use pirsch\_get\_event\_breakdown for the values of one metadata key. GET /api/v1/statistics/events. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_event_breakdown`: Get event metadata breakdown. The values of one metadata key of one event, with count, visitors and conversion rate. Both event and event\_meta\_key are required. - `pirsch_list_event_pages`: List pages of an event. The pages on which an event was triggered, with visitors and views. The event name is required. - `pirsch_list_goals`: List conversion goals. Conversion goals with their definition (page pattern, event, targets) and the visitors, views and conversion rate for the period. GET /api/v1/statistics/goals. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_funnels`: List funnels. The funnels defined for a dashboard, with their steps and step filters. Use a funnel id in pirsch\_get\_funnel. - `pirsch_get_funnel`: Get funnel statistics. Visitors per funnel step for a period: visitors, share of the first step, drop-off between steps. The filter applies to the first step. GET /api/v1/statistics/funnel. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_list_tags`: List tags. Tag keys with views and share. Use pirsch\_get\_tag\_breakdown to see the values of one key. GET /api/v1/statistics/tags. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_tag_breakdown`: Get tag breakdown. The values of one tag key with views and share. The tag filter (the key) is required. - `pirsch_list_sessions`: List sessions. Individual visitor sessions: start, duration, entry and exit page, page views, bounce, country, city, referrer, browser, OS and UTM data. visitor\_id is a string (a 64-bit number). Use pirsch\_get\_session for one session's page views and events. GET /api/v1/statistics/session/list. Text filters (hostname, path, entry\_path, exit\_path, event, language, country, city, referrer, referrer\_name, channel, os, browser, screen\_class and utm\_\*): prefixes !, ~ and ^ mean is not, contains and does not contain. - `pirsch_get_session`: Get session details. All page views and events of one session in time order. Both ids come from pirsch\_list\_sessions. - `pirsch_list_filter_values`: List filter values. The values that exist for a filter in a period, such as all page paths, referrers, countries, browsers or event names. Use it to find valid values before filtering. ### Your usefulapi plan (4) - `pirsch_usage_status`: Usage status (free-tier meter). Report the caller's current usage: the plan, calls used this month, the limit of the plan (the free monthly cap or the Pro fair use limit), remaining, and whether the limit is reached. Read-only; does not count against the meter. - `pirsch_request_feature`: Request a missing feature. Tell usefulapi that the user needs something the Pirsch Analytics tools cannot do yet (a missing tool, field or filter). Call it only when the user asks for something none of the tools can do, and tell the user that you send the request. Do not call it for errors or for normal requests. Do not include personal data, credentials or customer records. Stored with the product name and the client type (for example Claude or Cursor), without the user's account. At most 5 requests per day. Does not count against the meter. - `pirsch_upgrade`: Upgrade to Pro or Pro+. Get a paid plan for Pirsch Analytics (the free tier caps monthly usage). Pro: 10,000 tool calls a month, for normal use — plan "monthly" ($9/month) or "yearly" ($90/year, 2 months free). Pro+: 100,000 tool calls a month, for automations and heavy use — plan "plus" ($39/month) or "plus\_yearly" ($390/year). Without a plan it returns both Pro and Pro+, each with a payment link, for the user to choose; with a plan, one link. An existing Pro subscription changes to Pro+ in place: call without confirm first, as the reply states the exact charge for this account (the price difference for the rest of the period, or in a free Pro trial the full Pro+ price, as the trial ends); then call with confirm: true. Cancel any time: the plan then runs to the end of the paid period, so it also suits a one-time job. A link opens Stripe Checkout in the browser; after payment the account upgrades automatically. Does not count against the meter. - `pirsch_cancel_subscription`: Cancel the Pro subscription. Cancel the caller's Pirsch Analytics Pro subscription at the end of the paid period (no refund for the current period; Pro continues until then, then the free tier applies). Requires confirm: true. Run pirsch\_upgrade later to undo the cancel before the period ends. Does not count against the meter. ## FAQ ### What can I do with Pirsch Analytics in Claude or ChatGPT? Check visitors and growth for a period. Find top pages and landing pages. See where visitors come from. Compare countries, browsers and devices. Check goals and funnel drop-off. Review custom events and their values. See [what you can do](https://usefulapi.io/pirsch/#uses) for the details. ### Is this an official Pirsch Analytics product? No. usefulapi is an independent service. It is not affiliated with or endorsed by Pirsch Analytics. The server calls the Pirsch Analytics API with your own Pirsch Analytics access, so it sees only the data that your account can see. ### Can I connect Pirsch Analytics to Claude or ChatGPT? Yes. In Claude, add this server's URL as a custom connector. In ChatGPT, add it as a custom MCP server in Plugins. Then log in once. Cursor, VS Code, Claude Code and Codex work too. See [the setup steps](https://usefulapi.io/pirsch/#connect). ### What do I need to connect? The login page asks for your **Pirsch client ID** and **Pirsch client secret**. See [Before you connect](https://usefulapi.io/pirsch/#setup) for where to find them. ### Do I put my Pirsch Analytics key or an Authorization header in the client config? No. Add only the URL. Do not add an `Authorization` header or an API key to the client config. The server signs you in with OAuth: the login page asks for your **Pirsch client ID** and **Pirsch client secret**. If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401. ### How do you keep my Pirsch Analytics credentials? The login stores them encrypted in the authorization grant of your connection. The server uses them to call the Pirsch Analytics API for you and to derive a private account id for usage metering. usefulapi does not show them on any page or in any reply. To stop all access, remove the connector and change or delete these credentials in Pirsch Analytics. ### Can the AI change my Pirsch Analytics data? All 27 Pirsch Analytics tools are marked read-only. ### What does it cost? The Free plan gives 50 tool calls / month. Pro costs $9/mo or $90/yr, with 10,000 tool calls / month. Pro+ costs $39/mo or $390/yr, with 100,000 tool calls / month. Each subscription covers this Pirsch Analytics server only. Cancel any time: your paid plan then runs to the end of the paid period. Run `pirsch_usage_status` to see how many calls you used. ### How do I subscribe or cancel? Ask the AI to run `pirsch_upgrade` and choose Pro or Pro+, billed monthly or yearly: it returns a Stripe Checkout link. If you already have Pro, ask to change it to Pro+. After you confirm, your existing subscription changes in place, keeps its billing interval and charges the price difference for the rest of the period immediately. To cancel, run `pirsch_cancel_subscription`. Your paid plan continues to the end of the paid period. ### What if a Pirsch Analytics tool that I need is missing? Tell the AI what you wanted to do. It can send the request with `pirsch_request_feature`. We store the text with the server name, the type of AI client and the tool you tried, not with your account, and read every request when we plan new tools. You can send up to 5 requests per day. ### Which AI clients can I use? Any client that supports remote MCP servers (Streamable HTTP) with OAuth login: Claude (web and desktop), Claude Code, ChatGPT, Codex, Perplexity, Cursor, VS Code, Windsurf and others. ## Links - [Pirsch Analytics MCP server page](https://usefulapi.io/pirsch/) - [All servers](https://usefulapi.io/llms.txt) - [Terms of Service](https://usefulapi.io/terms/) - [Privacy Policy](https://usefulapi.io/privacy/) - Support: support@usefulapi.io