Skip to Content
Pageflock

MCP server

Connect Claude, ChatGPT or any MCP client to your workspaces, and ask about your traffic in plain words.

Pageflock has a remote MCP server. Connect it to an AI assistant and you can ask how last week went, where a spike came from, or which pages people leave from, and get answers with the same numbers as the dashboard. In Claude and ChatGPT, the answers come with an interactive chart.

Server URL
https://app.pageflock.com/mcp

Self-hosting? It's /mcp on your app's URL.

Connect

Add the server

  • Claude: Settings, Connectors, Add custom connector, and paste the URL.
  • ChatGPT: Settings, Connectors, add a custom connector with the URL (needs developer mode on some plans).
  • Claude Code: claude mcp add --transport http pageflock https://app.pageflock.com/mcp
  • Cursor, VS Code and others: add it as a remote (HTTP) server with the URL.

Sign in and approve

The client opens Pageflock in your browser. Sign in, tick the workspaces to share, or All my workspaces to include ones you join later, and approve. The client sees what you see in those workspaces, and nothing else.

Ask

Try "How did my site do this week?" or "Where did yesterday's spike come from?".

Clients register themselves, through dynamic client registration or a client ID metadata document, so there is nothing to set up in Pageflock first. Your connections are listed under Settings, API and MCP, and disconnecting one stops its access at once.

Clients that can't do OAuth but can send a header can use an API key as a bearer token instead.

Tools

ToolWhat it does
list_workspacesThe workspaces the connection reaches, with their site counts and the granted scopes
list_sitesSites in those workspaces
get_siteA site's settings
get_overviewVisitors, visits, page views, bounce rate and duration for a period, with the change from the period before
query_statsAny query: metrics, up to three dimensions, filters, comparison. The same query language as the REST API
get_top_moversWhat changed: the pages, sources and countries that rose or fell the most
get_realtimeVisitors on the site right now
get_install_instructionsThe install code for a framework, and a prompt for a coding agent
verify_installationWhether events are arriving, and whether the script is on the home page
create_siteAdd a site, in the workspace you name when the connection reaches more than one (needs write access)
update_siteChange a site's settings (needs write access)

Every tool declares an output schema and returns structured content, with a link to the matching view in the dashboard. The pageflock://schema resource describes every metric, dimension and filter query_stats accepts.

Charts

In hosts that support MCP Apps, such as Claude and ChatGPT, get_overview, query_stats, get_top_movers and get_realtime also show their result as an interactive chart in the conversation. You can switch the period from the chart, and it links to the dashboard. It follows the host's light or dark theme. Other hosts get the same data without the chart.

Prompts

Ready-made starting points, shown as slash commands or prompt suggestions in most clients:

PromptWhat it does
weekly_reportHow the last 7 days went, against the week before
install_pageflockCreates a site, installs the code in your project, and checks it works
traffic_dropFinds where a rise or drop in visitors came from

Access

A connection can always read stats and sites. If you also allow it to create sites on the approval screen, it can create sites and change their settings too. Members, share links and keys always stay with signed-in people.

On this page