
Hoot Lens MCP server: investigate website visits, replays, click maps, funnels and findings with
Hoot Lens MCP server: investigate website visits, replays, click maps, funnels and findings with project-scoped access. Anonymous synthetic demo included.
·
The Hoot Lens MCP server. It lets an AI assistant (Claude, Cursor, VS Code, Codex and other MCP clients) read what Hoot Lens recorded on your websites: visits, replays, heatmaps, funnels, traffic, findings and changes. The assistant sees only what your own Hoot Lens account can see, and only the sites (projects) and scopes you allow.
Version 1.5.0 is published with improvement review, durable finding work, exact source-context inspection, and npm provenance. Its release record binds the reviewed public source, Linux/Windows Node 20/22 validation, attestation, isolated SDK checks, and active official Registry entry. The hosted service releases separately.
Version 1.4.1 is published with first-website setup recovery, consent-aware installation guidance, and npm provenance. Its release record links the reviewed public source, Linux/Windows Node 20/22 validation, attestation, and installed-package checks. The hosted service releases separately.
A valid connection with no websites returns an empty list and a setup link. Installation guidance keeps website editing access, visitor consent, and received recordings separate.
You can run it two ways:
npx -y @hootlens/mcp (this package), for clients that can launch a stdio server.https://mcp.hootlens.com/mcp, for clients that support remote MCP servers. Nothing to install; you sign in with Hoot Lens in your browser.The tool catalog depends on the release and selected toolsets. Source 1.4.0 keeps customer tools discoverable before their optional permissions are granted. Discovering a tool grants no access: the API checks the credential, current site permissions, and requested action every time. Earlier releases may hide tools whose scopes are missing. Check the installed version and inspect tools/list on your actual connection. whoami is available as a CLI command and an MCP connection-check tool; doctor requires 1.2.0 or later.
The read toolset includes explain_snags. When the site has AI explanations enabled, a request can send aggregated counts to the explanation provider and use the site owner's monthly account AI allowance. Inspect its tool description before requesting explanations. Doctor reports this caveat without calling the tool.
review_improvements combines control snags, JavaScript errors, and funnel drop-offs with their actual count units, evidence windows, source coverage, and investigation steps. Source identities preserve page versions, revisions, variants, and devices. Replay moments require replay access and a retained recording.
list_finding_work and get_finding_work read saved decisions separately from current evidence. With explicit authorization and read plus annotation permission, update_finding_work can assign, snooze, dismiss, reopen, save a GitHub reference, or record a fix already deployed. list_finding_assignees returns eligible site teammates without email addresses. Revision checks protect concurrent work, and identical operation retries do not create a second change marker.
A saved GitHub link does not create an issue or establish merge or deployment. A reported deployed fix remains separate from the before-and-after outcome report, which states its own scope and sample limits. Source context and evidence windows can be passed to error and funnel inspection, including ordered funnel goal definitions. The API applies the current site permissions on every request.
sites:create permission and a release containing create_site.Pick one.
Browser sign-in (recommended). Run this once:
npx -y @hootlens/mcp loginYour browser opens Hoot Lens. Choose the projects and permissions to share, and approve. The sign-in is saved in the macOS Keychain, the Linux Secret Service (libsecret), or, where those are not available, a file (~/.config/hootlens-mcp/credentials.json, or %APPDATA%\hootlens-mcp\credentials.json on Windows). On POSIX systems the fallback uses owner-only mode flags. On Windows it relies on inherited profile ACLs; the package does not enforce an owner-only Windows ACL. Tokens are never printed.
If you have no site yet, enter your website in the connection screen. Creating that website and approving the assistant's access are separate decisions. You can share only the new site with read/replay access; account-wide permission to create future sites is optional. After returning to the assistant, ask it to retrieve the installation instructions for your platform. A connected account and a created site do not establish that the tracking tag is installed or receiving data.
Continue installation at website setup whenever you return. A ChatGPT connection can retrieve Hoot Lens instructions and evidence, but it cannot edit your website by itself. Use a coding agent with authorized repository access, install through your CMS, or hand the instructions to your developer. For a site requiring consent, connect an explicit recording choice before verifying that a recording arrives. Consent platform categories must expressly cover replay; analytics consent alone is not sufficient.
npx -y @hootlens/mcp whoami # who is signed in, scopes, projects, token expiry
npx -y @hootlens/mcp logout # delete the saved sign-in and end it at the serverlogin --scopes read,replay asks for fewer permissions (default: read replay annotate). On a remote machine without a browser, login prints the link; open it on a machine that can reach the CLI on 127.0.0.1 (for example through an SSH port forward of the port it names).
How long it lasts: access tokens last 1 hour and are renewed automatically. The renewal token lasts 30 days from its last use, so if you do not use the server for 30 days you must run login again. Disconnecting the app under Connected apps in the Hoot Lens dashboard ends the sign-in immediately. When a sign-in has ended, the server tells you to run npx -y @hootlens/mcp login.
Access key. In the dashboard, open Settings, AI assistant, and create a key for one project. Set it as HOOTLENS_PAT in the client's environment. When HOOTLENS_PAT is set it is used instead of the saved sign-in. A key belongs to one project and you can revoke it in the dashboard at any time. Prefer the browser sign-in on a personal machine and keys for CI or shared setups.
With version 1.2.0 or later, run:
npx -y @hootlens/mcp doctor --toolsets read,replay
npx -y @hootlens/mcp doctor --authenticated --toolsets read,replay --project YOUR_PROJECT_ID --jsonThe default checks public readiness and OAuth metadata plus local configuration. The second command explicitly sends the existing credential to /v1/access to check the selected site and grants. Neither command refreshes tokens, changes sign-in, reads recordings or calls MCP tools. A configured PAT overrides saved browser sign-in. For a custom HTTPS API, inspect the reported origin and explicitly add --trust-api https://YOUR_EXPECTED_API before the authenticated check.
Exit codes: 0 means the selected checks passed, 1 means a service or access check failed, and 2 means the options or configuration are invalid. JSON includes schemaVersion, authenticatedMetadataVerified, check codes and recovery steps. investigationVerified stays false: ask your client for a finding and a timed narrative to prove an investigation. Doctor has a ten-second deadline and bounded response bodies; its scope is the local stdio configuration, not a remote client's saved sign-in or support for interactive views.
With version 1.1.0 or later, opt in with login --scopes read,replay,annotate,sites:create. The verified account owner must explicitly approve site creation for all sites in the browser. The permission is never included in default login scopes. Personal access tokens, anonymous demo connections, and project-pinned connections cannot create sites. Source 1.4.0 advertises create_site on normal unpinned connections before permission is granted, so assistants can discover the action. Hosted clients that support tool-level OAuth can request that permission when the tool is called. Otherwise, reconnect and approve the requested scope explicitly. Inspect tools/list on your actual connection.
Call create_site with name, exact HTTPS origins, and one stable idempotencyKey (8 to 128 printable ASCII characters, such as a UUID). Use the same key and site arguments after a timeout or network failure within 24 hours. Idempotency protection expires after 24 hours; inspect list_projects for the intended site before creating again. The API enforces the plan's available site slots atomically. New sites use balanced privacy by default (strict is optional) and require consent. The result gives a project ID and platform-specific installation instructions. Install on public pages, arrange consent, then call check_install; creation alone does not prove recording works. If the install instructions are unavailable, use get_install_snippet for the returned project ID instead of creating another site.
start_setup and check_setup provide an email-confirmed alternative when the user explicitly requests it. The hosted MCP connector requires sign-in before either tool can be called. The public REST onboarding endpoints allow an owner to begin email confirmation without an existing account, but that is a separate entry path. The local stdio launcher also needs its configured sign-in or access key. Do not use email setup to bypass the connector's authorization, and never open the owner's confirmation link on their behalf.
The commands below use the local server. Replace YOUR_PROJECT_ID if you want to pin one project (optional; see Project pinning). If you did not run login, add your HOOTLENS_PAT as shown in each example.
Local:
claude mcp add --transport stdio hootlens -- npx -y @hootlens/mcp
# with an access key instead of the saved sign-in, and a pinned project:
claude mcp add --transport stdio --env HOOTLENS_PAT=hl_pat_... hootlens -- npx -y @hootlens/mcp --project YOUR_PROJECT_IDHosted (then run /mcp inside Claude Code to sign in):
claude mcp add --transport http hootlens "https://mcp.hootlens.com/mcp"Add --scope project to share the entry with your team through .mcp.json, or --scope user for all your projects.
Add to .cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects.
Local:
{
"mcpServers": {
"hootlens": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@hootlens/mcp"],
"env": { "HOOTLENS_PAT": "${env:HOOTLENS_PAT}" }
}
}
}Leave out env to use the saved sign-in from login.
Hosted:
{
"mcpServers": {
"hootlens": { "url": "https://mcp.hootlens.com/mcp" }
}
}Add to .vscode/mcp.json (the top-level key is servers, not mcpServers).
Local:
{
"inputs": [
{ "type": "promptString", "id": "hootlens-pat", "description": "Hoot Lens access key", "password": true }
],
"servers": {
"hootlens": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@hootlens/mcp"],
"env": { "HOOTLENS_PAT": "${input:hootlens-pat}" }
}
}
}Leave out inputs and env to use the saved sign-in from login.
Hosted:
{
"servers": {
"hootlens": { "type": "http", "url": "https://mcp.hootlens.com/mcp" }
}
}Local. Open Settings, Developer, Edit Config, and add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then quit and reopen Claude Desktop:
{
"mcpServers": {
"hootlens": {
"command": "npx",
"args": ["-y", "@hootlens/mcp"]
}
}
}This uses the saved sign-in from login. To use an access key, add "env": { "HOOTLENS_PAT": "hl_pat_..." }.
Hosted. Remote servers are not added in the JSON file. In Claude Desktop add a custom connector (Customize, Connectors, Add custom connector) with the URL https://mcp.hootlens.com/mcp, then sign in with Hoot Lens when asked. Custom connectors depend on your Claude plan.
Local:
codex mcp add hootlens -- npx -y @hootlens/mcp
# with an access key:
codex mcp add hootlens --env HOOTLENS_PAT=hl_pat_... -- npx -y @hootlens/mcpThe same in ~/.codex/config.toml:
[mcp_servers.hootlens]
command = "npx"
args = ["-y", "@hootlens/mcp"]
# env_vars = ["HOOTLENS_PAT"] # forward the key from your shell instead of saving it hereHosted:
[mcp_servers.hootlens]
url = "https://mcp.hootlens.com/mcp"then run codex mcp login hootlens.
Any client that can start a stdio server: command npx, arguments -y @hootlens/mcp, optional environment HOOTLENS_PAT. Any client that supports remote servers over Streamable HTTP with OAuth: the URL https://mcp.hootlens.com/mcp. The hosted endpoint advertises its sign-in through standard OAuth discovery (RFC 9728 and RFC 8414) and accepts Client ID Metadata Documents and dynamic client registration.
Two optional query parameters narrow the hosted tool catalog or pin a site. They never widen what you approved.
| Parameter | Example | Effect |
|---|---|---|
project | https://mcp.hootlens.com/mcp?project=YOUR_PROJECT_ID | Tools default to this project. |
toolsets | https://mcp.hootlens.com/mcp?toolsets=read,replay | Offer only these toolsets. |
Combine them with &: https://mcp.hootlens.com/mcp?project=YOUR_PROJECT_ID&toolsets=read. Put the URL in quotes in a shell.
Toolsets group tools so an assistant is offered only what it needs. Set them with --toolsets read,replay or HOOTLENS_TOOLSETS=read,replay.
| Toolset | What it offers |
|---|---|
read | Sites (projects), visits, recording lists, narratives, heatmaps, findings, traffic, goals, funnels, changes, weekly summary. |
replay | Raw replay events and clicks of one recording, and the events the interactive replay view loads. Needs the replay scope. |
annotate | Add notes to recordings and log changes. Needs the annotate scope. |
configure | Preview and apply site setup changes. Needs the optional configure scope. |
install | Install tags per platform and the install checker. |
sites | Create a site in your own account. Needs explicitly approved OAuth sites:create for all sites and an unpinned connection. |
feedback | Report bugs and ideas to the Hoot Lens team and follow your reports. |
issues | Hoot Lens staff triage tools. Needs the triage scope. |
default | The customer catalog: read, replay, annotate, configure, install, sites, and feedback. |
all | Every customer toolset, plus staff triage when authorized. |
These defaults describe source 1.4.0. With no explicit selection, authorized staff also receive the issues toolset. Normal customer tools remain discoverable when their execution scopes are missing. Each descriptor declares its required OAuth scopes. Calling a hosted tool without a required scope returns a permission challenge before the action runs. A site-role refusal remains a refusal even if OAuth approval already includes that scope. Staff triage stays hidden without triage, and pinned or demo connections do not offer site creation. Explicit toolset selection still narrows the catalog.
For an investigation-only catalog, select --toolsets read,replay and sign in with login --scopes read,replay. Selecting toolsets and granting scopes are separate controls: the first controls what the assistant sees, and the second controls what the credential can execute.
In a client that renders MCP Apps (such as Claude), a visit narrative shows as a replay you can play and step through, a heatmap shows click density over the page, and the findings show as cards. Other clients get the same text and data as always. The views make no request of their own and load nothing from third parties; the replay view reads the recording through your connection and needs the replay scope. See the MCP documentation.
By default tools take a projectId. To work in one project, pin it. The first of these that is set wins:
--project YOUR_PROJECT_IDHOOTLENS_PROJECT=YOUR_PROJECT_ID.hootlens.json file in the working directory or any parent: {"projectId": "YOUR_PROJECT_ID"}. Project IDs are public, so the file is safe to commit.Pinning sets a default. The API still checks every call against what your credential may reach.
| Variable | Purpose |
|---|---|
HOOTLENS_PAT | Access key. Overrides the saved sign-in. |
HOOTLENS_API_URL | API origin (default: the Hoot Lens production API). Used by login, whoami and the server. |
HOOTLENS_PROJECT | Pinned project. |
HOOTLENS_TOOLSETS | Comma separated toolsets. |
The server writes messages to stderr only. Standard output carries the MCP protocol.
npx -y @hootlens/mcp login, or set HOOTLENS_PAT.login again.login --scopes read,replay,annotate, or add the scope to your access key in the dashboard.whoami to list what the credential can reach.npx is not found by Claude Desktop or an editor: those apps start with a short PATH. Use the absolute path to npx (which npx) as the command, or install Node from nodejs.org.libsecret-tools and run a Secret Service to use the keychain.login says all ports are in use: login listens on 127.0.0.1 ports 28731 to 28735. Close what is using them and run login again.HOOTLENS_API_URL).npx -y @hootlens/mcp --version.The package follows Semantic Versioning. Tool names and arguments do not change within a major version; new tools and optional arguments can appear in a minor version. See CHANGELOG.md. npx -y @hootlens/mcp always runs the latest 1.x; pin with npx -y @hootlens/[email protected] if you need a fixed version. The server supports MCP protocol versions 2026-07-28 and 2025.
The server only forwards your requests to the Hoot Lens API with your own credential. It stores nothing except the sign-in described above. Hoot Lens never captures password, payment or one-time-code values, and replays mask other form values unless a site allowlists them.
See LICENSE.
The client instructions above were checked against each tool's documentation on 2026-10-07.
Confirmed from official documentation:
claude mcp add --transport stdio ... -- <command>, --env, --transport http, --scope, and signing in with /mcp (https://code.claude.com/docs/en/mcp)..cursor/mcp.json and ~/.cursor/mcp.json, mcpServers with command/args/env (with type: "stdio") and url (https://cursor.com/docs/context/mcp)..vscode/mcp.json with servers, type stdio and http, and inputs with ${input:id} (https://code.visualstudio.com/docs/copilot/customization/mcp-servers).claude_desktop_config.json locations and mcpServers for local servers (https://modelcontextprotocol.io/docs/develop/connect-local-servers); remote servers are added as custom connectors, not in the file (https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).codex mcp add <name> --env K=V -- <command>, [mcp_servers.<name>] with command, args, env_vars, url, and codex mcp login <name> (https://developers.openai.com/codex/mcp).Not confirmed, so treat as likely but check if it fails:
codex mcp add hootlens --url .... The config.toml form above is the documented one.env = { HOOTLENS_PAT = "..." } inline table in Codex config.toml; the documented key is env_vars..mcpb) packaging. This package does not provide one.Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add hootlens -- npx -y @hootlens/mcp{
"mcpServers": {
"hootlens": {
"env": {
"HOOTLENS_PAT": ""
},
"args": [
"-y",
"@hootlens/mcp"
],
"type": "stdio",
"command": "npx"
}
}
}code --add-mcp '{"name":"hootlens","env":{"HOOTLENS_PAT":""},"args":["-y","@hootlens/mcp"],"type":"stdio","command":"npx"}'[mcp_servers.hootlens]
command = "npx"
args = ["-y", "@hootlens/mcp"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/hoot-lens to learn what the "Hoot Lens" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx -y @hootlens/mcp login
npx -y @hootlens/mcp whoami # who is signed in, scopes, projects, token expiry
npx -y @hootlens/mcp logout # delete the saved sign-in and end it at the server
npx -y @hootlens/mcp doctor --toolsets read,replay
npx -y @hootlens/mcp doctor --authenticated --toolsets read,replay --project YOUR_PROJECT_ID --jsonclaude mcp add --transport stdio hootlens -- npx -y @hootlens/mcp| Name | What it does |
|---|---|
whoami | Confirms the connection with one request that reads no recordings. Returns whether it is connected, who is signed in (the account, and the connection or access key acting for it), the scopes this conn |
list_projects | Lists the sites (projects) available to this access token, each with the role (owner, editor, viewer or custom) of the person who created the key. A key can do no more than its creator is allowed to d |
list_recordings | Lists recording segments (one per page view) newest first, one page at a time. Returns nextCursor, which the cursor argument accepts for the next page; a page can be shorter than limit when filters sk |
list_sessions | Lists visits (a session in the API: the page views of one person, stitched together by the tracker) newest first, one page at a time, each with a one-line summary, page count, ordered paths, device cl |
list_segments | Lists the project's saved segments: named sets of recording filters, such as mobile visitors from a campaign. Returns each segment's id, name and filters; the id is accepted as segmentId by the record |
get_traffic | Returns where visits come from. Visits over a date range (default the last 30 days; from and to in epoch milliseconds, at most 92 days, UTC day granularity) by referrer origin, campaign source, campai |
get_conversion_report | Returns a goal's converting visits, outcome occurrences, browser/server provenance, and revenue grouped by currency, broken down by original visit source, campaign, device, entry page, or release. goa |
get_session_narrative | Returns a visit as a short, readable story instead of raw events: a one-to-two sentence summary, facts (duration, active time, pages, device, browser, OS, referrer, campaign source, deepest scroll, cl |
get_recording | Returns raw replay events and clicks for one segment, with signed first-party asset URLs, preservation coverage, and the team's tags and notes on it (notes are free text written by people, with an opt |
load_replay | Returns the recorded events of one page view with its viewport, click kinds and JavaScript errors, for the replay viewer. Asset URLs are signed first-party links. preservation reports whether public f |
review_findings | Returns observed click and snag counts for a site. By default (groupBy "revision") they are grouped by page, page revision, variant and device class: the automatic release and page version ids (auto-. |
list_heatmaps | Lists heatmap cohorts with visit, segment and click counts, most recently active first. Each new six-part cohort key identifies one page group, release, revision, variant and device class. Historical |
get_heatmap | Returns one exact heatmap cohort. New six-part keys select one variant; historical five-part keys return variantScope "pooled" and unsplittable totals across variants. Includes most-clicked elements b |
list_changes | Lists logged changes (change markers), newest first: what changed, when, and for which page group. Includes changes logged through the API by agents, changes the owner logged, and changes Hoot Lens de |
change_impact | Compares the days before and after one logged change (default 14 days each side, or back to the previous change), per page group, and returns a one-sentence summary plus the numbers: visits on each si |
list_goals | Lists the project's goals: what counts as a conversion (a click on a matching element, or a visit to a matching page). Impact reports include a conversion rate for each goal. Goals are set by the owne |
list_funnels | Lists the project's funnels: named, ordered sequences of 2 to 8 goals, such as visit the homepage, click Request an appointment, reach the appointment page. Returns each funnel's id, name and steps (g |
get_funnel | Returns, for one funnel, how many visits reached each step (a visit reaches a step only after reaching the steps before it, in order), the share of the previous step and of step 1 that continued with |
weekly_summary | Returns the same content as the project's weekly digest email as structured data, for the seven complete UTC days ending yesterday (or ending on weekEnding, or on today so far with includeToday) again |
| Name | What it does |
|---|---|
weekly-review | What changed this week: visits, the elements whose snags moved most, goals, funnel drop-off and changes that now have a verdict. |
investigate-page | Find out where visitors struggle on one page or page group, with evidence from heatmaps and real visits. |
did-it-help | Compare the days before and after a logged change and report the verdict with its sample sizes. |
fix-top-snag | Find the snag with the most evidence in the current release, read the visits and the code behind it, propose the smallest fix as a pull request, then log the change and plan the "Did it help?" check. |
| Name | What it does |
|---|---|
docs-install | How to add the Hoot Lens tag to a site, per platform, and verify it. |
docs-tracker | What the browser tracker captures, masks and never captures, and its public methods. |
docs-api | The Hoot Lens HTTP API, access keys, scopes and the OAuth flow. |
docs-mcp | Setup per client, toolsets, pinning, prompts, resources and every tool. |
replay-viewer | An interactive replay of one visit or page view, with play, pause, speed, snag and error markers and the steps of the visit; choosing a step jumps to it. |
heatmap-viewer | Click density for one heatmap cohort drawn over the page, with the most clicked elements, their snags and how far visitors scrolled. |
findings-viewer | The pages and devices with the most snags as a short list of cards. |
Fieldnote (demo, synthetic data) | Hoot Lens project proj_demo_fieldnote, your role: viewer |
/pricing (tablet) | 1 clicks |
/welcome (tablet) | 1 clicks |
/signup (tablet) | 3 clicks |
/pricing (mobile) | 3 clicks |
/pricing (tablet) | 4 clicks |
/docs/getting-started (tablet) | 1 clicks |
/pricing (desktop) | 6 clicks |
/welcome (mobile) | 1 clicks |
/docs/getting-started (desktop) | 3 clicks |
/docs/getting-started (mobile) | 4 clicks |
/signup (mobile) | 7 clicks |
/features (mobile) | 1 clicks |
/ (desktop) | 13 clicks |
/blog/seven-habits-of-teams-that-read-their-notes (tablet) | 0 clicks |
/welcome (desktop) | 2 clicks |
/signup (desktop) | 15 clicks |
/pricing (desktop) | 13 clicks |
/features (desktop) | 3 clicks |
/blog/seven-habits-of-teams-that-read-their-notes (desktop) | 1 clicks |
/blog/seven-habits-of-teams-that-read-their-notes (mobile) | 2 clicks |
/ (mobile) | 8 clicks |
/features (tablet) | 1 clicks |
/ (tablet) | 2 clicks |
/pricing (mobile) | 6 clicks |
/pricing (desktop) | 16 clicks |
Read live from the server on October 31, 2026.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/hoot-lens)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "hoot-lens" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.