PageLens Analytics
Cookieless web analytics and AI Visibility: traffic, funnels, errors, and which AI bots read you.
Connect it
Settings → Connectors → Add custom connector
URL: https://app.pagelens.io/mcpSettings → Apps & Connectors → Advanced → Developer mode
Create connector with URL: https://app.pagelens.io/mcp{
"mcpServers": {
"pagelens": {
"url": "https://app.pagelens.io/mcp",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}claude mcp add --transport http pagelens https://app.pagelens.io/mcp --header "Authorization: <value>"{
"servers": {
"pagelens": {
"type": "http",
"url": "https://app.pagelens.io/mcp",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}23 tools, verified live
list_sitesread-onlyList the websites this key can access, with visitors in the last 24 hours.
list_segmentsread-onlySaved segments (named filter sets such as "Paid traffic" or "Mobile in Germany") that can be applied to any report with segment_id.
get_overviewread-onlyHeadline metrics (visitors, sessions, pageviews, pages per session, bounce rate, average session duration) for a period, compared with the previous period of the same length, plus a time series.
get_breakdownread-onlyTop values of one dimension (pages, entry/exit pages, referrers, channels, UTM tags, countries, cities, browsers, OS, devices, languages, custom events, outbound links) with visitors and sessions.
get_pagesread-onlyPer-page metrics: visitors, pageviews, entries, bounce rate and time on page.
get_realtimeread-onlyVisitors online right now (last 5 minutes) and what they are viewing.
list_sessionsread-onlyRecent sessions with entry/exit page, pages viewed, duration, source, location and device.
get_sessionread-onlyEvery pageview and event in one session, in order.
get_eventsread-onlyCustom events (sent with pagelens.track) and outbound clicks with counts and their properties.
get_errorsread-onlyJavaScript errors grouped by message, with occurrences, affected sessions and pages.
get_web_vitalsread-onlyCore Web Vitals from real visitors (LCP, INP, CLS, FCP, TTFB) at p50/p75/p90, overall and per page.
get_journeysread-onlyMost common page-to-page paths visitors take.
run_funnelread-onlyConversion funnel: how many sessions completed each step. Steps are pages (path, * wildcard allowed), custom event names, or a page scrolled at least `threshold` percent (type scroll). mode: ordered (default; other pages may come in between), strict (each step right after the previous one) or flexible (middle steps may be skipped). compare_previous adds the same funnel over the previous period.
list_goalsread-onlyGoals with conversions and conversion rate for the period, compared with the previous period.
create_goalCreate a goal that counts sessions visiting a page, firing a custom event, or scrolling a page at least `threshold` percent (type scroll). Needs a write key and member access or higher.
add_annotationMark a date on the charts (a release, a campaign, an outage). Needs a write key and member access or higher.
get_retentionread-onlyCohort retention of identified users (pagelens.identify): share of each daily or weekly cohort that came back in later periods.
list_usersread-onlyUsers active in the period: identified users (with traits) and anonymous visitors, with sessions, pageviews and first source.
get_userread-onlyProfile of one identified user (traits, first/last seen, totals) and their sessions.
get_search_consoleread-onlyGoogle Search Console data for the site (when connected): clicks, impressions, CTR and average position in Google Search, by query, page, country or device, plus a daily series. Data lags about 2 days.
delete_user_datacan modifyGDPR erasure: permanently delete all events, session replays and the profile of one user on a site. Needs a write key and admin access.
get_bots_and_airead-onlyBot and AI traffic: AI crawlers (GPTBot, ClaudeBot…), AI assistants fetching pages, search engines, and human visits referred by AI assistants (ChatGPT, Perplexity, Claude…).
get_ai_visibilityread-onlyHow the site shows up in AI assistants, per AI company (OpenAI/ChatGPT, Anthropic/Claude, Perplexity, Google/Gemini…) and per page: crawler reads, live fetches while answering a person, human visits sent back, purchases and revenue, robots.txt access, and plain-language findings.
Alternatives in Databases & Data
Compare →SDSTRING Database MCP ServerA
Query STRING interactions, enrichment, annotations, homology, and PPI networks.
SBStable BaselineB
End-to-end agent-managed company brain. Docs, diagrams, plans, databases, agents, Knowledge Graph.
Kinsta MCP by usefulapiB
Read Kinsta sites, environments, backups, logs and analytics; clear caches, restart PHP, back up.
Waitwhile MCP by usefulapiB
Read Waitwhile visits, bookings, customers, services and analytics; add, update and cancel visits.
Accredible MCP by usefulapiB
Read Accredible credentials, groups, designs, analytics, skills; issue one credential as a draft.
Buttondown MCP by usefulapiB
Read Buttondown subscribers, emails, analytics and automations; add subscribers; write email drafts.