Hotjar MCP server for AI agents

Live

HOTJAR API KEY (OAUTH 2.0 CLIENT CREDENTIALS)

USER FEEDBACK

Analytics

Hotjar gives your agent your Hotjar surveys: list the surveys on a site, read their questions and responses, and run data subject lookups and deletions across your organization.

  • One service account: you connect Hotjar once, and Scalekit authenticates every call.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Hotjar
agent · Acme Q3
Run
Show the latest responses to the post-checkout survey.
S
hotjar_survey_responses_list
240ms
Feedback agent
The post-checkout survey has 38 new responses this week. The most common complaint is shipping cost.
Sources: Hotjar survey responses, 1 survey
hotjar
38 responses
18:29
Message Claude...

Tools your user feedback agent reaches for on Hotjar, scoped before every call.

CALL ANY TOOL
5 tools for user feedback in Hotjar: list surveys, read a survey with its questions and responses, and run data subject lookup and deletion requests.
hotjar_survey_get
Get survey
Get one Hotjar survey by ID, always with its questions. Returns the survey's id, name, type, enabled flag, timestamps, sentiment analysis flag and questions (id, type, text, required flag, choices and labels). Use this when you have a survey ID. Use hotjar_surveys_list to find one and hotjar_survey_responses_list for its answers.
Parameters
Name
Type
Required
Description
site_id
string
Required
The Hotjar site ID. Find it in Hotjar under Sites & Organizations, next to the site. Example: 1234567.
survey_id
string
Required
The survey ID, as returned in the id field by hotjar_surveys_list. Example: survey_f5937a53-674a-43d1-b4b7-ada420568ebf.
hotjar_survey_responses_list
List survey responses
hotjar_surveys_list
List surveys
hotjar_user_data_delete
Delete user data
hotjar_user_lookup_request
User lookup request
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Hotjar tools available to this agent
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["hotjar"], toolNames: [
    "hotjar_surveys_list",
    "hotjar_survey_get",
    "hotjar_survey_responses_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my surveys, read the post-checkout survey, and show its latest responses" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["hotjar"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my surveys, read the post-checkout survey, and show its latest responses" }],
  tools,
});

// Execute the tool call with the vaulted Hotjar service account credentials
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["hotjar"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my surveys, read the post-checkout survey, and show its latest responses" }],
  tools,
});

// Tool call runs with the vaulted Hotjar service account credentials
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["hotjar"] }, pageSize: 100,
});

const agent = new Agent({
  name: "feedback_agent",
  model: "gemini-2.5-pro",
  instruction: "Hotjar tools available to this agent",
  tools,
});

await agent.run("List my surveys, read the post-checkout survey, and show its latest responses");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Hotjar tool. Click to copy, paste into your agent, done.
Surveys
Copy the prompt
Copied
List the surveys on my site.
Copy the prompt
Copied
Show the questions in my post-checkout survey.
Copy the prompt
Copied
Which surveys are running on this site?
Responses
Copy the prompt
Copied
Show the latest responses to the post-checkout survey.
Copy the prompt
Copied
List the responses to my newest survey, newest first.
Copy the prompt
Copied
Get the next page of responses to this survey.
Privacy requests
Copy the prompt
Copied
Look up the Hotjar data held for dana@example.com.
Copy the prompt
Copied
Start a data subject lookup for this person without deleting anything.
Copy the prompt
Copied
Delete all Hotjar data for this person.
SEE HOW AUTH WORKS
You connect Hotjar once with a service account, a Hotjar API key used as OAuth 2.0 client credentials, and Scalekit authenticates every call. Service account credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Hotjar
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Hotjar
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Hotjar
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Hotjar
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same auth pattern across other analytics connectors.
GTM and RevOps Teams
Deal intelligence agent
Pulls recent Gong calls, scores deal risk with an LLM, cross-references the record in Attio, and DMs each owner their at-risk deals in Slack. Every read is scoped to that rep's own access.
Test other agents
See the same auth pattern across other analytics connectors.
SALES
Deal intelligence agent
Score Gong call risk with an LLM, cross-reference the Attio record, and DM each owner their at-risk deals in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Service account secrets stay out of agent code
Pasting a Hotjar service account secret into agent code puts it one log line away from a leak. Scalekit keeps the service account credentials in its vault, authenticates each call at request time, and records which agent run made it.
// secret in code
env → prompt, logs

// scalekit
vault → call ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Hotjar today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent use a shared service account for Hotjar?
Yes. You connect Hotjar once with a service account, and Scalekit authenticates every call. The agent reaches the surveys and organization data that service account can access, and audit logs record every action the agent takes.
Where are the Hotjar service account credentials stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Hotjar?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the survey tools without hotjar_user_data_delete, which permanently deletes all Hotjar data for one person across an organization and cannot be undone. Scalekit also enforces scope checks before every API call.
What happens when Hotjar access is turned off?
Disable the connection in the Scalekit dashboard and the next tool call fails closed with a clear error. Other tenants are unaffected, and the change is logged.
Can the agent check what Hotjar holds on a person before deleting it?
Yes. hotjar_user_lookup_request starts a data subject lookup for one person across an organization without deleting anything. hotjar_user_data_delete then finds and permanently deletes all Hotjar data for that person.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""hotjar"": {
""url"": ""https://mcp.scalekit.com/hotjar"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.hotjar]
url = ""https://mcp.scalekit.com/hotjar""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""hotjar"": {
""url"": ""https://mcp.scalekit.com/hotjar"",
""type"": ""http""
}
}
}