Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

instrument-mcp-server

Skill by amplitude

Instruments a Node/TypeScript MCP server with Amplitude's @amplitude/mcp-analytics SDK. Tool calls, sessions and agent rationale become Amplitude events that can be joined with web and mobile data.

  • Score 48
  • 167 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install instrument-mcp-server

Built from the published package, never by AI.

git clone --depth 1 https://github.com/amplitude/builder-skills /tmp/builder-skills && mkdir -p ~/.claude/skills && cp -r /tmp/builder-skills/engineering-skills/skills/instrument-mcp-server ~/.claude/skills/instrument-mcp-server

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install instrument-mcp-server in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through adding Amplitude's @amplitude/mcp-analytics SDK to a Node/TypeScript MCP server built on @modelcontextprotocol/sdk. It covers four steps: tracking tool calls as Amplitude events, matching the user_id used on web and mobile, capturing the agent's rationale for each tool call, and UTM-tagging links the server returns.

Installing the SDK and wiring up tool calls, and getting identity right, are required steps. Rationale capture and UTM tagging are recommended. The SDK README is named as the authoritative reference, and the skill says to fetch it fresh because the SDK is in preview. It is aimed at teams that want agent traffic from Claude, Cursor or ChatGPT attributed back to Amplitude.

Written from the project's SKILL.md and checked against it.

What it can do

  • Install and track tool callsAdds the SDK and wraps every tool handler so each tool call becomes an Amplitude event.
  • Identity setupMakes MCP events carry the same user_id the product sends from web and mobile.
  • Rationale captureAdds an optional rationale field to tool schemas and records it as the [MCP] Rationale property.
  • UTM taggingAdds utm_source, utm_medium and utm_content parameters to links returned in tool responses.
  • Common mistakes checkLists pitfalls such as calling instrumentServer after connect and mismatched user IDs.

What you need

  • Node/TypeScript MCP server built on @modelcontextprotocol/sdk
  • Amplitude API key for the target project
  • pnpm, npm or yarn
  • Web analytics capturing UTM parameters (for UTM tagging)

Try asking

  • Add Amplitude analytics to my MCP server and track every tool call.
  • Add an optional rationale field to all my MCP tool schemas for Amplitude.
  • Help me UTM-tag the links my MCP server returns in tool responses.

Good to know

  • The SDK is in preview and changes quickly, so the README must be checked for current APIs.
  • Fully anonymous events are dropped by default unless emitAnonymousEvent is set to true.
  • UTM attribution only works if the web side captures UTM parameters on page-view events.
  • Unwrapped tool handlers are not tracked.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: engineering-skills/skills/instrument-mcp-server/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to instrument-mcp-server

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

instrument-mcp-server: common questions

Does this work with Claude, Cursor and ChatGPT?

The skill is meant to attribute agent traffic from Claude, Cursor and ChatGPT back to Amplitude. Rationale is added through the tool schema, so it needs no client-side changes.

Why does the user_id have to match?

MCP events must carry the same user_id that the product sends from web or mobile. Otherwise MCP usage cannot be joined to product data.

Are anonymous MCP events counted as users?

No. Fully anonymous events without an anchor are dropped by default. They can be included for aggregate-only tracking with emitAnonymousEvent set to true.

How do I install instrument-mcp-server?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is instrument-mcp-server free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is instrument-mcp-server safe to use?

It scores 48 of 100. Grades: maintenance C, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to instrument-mcp-server?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

instrument-mcp-server Install

Add to stack

Loading.