Clamp Sh MCP logo

Clamp Sh MCP

by clamp-sh

Connects AI agents to Clamp Analytics for traffic, events, revenue, funnels, cohorts, errors, and alerts.

Install Clamp Sh MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "clamp-sh-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@clamp-sh/mcp"
      ],
      "env": {
        "CLAMP_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

clamp-sh/mcp MCP server exposes Clamp Analytics data and actions through typed Model Context Protocol tools. Agents can query traffic, pages, events, revenue, sessions, users, cohorts, errors, projects, and documentation, then create funnels or metric alerts where supported. The npm package runs over stdio with a project-scoped API key, making it suitable for CI, headless agents, custom MCP clients, and self-hosted Clamp instances. Use the hosted Remote MCP option instead when configuring supported editors through the Clamp dashboard.

Use cases

  • Analyze weekly traffic and period-over-period changes
  • Investigate conversion and revenue by channel or cohort
  • Inspect event schemas and discover property values
  • Trace user journeys, session paths, and recent errors
  • Create metric alerts and conversion funnels

Key features

  • Traffic, page, event, and live visitor analytics
  • Revenue, retention, cohort, and attribution analysis
  • Session path and anonymous user journey reconstruction
  • Error groups, timelines, and breadcrumbs
  • Conversion funnel and metric alert management
  • Typed MCP tool outputs with configurable filters

Tools24

What Clamp Sh MCP lets your agent do. Expand a tool for its parameters.

Self-reported~884 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

21/21 checks healthy over the last 90d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @clamp-sh/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads76Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Tools exposed24Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Clamp Sh MCP works

What clamp-sh/mcp does

clamp-sh/mcp MCP server connects MCP-compatible agents to Clamp Analytics. It provides read access to product and web analytics, including pageviews, visitors, sessions, bounce rate, engagement, referrers, locations, devices, custom events, revenue, retention, session paths, user journeys, cohorts, errors, and project access.

Traffic tools support overview metrics, time series, arbitrary period comparisons, live visitors, and dimension-based breakdowns. Page tools provide per-page summaries, engagement data, and section counts when the section-views SDK extension is available. Event tools can inspect observed event schemas and property values, which helps identify schema drift or valid filter values before querying event counts.

Revenue tools cover sums, time series, customers, orders, average order value, lifetime value, MRR, ARR, plan and product rollups, attribution, and cohort retention. Funnel tools evaluate multi-step conversions, including property predicates, while alert tools create, list, and remove metric alerts. Cohort tools define retention groups, compare up to 10 cohorts, and remove saved definitions.

How it works

The server maps natural-language analytics requests to MCP tool calls. Agents can combine results—for example, comparing a traffic change with page, referrer, event, or error data. Most queries accept standard periods such as today, 7d, or 30d, or a custom YYYY-MM-DD:YYYY-MM-DD range. Many tools also accept filters for paths, referrers, channels, geography, devices, browsers, operating systems, and UTM fields.

Tool outputs include schemas for client-side validation. The projects.list tool shows projects available to the credential, while docs.search searches the Clamp documentation index. Saved funnel and cohort definitions are immutable; changing one requires deleting it and creating a replacement. Funnel names must be unique within a project.

Setup and configuration

clamp-sh/mcp is distributed as the @clamp-sh/mcp npm package and runs through npx in stdio mode. Set CLAMP_API_KEY to a project-scoped key from Clamp Analytics settings; keys begin with sk_proj. A typical MCP client configuration uses npx -y @clamp-sh/mcp as the command and passes the key through the process environment.

That route handles authentication through the dashboard. The npm package is intended for CI, headless agents, custom clients, and self-hosted Clamp deployments.

Tools and capabilities

  • Query traffic summaries, trends, comparisons, live activity, and dimensional breakdowns.
  • Inspect page engagement, section views, event counts, event schemas, and property values.
  • Analyze revenue by currency, plan, product, attribution, time, and retention cohort.
  • Reconstruct session paths and the chronological activity of an anonymous user.
  • Define, compare, query, and delete saved cohorts.
  • Review grouped errors, affected users, timelines, and error breadcrumbs.
  • Create, list, evaluate, and delete conversion funnels and metric alerts.

Other listed analytics, project, and documentation tools are marked available on all plans.

Limitations and notes

The server requires access to a Clamp Analytics project and a valid project API key when using the stdio package. The pages.engagement sections view requires the section-views SDK extension. Revenue retention uses MRR-based cohort calculations anchored to a customer's first subscription_started event. Money-based revenue queries can split results by currency.

Result sizes are controlled by a limit parameter from 1 to 50, with a default of 10. The server does not make funnel or cohort definitions mutable in place. Duplicate funnel names produce a conflict, and renaming or restructuring requires deletion followed by creation.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Clamp Sh MCP

clamp-sh/mcp is an MCP server that connects AI agents to Clamp Analytics through stdio. Its main tools query traffic, pages, events, revenue, sessions, users, cohorts, errors, and projects, search Clamp documentation, and create or manage conversion funnels and metric alerts where those features are available.

Install it by configuring your MCP client to run `npx -y @clamp-sh/mcp` and pass `CLAMP_API_KEY` in the environment. The README also provides one-click hosted Remote MCP setup through the Clamp dashboard for supported editors.

Set `CLAMP_API_KEY` to a project-scoped Clamp API key. You can obtain the key from Clamp Analytics under Settings → API Keys, and the documented keys start with `sk_proj`.

Yes, clamp-sh/mcp works with Cursor. Cursor can use the documented stdio configuration with `npx -y @clamp-sh/mcp` and `CLAMP_API_KEY`, or you can install Clamp's hosted Remote MCP from the dashboard.

Yes, it can create and evaluate conversion funnels and create metric alerts, but those operations are listed as Pro features. Funnel names must be unique, and saved funnel definitions cannot be edited in place.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClamp Sh MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/clamp-sh-mcp?style=directory)](https://allmcps.com/mcp/clamp-sh-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/clamp-sh-mcp"><img src="https://allmcps.com/api/badge/clamp-sh-mcp?style=directory" alt="Clamp Sh MCP on AllMCPs" /></a>