Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 6 Actions

Heap MCP Server
for AI Agents

Connect your AI agent to StackOne's Heap MCP server and give it ready-to-use MCP tools out of the box. Auth, tool execution, and security all managed.

Heap logo
Heap MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

6 Agent Actions

Agents can write and run operations in Heap. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Heap MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Heap tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Heap call.

Tools Discovery →

What is the Heap MCP Server?

A Heap MCP server lets AI agents work with Heap data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Heap MCP server ships with pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Heap MCP Tools

Every StackOne action for Heap, ready for your agent. Write and run operations, scoped to exactly what you need.

Account Properties

  • Add Account Properties

    Set custom properties on a Heap account

Track Events

  • Track Event

    Send a single custom event to Heap

Bulk Track Events

  • Bulk Track Events

    Send up to 1000 custom events to Heap in a single request

Identify Users

  • Identify User

    Associate a Heap user_id with a known identity

User Properties

  • Add User Properties

    Set custom properties on a Heap user

Bulk Add User Properties

  • Bulk Add User Properties

    Set custom properties on multiple Heap users in a single request

Set Up Your Heap MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Heap in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

Check More Data & Analytics MCP Servers

PostHog

490+ actions

Metabase

337+ actions

Smartsheet

203+ actions

Tableau

122+ actions

SurveyMonkey

115+ actions

Baremetrics

114+ actions

Qlik

112+ actions

FAQ

Heap MCP Server FAQ

Ready to put your agents to work?