Skip to content
Start in Cloud

Read-only MCP Server for Web Analytics

HitKeep is a read-only MCP server for web analytics when an assistant needs aggregate traffic, events, goals, ecommerce, Search Console, Web Vitals, and AI crawler visibility without dashboard cookies or raw hit exports. Connect an MCP client to HitKeep’s /mcp endpoint with a scoped API client bearer token.

Use this page when you are evaluating an analytics MCP server, adding HitKeep to an MCP directory, or deciding whether an assistant should query analytics through MCP instead of the dashboard or REST API.

Assistant answer generated from HitKeep MCP with aggregate traffic, event, and safety notes
HitKeep MCP lets an assistant summarize aggregate analytics while keeping raw visitor data and dashboard sessions out of the MCP surface.

Use this path when you want:

  • Claude, Cursor, or another MCP client to answer analytics questions from approved HitKeep data
  • internal reporting tools that can query aggregate site metrics without dashboard access
  • scoped assistant access by site through API client tokens
  • traffic, event, ecommerce, Web Vitals, AI visibility, Search Console, Opportunities, and docs lookup through one governed interface
  • a clear boundary that keeps raw exports, write workflows, admin actions, and dashboard sessions outside MCP

If your assistant supports Agent Skills, pair MCP with the official HitKeep Agent Skills. The skills teach the assistant which MCP tools to use for traffic diagnosis, AI visibility, ecommerce analysis, Search Console checks, and tracking verification.

For self-hosted HitKeep, enable MCP on the leader:

Terminal window
hitkeep \
-mcp-enabled \
-mcp-path /mcp

Equivalent environment variables:

Terminal window
HITKEEP_MCP_ENABLED=true
HITKEEP_MCP_PATH=/mcp

If HitKeep is served at https://analytics.example.com, the MCP endpoint is:

https://analytics.example.com/mcp

Send the API client token as a bearer header:

Authorization: Bearer <hitkeep-api-client-token>

MCP client configuration formats differ, but the connection shape is always the same:

{
"mcpServers": {
"hitkeep": {
"type": "streamable-http",
"url": "https://analytics.example.com/mcp",
"headers": {
"Authorization": "Bearer ${HITKEEP_MCP_TOKEN}"
}
}
}
}

For reverse proxy details, leader-only behavior, host validation, date-range limits, and audit commands, use the official MCP server guide.

Use a personal or team API client token rather than a dashboard session:

  1. Open Settings -> API Clients for a personal token, or Administration -> Team -> Settings for a team token.
  2. Grant only the sites the MCP client should query.
  3. Copy the token into the MCP client’s secret store.
  4. Rotate or revoke the token when the assistant no longer needs access.
HitKeep API clients page showing scoped bearer tokens for programmatic access
API clients are the token surface for MCP. Dashboard cookies are not accepted by the MCP route.

Team API clients are the better default for shared assistants because the token is owned by the team and can be revoked without touching a person’s dashboard account.

HitKeep MCP exposes read-only tools for aggregate analytics, imported Search Console rows, official docs lookup, and local MCP help.

ToolWhat it returns
hitkeep_list_sitesSites visible to the API client.
hitkeep_get_site_overviewKPI totals, chart data, top dimensions, goals, and optional period comparison.
hitkeep_get_event_namesEvent names for a site and date range.
hitkeep_get_event_breakdownCapped property breakdowns for one event.
hitkeep_get_ecommerceEcommerce summary, products, source stats, and city, provider, and ASN aggregates.
hitkeep_get_web_vitalsAggregate Web Vitals p75 values, sample counts, rating counts, optional page rows, and optional visitor-context breakdowns.
hitkeep_get_ai_visibilityAI crawler fetch overview and timeseries, with optional correlation context.
hitkeep_get_opportunitiesSaved Opportunity recommendation records for a visible site.
hitkeep_get_search_console_statusSearch Console mapping, sync status, imported date range, data availability, and safe attention reason.
hitkeep_get_search_consoleImported Search Console overview and series, plus requested query, page, country, or device dimensions.
hitkeep_search_docsSearch the cached HitKeep docs catalog and fetched markdown snippets.
hitkeep_get_docFetch one official HitKeep docs page as markdown.
hitkeep_get_api_referenceFetch REST API reference markdown for a path or operation slug.
hitkeep_get_mcp_helpReturn local MCP setup, date range, filter, and privacy guidance.

Resources exposed to clients:

ResourceWhat it is for
hitkeep://help/mcpToken, date range, filter, and privacy guidance.
hitkeep://help/metricsDefinitions for core metrics returned by MCP tools.
hitkeep://docs/llmsCached official docs catalog.
hitkeep://docs/{path}Markdown for a specific official docs page.

HitKeep MCP is designed for assistant reads, not assistant administration.

BoundaryHitKeep behavior
Default stateMCP is disabled until enabled by the operator.
TransportStreamable HTTP on the existing HitKeep server, usually /mcp.
AuthAPI client bearer tokens only.
CookiesDashboard cookies are not accepted.
Site accessThe token must have a site grant and pass normal site.view checks.
Data accessAggregate analytics, imported aggregate Search Console rows, saved Opportunities, and docs tools.
ExcludedRaw hit exports, raw visitor rows, dashboard sessions, billing, token management, site administration, goal mutation, funnel mutation, exclusions, and alert creation.

Analytics tools default to the last 30 days when no date range is supplied. Date ranges and result limits are capped by the MCP configuration. Filters support common aggregate dimensions such as path, hostname, referrer, device, country, city, provider, ASN, browser, language, and UTM fields.

Use open exports and takeout when a person needs portable files or raw records that are available through export workflows. MCP intentionally stays narrower.

Google Search Console Analytics Through MCP

Section titled “Google Search Console Analytics Through MCP”

HitKeep imports finalized, aggregate Search Analytics rows from Google Search Console. MCP can then expose those imported rows to approved assistants through hitkeep_get_search_console_status and hitkeep_get_search_console.

HitKeep Search Console dashboard with clicks, impressions, CTR, average position, queries, pages, countries, and devices
Search Console MCP tools read the same imported aggregate rows that power the authenticated dashboard drilldown.

The Search Console MCP tools do not call Google live, refresh OAuth credentials, or trigger a sync. Empty reports should be checked with hitkeep_get_search_console_status before drawing conclusions, because a site can have HitKeep traffic while Search Console import is not mapped or not yet synced.

For setup and troubleshooting, read the Google Search Console integration guide.

Use hitkeep_get_ai_visibility when an assistant needs aggregate AI crawler analytics: fetch volume, assistant families, top paths, failures, AI-referred visits, and optional fetch-to-visit correlation.

HitKeep AI visibility dashboard with AI crawler fetch KPI cards, assistant filters, and crawl demand reporting
AI visibility keeps AI crawler fetches and AI-referred human visits separate so assistants do not treat crawl volume as demand.

Browser tracking can capture many AI-referred human visits. AI crawler fetches usually require a server-side feed from logs, middleware, a CDN, or an edge worker because crawlers often do not run browser JavaScript.

HitKeep can show crawler interest and later AI-referred visits on the same paths. It cannot prove a specific answer, citation, or ranking unless that evidence exists in the data source.

NeedBetter surface
Human setup or visual investigationDashboard
Normal product automationREST API
Raw files, audit handoff, or account exportOpen exports and takeout
Assistant analysis over approved aggregate reportsMCP plus HitKeep Agent Skills
Managed endpoint, backups, updates, and email deliveryHitKeep Cloud

Yes. HitKeep MCP exposes aggregate analytics and docs tools only. It does not expose write workflows, admin actions, billing actions, token management, dashboard sessions, or raw hit exports.

Can HitKeep MCP read Google Search Console analytics?

Section titled “Can HitKeep MCP read Google Search Console analytics?”

Yes. HitKeep MCP can read imported aggregate Search Console rows for a site. It does not call Google live, refresh OAuth credentials, or trigger a sync.

Can HitKeep MCP analyze AI crawler traffic?

Section titled “Can HitKeep MCP analyze AI crawler traffic?”

Yes. The AI visibility tool can return aggregate AI crawler fetches, AI-referred visits, and optional correlation context when the site has AI fetch data.

Does HitKeep MCP accept dashboard cookies?

Section titled “Does HitKeep MCP accept dashboard cookies?”

No. HitKeep MCP accepts API client bearer tokens only. Tokens should be site-scoped and stored in the MCP client’s secret store.