DocsOpen Henkan Vision
Agents and API

Connect an AI agent (MCP)

Let Claude, Claude Code, Cursor or any MCP client read your sessions, timelines, summaries and patterns.

Up to date with v1.64.8Updated 22 November 20263 min read

Ask your AI assistant questions such as "Why do mobile visitors leave the checkout?" and get answers backed by real sessions. Vision's MCP server gives agents read access to your organisation, and nothing else: they cannot change anything.

MCP (Model Context Protocol) is the standard AI assistants use to call outside tools.

Connection instructions on the API & MCP page.
1
Steps. What to do in the selected client.
2
Client tabs. Instructions for Claude, Claude Code, Cursor and REST.
3
Ready-to-copy configuration. Replace the placeholder with your API key. On the Claude tab, the MCP server URL.
4
Test connection. Paste a key to check it works; the key is not saved.

Before you start#

You need an API key. An owner creates it in API & MCP > Create key, and it is shown only once. See API keys.

The MCP server URL is:

https://vision.henkanpartners.ai/api/mcp

Every request must carry your key in the Authorization header as Bearer <your-api-key>.

Claude#

  1. Open Connectors In Claude, open Settings > Connectors and choose Add custom connector.
  2. Paste the URL Use https://vision.henkanpartners.ai/api/mcp as the server URL.
  3. Add your key Under Request headers, add Authorization with the value Bearer <your-api-key>, and choose No sign in for authentication.

Claude Code#

Run this in a terminal, replacing the placeholder with your key, then run /mcp in Claude Code to check the connection:

claude mcp add --transport http henkan-vision https://vision.henkanpartners.ai/api/mcp --header "Authorization: Bearer <your-api-key>"

Cursor#

Add this to .cursor/mcp.json in your project, or to your global Cursor MCP settings:

{
  "mcpServers": {
    "henkan-vision": {
      "url": "https://vision.henkanpartners.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}

Other MCP clients#

Any client that supports remote MCP servers over HTTP with custom headers works.

  • Transport. Streamable HTTP with JSON responses: one message per request, no batching, no session.
  • Protocol versions. 2026-07-28 (stateless: server/discover, version in each request's _meta and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers), and through the initialize handshake 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05. An unsupported version gets the list of supported ones.
  • Tool definitions. Every tool has a title, read-only annotations and an input schema with formats, bounds and defaults. The list is the same for every key and can be cached for a day.

Available tools#

ToolWhat it returns
list_sitesThe sites in your organisation.
get_site_overviewSessions, friction rate, conversion rate, top frictions, top patterns sources (channel and source, with conversions and devices) and your own page groups and channels for the last 24 hours, 7 days or 30 days.
search_sessionsSessions filtered by site, date, friction, conversion, entry page, device, channel, source, visitor type, text, data layer values or your own page groups and channels (by name), with where each session came from and its data layer values.
get_session_timelineThe steps and friction tags of one session.
get_session_summaryThe existing AI summary of a session. It never creates a new one.
list_patternsRecurring friction patterns over the last 30 days, for humans or AI agents.
get_patternOne pattern with its summary and up to 20 example sessions.
list_data_layer_keysThe site's data layer keys (customer type, loyalty tier, cart value…) and the values seen over 30 days.
get_data_layer_breakdownSessions, friction rate and conversion rate per value of a key, or per bracket for number keys.
list_visitorsThe site's human visitors over a period, newest visit first: visits, conversion and friction of each.
get_visitor_journeyOne visitor's visits with the pages of each visit, its friction tags and the data layer values pushed.
list_funnelsThe funnels saved on a site and their steps.
get_funnel_reportOne funnel over 24 hours, 7 days or 30 days: sessions per step, where they leave, devices, friction and the sessions that left.

Parameters and response shapes are listed in the REST API reference; MCP tools and REST endpoints return the same data.

Sessions, patterns, visitors, funnels and sites come with an app_url: the Vision page that shows them, opened on the right site, so your assistant can link you straight to a replay.

When a tool cannot answer (an unknown id, a missing filter, a feature outside your plan), it returns an error that says how to fix the call, so the assistant can correct itself. A result too large to return is shortened, never cut mid-way: it keeps valid data and says how many items were left out.

Example prompts#

  • "Which pages had the most rage clicks on maison-exemple.com in the last 7 days?"
  • "Find mobile sessions that left from the checkout this week and summarise what went wrong."
  • "List the patterns on our site and suggest an A/B test for the biggest one."
  • "Compare the friction rate of gold and silver loyalty members, then show me sessions of gold members with a cart over €150."