GoSquared MCP server for AI agents

Live

API KEY

WEB ANALYTICS

Analytics

GoSquared gives your agent web analytics and customer chat in your GoSquared account: live visitor data, trends by page, source, and country, People profiles and smart groups, chats, and event tracking.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • 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.
GoSquared
agent · Acme Q3
Run
How many visitors are on the site right now?
S
gosquared_now_overview_get
118ms
Web analytics agent
42 visitors are on the site right now. 11 are returning visitors, and today's peak is 96.
Sources: GoSquared live overview
gosquared
42 visitors
18:29
Message Claude...

Tools your web analytics agent reaches for on GoSquared, scoped per user.

CALL ANY TOOL
54 tools for web analytics in GoSquared: read live visitors and trends, look up people and smart groups, handle chats, track events and transactions, and manage webhooks.
gosquared_archived_chats_list
List archived chats
List archived chat conversations. Returns chats with id and timestamps. Use this for past conversations.
Parameters
Name
Type
Required
Description
site_token
string
Required
The project's site token (GSN-...), from Settings > Current Project > General in GoSquared. Example: GSN-106863-S.
from
string
Optional
Start date-time of the range (ISO 8601 or relative such as -7d). Example: 2026-01-01.
limit
string
Optional
Maximum results, or offset,count (e.g. 5,10). Example: 0,10.
to
string
Optional
End date-time of the range (ISO 8601 or now). Example: 2026-01-31.
gosquared_blocked_list
List blocked
gosquared_chat_archive
Archive chat
gosquared_chat_get
Get chat
gosquared_chat_message_send
Send chat message
gosquared_chat_unarchive
Chat unarchive
gosquared_chats_list
List chats
gosquared_event_types_list
List event types
gosquared_now_campaigns_list
List now campaigns
gosquared_now_concurrents_get
Get now concurrents
gosquared_now_geo_get
Get now geo
gosquared_now_notifications_list
List now notifications
gosquared_now_pages_list
List now pages
gosquared_now_sources_list
List now sources
gosquared_now_time_series_get
Get now time series
gosquared_people_search
Search people
gosquared_person_delete
Delete person
gosquared_person_devices_list
List person devices
gosquared_person_feed_get
Get person feed
gosquared_shared_users_list
List shared users
gosquared_site_get
Get site
gosquared_smartgroup_create
Create smartgroup
gosquared_smartgroup_people_list
List smartgroup people
gosquared_track_properties
Track properties
gosquared_trends_aggregate_get
Get trends aggregate
gosquared_trends_browser_list
List trends browser
gosquared_trends_event_list
List trends event
gosquared_trends_os_list
List trends os
gosquared_trends_path1_list
List trends path1
gosquared_trigger_types_list
List trigger types

For more tools, view docs.

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);

// GoSquared tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["gosquared"], toolNames: [
    "gosquared_now_overview_get",
    "gosquared_trends_page_list",
    "gosquared_people_search"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Show the live visitor overview, list the top pages this week, and find the person dana@example.com" }] });
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: ["gosquared"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Show the live visitor overview, list the top pages this week, and find the person dana@example.com" }],
  tools,
});

// Execute the tool call with the user's vaulted GoSquared API key
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: ["gosquared"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Show the live visitor overview, list the top pages this week, and find the person dana@example.com" }],
  tools,
});

// Tool call runs with the user's vaulted GoSquared API key
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: ["gosquared"] }, pageSize: 100,
});

const agent = new Agent({
  name: "web_analytics_agent",
  model: "gemini-2.5-pro",
  instruction: "GoSquared tools scoped to this user",
  tools,
});

await agent.run("Show the live visitor overview, list the top pages this week, and find the person dana@example.com");
Try these prompts
Copy any prompt into your agent. Each maps directly to a GoSquared tool. Click to copy, paste into your agent, done.
Live traffic
Copy the prompt
Copied
Show the live overview for my site.
Copy the prompt
Copied
Which pages are visitors on right now?
Copy the prompt
Copied
Where are my current visitors coming from?
Trends
Copy the prompt
Copied
Show page trends for the last 7 days.
Copy the prompt
Copied
Which countries sent the most visitors this month?
Copy the prompt
Copied
List my top traffic sources this week.
People and chat
Copy the prompt
Copied
Find the person with the email dana@example.com.
Copy the prompt
Copied
Show the latest messages in my most recent chat.
Copy the prompt
Copied
Track a custom event called plan_upgraded for this person.
SEE HOW AUTH WORKS
Each user connects their own GoSquared API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
GoSquared
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
GoSquared
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
GoSquared
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
GoSquared
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 per-user auth pattern across other analytics and support connectors.
Support and Ops Teams
Support triage agent
Fetches new Zendesk tickets, classifies them by type and urgency, searches the Notion knowledge base for an answer, and routes what it cannot resolve to Slack. Every call runs on the support agent's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other analytics and support connectors.
SUPPORT
Support triage agent
Classify new Zendesk tickets, search the Notion knowledge base for an answer, and route what it cannot resolve to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared GoSquared API key looks fine in a demo. In production every chat reply and tracked event looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
GoSquared 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 access GoSquared as the user or through a shared key?
As the user. Each user connects their own GoSquared API key once, and Scalekit sends it with every call. Audit logs attribute every chat reply and tracking call to that user, not a shared service account.
Where is the GoSquared API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in GoSquared?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the live and trends read tools without gosquared_person_delete, which permanently removes a People profile and cannot be undone. Scalekit also enforces scope checks before every API call.
What happens when a user revokes GoSquared access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent reply to chats?
Yes. gosquared_chat_message_send sends a chat message to a person as the owner of the API key, and gosquared_chat_archive and gosquared_chat_unarchive move chats in and out of the archive. Hide them if the agent should only read conversations.
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"": {
""gosquared"": {
""url"": ""https://mcp.scalekit.com/gosquared"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.gosquared]
url = ""https://mcp.scalekit.com/gosquared""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""gosquared"": {
""url"": ""https://mcp.scalekit.com/gosquared"",
""type"": ""http""
}
}
}