Skip to content
MCP server

PageLens Analytics

Cookieless web analytics and AI-bot visibility for your sites, queried from an AI client

Install
Pricing
Free trial
Platforms
Web, API
Runs
Remotely
Version
1.0.0
Listing updated
1 day ago

About PageLens Analytics

PageLens Analytics is an MCP server for analytics and data. It runs as a hosted remote server, so there is nothing to install locally.

The tools mirror PageLens's dashboard: site lists with 24-hour visitors, overviews compared with the previous period, breakdowns by page, referrer, channel, UTM, country, device and more, sessions with full timelines, custom events, JavaScript errors, Web Vitals percentiles, journeys, funnels, goals, segments, users and retention. One tool, get_bots_and_ai, reports AI crawlers, AI assistants, search bots and visits referred by ChatGPT, Perplexity, Claude and others.

An API key starting pl_ is used as a bearer token. Keys are read-only or read and write, and can be limited to one site; write keys can also create goals and annotations. Keys cannot manage billing, members or other keys. Daily request limits vary by plan, from 2,000 on Starter to 50,000 on Business, with a cap of 120 requests per minute per key.

The same data is available through a REST API, and write keys can send server-side events.

Install

Run in a terminal

claude mcp add --transport http pagelens https://app.pagelens.io/mcp

Add to Settings → Connectors → Add custom connector

https://app.pagelens.io/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pagelens": {
      "url": "https://app.pagelens.io/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "pagelens": {
      "type": "http",
      "url": "https://app.pagelens.io/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "pagelens": {
      "serverUrl": "https://app.pagelens.io/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pagelens": {
      "type": "http",
      "url": "https://app.pagelens.io/mcp"
    }
  }
}

Tools this server provides (20)

Taken from the project documentation; the running server may differ.

list_sites
Sites the key can access, with 24-hour visitors
get_overview
Totals compared with the previous period plus a time series
get_breakdown
Breakdowns by page, referrer, channel, UTM, geography, device and more
get_pages
Per-page visitors, entries, bounce rate and time on page
get_realtime
Visitors online now
list_sessions
List sessions
get_session
Full timeline of one session
get_events
Custom events and outbound clicks
get_errors
JavaScript errors
get_web_vitals
LCP, INP, CLS, FCP and TTFB percentiles
get_journeys
Common paths
run_funnel
Step-by-step conversion
list_goals
Goals with conversion rates
list_segments
Saved segments
list_users
Identified users
get_user
One user profile
get_retention
Cohort retention
get_bots_and_ai
AI crawlers, assistants, search bots and AI-referred visits
create_goal
Create a goal (write keys)
add_annotation
Mark a date on charts (write keys)

What it does

Traffic overview
Visitors, sessions, pageviews, bounce rate and duration versus the prior period.
Flexible breakdowns
Pages, referrers, channels, UTM tags, geography and devices.
AI visibility
See AI crawlers, assistants and AI-referred visits.
Funnels and journeys
Conversion steps and common paths.
Errors and Web Vitals
JavaScript errors and performance percentiles.
Scoped API keys
Read-only or read and write, one site or all sites.

Good for

  • Ask which pages got the most traffic last week
  • See which AI bots read your site
  • Run a signup funnel and see drop-off
  • Check Web Vitals regressions after a deploy
  • Add an annotation on a release date

Pricing

Free trial

Free trial; paid plans Starter, Pro and Business (prices not listed here)

Prices change. Check pagelens.io before you buy.

PageLens Analytics FAQ

How do I authenticate?

Use an API key beginning pl_ as a bearer token.

Can the agent change settings?

Only with a write key, and then only goals, funnels, annotations, settings and events; keys cannot manage billing or members.

What are the request limits?

Daily limits by plan, such as 2,000 on Starter and 50,000 on Business, plus 120 per minute.

Does it use cookies?

The registry describes it as cookieless analytics.

Is PageLens Analytics free?

PageLens Analytics is a paid product with a free trial.

How do I add PageLens Analytics to Claude Code?

Run this command in your terminal: claude mcp add --transport http pagelens https://app.pagelens.io/mcp

What are the best alternatives to PageLens Analytics?

The closest alternatives to PageLens Analytics are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and Calven.

Alternatives to PageLens Analytics

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  4. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  5. Calven

    MCP server

    Product marketing context from Calven delivered into Claude, ChatGPT and other AI tools

    Not checked yet
    • Remote
    • Free trial
    • 3 GitHub stars
    • Marketing and SEO
  6. CompanyData

    MCP server

    Search and enrich company records from official registers via the CompanyData API

    • 3 tools
    • Remote
    • Paid
    • 3 GitHub stars
    • Analytics and data