# How to integrate Amplitude MCP with Claude Code

```json
{
  "title": "How to integrate Amplitude MCP with Claude Code",
  "toolkit": "Amplitude",
  "toolkit_slug": "amplitude",
  "framework": "Claude Code",
  "framework_slug": "claude-code",
  "url": "https://composio.dev/toolkits/amplitude/framework/claude-code",
  "markdown_url": "https://composio.dev/toolkits/amplitude/framework/claude-code.md",
  "updated_at": "2026-05-12T10:01:10.106Z"
}
```

## Introduction

Manage your Amplitude directly from Claude Code with zero worries about OAuth hassles, API-breaking issues, or reliability and security concerns.
You can do this in two different ways:
- Via [Composio Connect](https://dashboard.composio.dev/login?utm_source=toolkits&utm_medium=framework_template&utm_campaign=claude-code&utm_content=composio_connect&next=%2F~%2Forg%2Fconnect%2Fclients%2Fclaude-code) - Direct and easiest approach
- Via [Composio SDK](https://docs.composio.dev/docs?utm_source=toolkits&utm_medium=framework_template&utm_campaign=claude-code&utm_content=composio_sdk) - Programmatic approach with more control

## Also integrate Amplitude with

- [OpenAI Agents SDK](https://composio.dev/toolkits/amplitude/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/amplitude/framework/claude-agents-sdk)
- [Claude Cowork](https://composio.dev/toolkits/amplitude/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/amplitude/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/amplitude/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/amplitude/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/amplitude/framework/cli)
- [Google ADK](https://composio.dev/toolkits/amplitude/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/amplitude/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/amplitude/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/amplitude/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/amplitude/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/amplitude/framework/crew-ai)

## TL;DR

- Only one MCP URL to connect multiple apps with Claude Code with zero auth hassles.
- Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
- Handling Large tool responses out of LLM context to minimize context rot.
- Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

## Connect Amplitude to Claude Code

### Connecting Amplitude to Claude Code using Composio
1. Add the Composio MCP to Claude

```bash
claude mcp add --scope user --transport http composio https://connect.composio.dev/mcp
```

## What is Claude Code?

Claude Code is Anthropic's command line developer tool that lets you use Claude directly inside your terminal. Instead of switching between your editor, browser, and chat, you can stay in your project folder and ask Claude to help you build, debug, refactor, and understand code right where you're working.
Key features include:
- Terminal-Native Experience: Work with Claude directly in your command line without switching contexts
- MCP Support: Built-in support for Model Context Protocol servers to extend Claude's capabilities
- Project Context: Claude understands your project structure and can read, write, and modify files
- Interactive Development: Ask questions, debug code, and get help in real-time while coding
- Multi-Platform: Works on macOS, Linux, WSL, and Windows

## What is the Amplitude MCP server, and what's possible with it?

The Amplitude MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Amplitude account. It provides structured and secure access to your analytics platform, so your agent can perform actions like managing event types, organizing cohorts, updating user properties, and tracking event categories on your behalf.
- Cohort and user management: Ask your agent to request, download, and check the status of specific user cohorts for advanced segmentation or analysis.
- Event type and category administration: Effortlessly create, update, or delete event types and categories, keeping your analytics taxonomy organized and up to date.
- User property updates: Direct your agent to set or modify user properties—like device information or location—without sending new events, making user profile management a breeze.
- Comprehensive analytics lookup: Retrieve detailed information about event types and categories, enabling your agent to provide insights or answer analytics questions in real time.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `AMPLITUDE_ASSIGN_ANNOTATIONS_TO_CATEGORY` | Bulk Assign Annotations to Category | Tool to bulk assign multiple annotations to a category in Amplitude. Use when you need to organize annotations by assigning them to a specific category. |
| `AMPLITUDE_CANCEL_DELETION` | Cancel User Deletion | Cancel a pending user deletion request in Amplitude. Use this to remove a user from a scheduled deletion job before it completes. Only works on deletion jobs in 'Staging' status (not yet submitted). |
| `AMPLITUDE_CHECK_COHORT_STATUS` | Check Amplitude Cohort Status | Check the status of a cohort export request. This action allows you to: - Poll the status of an in-progress cohort download request - Determine if a cohort is ready for download |
| `AMPLITUDE_CREATE_ANNOTATION` | Create Chart Annotation in Amplitude | Create a chart annotation in Amplitude to mark important dates. Use to highlight key events like feature releases, marketing campaigns, or product updates on analytics charts. |
| `AMPLITUDE_CREATE_ANNOTATION_CATEGORY` | Create Annotation Category | Tool to create an annotation category in Amplitude to organize annotations. Use when you need to create a new category for grouping related annotations. |
| `AMPLITUDE_CREATE_EVENT_CATEGORY` | Create Amplitude Event Category | Create a new event category in Amplitude. This action allows you to: - Create a new event category to organize event types - Validate category name before creation Key features: - Creates event categories for organizing events - Returns success/failure status |
| `AMPLITUDE_CREATE_EVENT_TYPE` | Create Amplitude Event Type | Create a new event type in Amplitude. This action allows you to: - Define a new event type with various properties - Associate the event with a category - Add metadata like description, tags, and owner Key features: - Creates trackable events in your Amplitude project - Supports full event type configuration |
| `AMPLITUDE_CREATE_RELEASE` | Create Amplitude Release | Create a release to document product changes. Use when you want to track app version releases and their impact on metrics. Can be integrated into deployment workflows to automatically log releases in Amplitude. |
| `AMPLITUDE_DELETE_ANNOTATION` | Delete Amplitude Chart Annotation | Delete a chart annotation from Amplitude. Use to remove existing annotations from charts. |
| `AMPLITUDE_DELETE_ANNOTATION_CATEGORY` | Delete Amplitude Annotation Category | Delete an annotation category from Amplitude. Use when you need to remove an annotation category that is no longer needed. |
| `AMPLITUDE_DELETE_EVENT_CATEGORY` | Delete Amplitude Event Category | Delete an event category from Amplitude. This action allows you to: - Delete an existing event category - Remove category organization from events Key features: - Permanently removes event categories - Returns success/failure status |
| `AMPLITUDE_DELETE_EVENT_TYPE` | Delete Amplitude Event Type | Delete an event type from Amplitude. This action allows you to: - Remove an event type from your project - Mark live events as deleted - Remove planned events from the tracking plan Key features: - Different behavior based on event status (live, planned, etc.) - Returns success/failure status |
| `AMPLITUDE_DELETE_USERS` | Delete Amplitude Users | Submit user deletion requests for GDPR/CCPA compliance. Supports up to 100 users per request. Use when you need to delete user data from Amplitude in compliance with privacy regulations. Either amplitude_ids or user_ids must be provided. |
| `AMPLITUDE_DOWNLOAD_COHORT_FILE` | Download Amplitude Cohort File | Download the cohort file after request is complete. Use this action after checking that the cohort status is 'JOB COMPLETED'. The download link is valid for 7 days, but the S3 link is valid for only 1 minute. |
| `AMPLITUDE_FIND_USER` | Search Amplitude User | Search for users in Amplitude by canonical identifier (Amplitude ID, device ID, user ID, or user ID prefix). Use this to find matching Amplitude IDs for deterministic user mapping. Important: This searches only canonical identifiers (Amplitude ID, device_id, user_id), NOT arbitrary user properties like email unless email is your actual user_id. |
| `AMPLITUDE_GET_ACTIVE_USERS` | Get Active or New Users | Get the number of active or new users for a date range with optional segmentation. Use when you need user count metrics aggregated by day, week, or month, optionally grouped by user properties. |
| `AMPLITUDE_GET_ANNOTATION` | Get Amplitude Annotation | Get a single chart annotation by ID from Amplitude. Use when you need to retrieve detailed information about a specific annotation including its label, timestamps, category, and associated chart. |
| `AMPLITUDE_GET_ANNOTATION_CATEGORY` | Get Amplitude Annotation Category | Get a single annotation category by ID from Amplitude. Use when you need to retrieve details about a specific annotation category. |
| `AMPLITUDE_GET_COHORT` | Request Amplitude Cohort | Get a single cohort by ID and initiate download. This action allows you to: - Request a specific cohort from Amplitude - Optionally include user properties in the response - Start the asynchronous download process Key features: - Supports filtering by specific user properties - Returns a request ID used for polling status and downloading - Supports EU data residency |
| `AMPLITUDE_GET_DELETION_REQUESTS` | Get User Deletion Requests | Get the status of user deletion requests within a date range. Use this to track GDPR/CCPA deletion compliance and monitor deletion job progress. |
| `AMPLITUDE_GET_EVENT_CATEGORIES` | Get Amplitude Event Categories | Get event categories from Amplitude. This action allows you to: - Get all event categories in your project - Get a specific category by name |
| `AMPLITUDE_GET_EVENT_PROPERTY` | Get Amplitude Event Property | Get a specific event property from Amplitude taxonomy. Use when you need to retrieve details about a specific event property including its type, validation rules, and metadata. |
| `AMPLITUDE_GET_EVENT_SEGMENTATION` | Get Event Segmentation Data | Get event segmentation data from Amplitude Analytics API. Use this to analyze event metrics over time with optional grouping by properties. Supports multiple metrics (uniques, totals, percentage of DAU, averages) and time intervals (realtime, hourly, daily, weekly). |
| `AMPLITUDE_GET_EVENT_TYPE` | Get Amplitude Event Type | Get a specific event type from Amplitude by name. This action allows you to: - Retrieve detailed information about a single event type - Get all properties and metadata for the event Key features: - Retrieves comprehensive event type details - Returns metadata like category, description, and settings - Supports lookup by exact event name |
| `AMPLITUDE_GET_EVENT_TYPES` | Get Amplitude Event Types | Get all event types from Amplitude. This action allows you to: - Retrieve all event types in your project - Optionally include deleted events |
| `AMPLITUDE_GET_FUNNEL_DATA` | Get Funnel Analysis Data | Get funnel analysis data showing user conversion through a sequence of events. Use this to analyze user drop-off rates and conversion times across multiple steps in a user journey. |
| `AMPLITUDE_GET_REALTIME_ACTIVE_USERS` | Get Real-time Active Users | Get real-time active users count from Amplitude. Returns active user counts with 5-minute granularity (configurable) for today and yesterday. Use this to monitor current user activity and compare with historical data. |
| `AMPLITUDE_GET_RETENTION` | Get User Retention Analysis | Get user retention analysis showing how users return over time after a starting action. Use when analyzing user engagement patterns, measuring feature stickiness, or understanding long-term user behavior across cohorts. |
| `AMPLITUDE_GET_REVENUE_LTV` | Get Revenue LTV Metrics | Get revenue lifetime value (LTV) metrics including ARPU, ARPPU, and total revenue. Use when you need to analyze revenue trends over time for user cohorts. |
| `AMPLITUDE_GET_SESSION_AVERAGE` | Get Session Average Length | Get average session length (in seconds) for a specified date range from Amplitude. Use when you need to analyze user engagement patterns and session duration trends over time. |
| `AMPLITUDE_GET_SESSION_LENGTH` | Get Session Length Distribution | Tool to retrieve session length distribution data for a specified date range from Amplitude. Use when you need to analyze how long users' sessions typically last or visualize session duration patterns across time buckets. |
| `AMPLITUDE_GET_SESSIONS_PER_USER` | Get Sessions Per User from Amplitude | Tool to get average number of sessions per user for each day in a date range from Amplitude. Use when analyzing user engagement patterns or session frequency over time. |
| `AMPLITUDE_GET_USER_ACTIVITY` | Get User Activity from Amplitude | Fetch a single user's profile summary and event stream by Amplitude ID. Use when you need to extract attribution data (UTM parameters, referrers) from early events or user properties, or when analyzing user behavior patterns. |
| `AMPLITUDE_GET_USER_COMPOSITION` | Get User Composition by Property | Tool to get user composition breakdown by property (platform, version, country, etc.). Use when analyzing user distribution across property values during a date range. |
| `AMPLITUDE_GET_USER_MAPPINGS` | Get User Mappings | Get the list of user mappings for provided user IDs. Use when you need to retrieve aliasing relationships between user identifiers in Amplitude. Returns mapping data showing which users map into and out of the requested user IDs. |
| `AMPLITUDE_GET_USER_PROPERTY` | Get Amplitude User Property | Get a specific user property from Amplitude taxonomy. Use when you need to retrieve details about a specific user property including its type, validation rules, and classifications. |
| `AMPLITUDE_IDENTIFY` | Update User Properties in Amplitude | Update user properties using Amplitude's Identify API. This action allows you to: - Set or update the User ID for a Device ID - Update user properties without sending an event - Perform operations on user properties (set, append, etc.) - Update user attributes like device info and location |
| `AMPLITUDE_LIST_ANNOTATION_CATEGORIES` | List Amplitude Annotation Categories | List all annotation categories from Amplitude. Use to retrieve available categories for chart annotations. |
| `AMPLITUDE_LIST_ANNOTATIONS` | List Chart Annotations | Tool to get all chart annotations with optional filtering by category, chart, and date range. Use when you need to retrieve annotations that mark important events or milestones on Amplitude charts. |
| `AMPLITUDE_LIST_COHORTS` | List Amplitude Cohorts | List all discoverable cohorts for an Amplitude project. This action allows you to: - Get a list of all cohorts in your Amplitude project - Optionally include sync information for each cohort Key features: - Returns cohort details including ID, name, size, and definition - Optionally includes sync metadata for integration with other tools - Supports EU data residency. An empty result may indicate insufficient permissions to view cohorts rather than an absence of cohorts in the project. |
| `AMPLITUDE_LIST_EVENT_PROPERTIES` | List Amplitude Event Properties | Get all event properties from Amplitude, optionally filtered by event type or property name. Use when you need to retrieve property definitions, data types, or validation rules for events. |
| `AMPLITUDE_LIST_EVENTS` | List Amplitude Events | Tool to get a list of all event types in your Amplitude project with current week's statistics. Use when you need to see all events and their recent activity metrics including totals, uniques, and DAU percentages. |
| `AMPLITUDE_LIST_USER_PROPERTIES` | List Amplitude User Properties | Tool to get all user properties in your Amplitude project. Use when you need to retrieve the complete list of user properties including both default and custom properties. |
| `AMPLITUDE_MAP_USER` | Map Users in Amplitude | Map users with different user IDs together (alias/merge users) in Amplitude. Use this to merge user identities across different identifiers or unmap previously merged users. Supports up to 2000 mappings per request with 1MB size limit. |
| `AMPLITUDE_RESTORE_EVENT_TYPE` | Restore Amplitude Event Type | Restore a deleted event type in Amplitude. This action allows you to: - Restore a previously deleted event type - Make the event available again in the UI and API Key features: - Undoes the deletion of an event type - Returns success/failure status |
| `AMPLITUDE_SEND_EVENTS` | Send Events to Amplitude | Send events to Amplitude using the HTTP V2 API. This action allows you to send events to Amplitude for tracking user behavior and analytics. It supports all Amplitude event fields, handles proper validation, and includes comprehensive error handling. |
| `AMPLITUDE_SET_GROUP_PROPERTIES` | Set Group Properties in Amplitude | Set group properties for account-level reporting without sending an event. Use this action to update group attributes like company name, industry, or plan type. Requires Enterprise plan with Accounts add-on. |
| `AMPLITUDE_UPDATE_ANNOTATION` | Update Amplitude Chart Annotation | Tool to update an existing chart annotation in Amplitude. Use when you need to modify annotation properties such as label, timestamps, category, or chart association. Supports partial updates - only include fields you want to change. |
| `AMPLITUDE_UPDATE_ANNOTATION_CATEGORY` | Update Amplitude Annotation Category | Tool to update an annotation category in Amplitude. Use when you need to rename or modify an existing annotation category for organizing chart annotations. |
| `AMPLITUDE_UPDATE_COHORT_MEMBERSHIP` | Update Amplitude Cohort Membership | Incrementally update cohort membership by adding or removing IDs. This action allows you to: - Add new IDs to an existing cohort - Remove IDs from an existing cohort - Perform multiple operations in a single request |
| `AMPLITUDE_UPDATE_EVENT_CATEGORY` | Update Amplitude Event Category | Update an existing event category in Amplitude. This action allows you to: - Update the name of an existing event category - Validate the new category name Key features: - Updates category names - Returns success/failure status |
| `AMPLITUDE_UPDATE_EVENT_TYPE` | Update Amplitude Event Type | Update an existing event type in Amplitude. This action allows you to: - Change event type properties - Update event name, category, metadata, and settings - Modify display name for ingested events Key features: - Updates event type configuration - Supports partial updates (only specified fields are changed) |
| `AMPLITUDE_UPLOAD_BATCH_EVENTS` | Batch Upload Events to Amplitude | Bulk upload events to Amplitude using the Batch Event Upload API. Supports larger payloads (20MB) and higher throttling limits than HTTP V2 API. Use when you need to send large batches of events efficiently. |
| `AMPLITUDE_UPLOAD_COHORT` | Upload Amplitude Cohort | Generate a new cohort or update an existing cohort by uploading user IDs or Amplitude IDs. Use when you need to create cohorts from a specific list of users. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

The Amplitude MCP server is an implementation of the Model Context Protocol that connects Claude Code (and other AI assistants like Claude and Cursor) directly to your Amplitude account. It provides structured and secure access so Claude can perform Amplitude operations on your behalf.
With Composio's managed implementation, you don't have to create your own developer app. For production, if you're building an end product, we recommend using your own credentials. The managed server helps you prototype fast and go from 0-1 faster.

## Step-by-step Guide

### 1. Prerequisites

Before starting, make sure you have:
- Claude Pro, Max, or API billing enabled Anthropic account
- Composio API Key
- A Amplitude account
- Basic knowledge of Python or TypeScript

### 1. Install Claude Code

To install Claude Code, use one of the following methods based on your operating system:
```bash
# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
```

### 2. Set up Claude Code

Open a terminal, go to your project folder, and start Claude Code:
- Claude Code will open in your terminal
- Follow the prompts to sign in with your Anthropic account
- Complete the authentication flow
- Once authenticated, you can start using Claude Code
```bash
cd your-project-folder
claude
```

### 3. Set up environment variables

Create a .env file in your project root with the following variables:
- COMPOSIO_API_KEY authenticates with Composio (get it from [Composio dashboard](https://dashboard.composio.dev/login?utm_source=toolkits&utm_medium=framework_template&utm_campaign=claude-code&utm_content=api_key&next=%2F~%2Forg%2Fconnect%2Fclients%2Fclaude-code))
- USER_ID identifies the user for session management (use any unique identifier)
```bash
COMPOSIO_API_KEY=your_composio_api_key_here
USER_ID=your_user_id_here
```

### 4. Install Composio library

No description provided.
```python
pip install composio-core python-dotenv
```

```typescript
npm install @composio/core dotenv
```

### 5. Generate Composio MCP URL

No description provided.
```python
import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()

COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY")
USER_ID = os.getenv("USER_ID")

composio_client = Composio(api_key=COMPOSIO_API_KEY)

composio_session = composio_client.create(
    user_id=USER_ID,
    toolkits=["amplitude"],
)

COMPOSIO_MCP_URL = composio_session.mcp.url

print(f"MCP URL: {COMPOSIO_MCP_URL}")
print(f"\nUse this command to add to Claude Code:")
print(f'claude mcp add --transport http amplitude-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')
```

```typescript
import 'dotenv/config';
import { Composio } from '@composio/core';

const { COMPOSIO_API_KEY, USER_ID } = process.env;

if (!COMPOSIO_API_KEY || !USER_ID) {
  throw new Error('COMPOSIO_API_KEY and USER_ID required in .env');
}

const composioClient = new Composio({ apiKey: COMPOSIO_API_KEY });

const composioSession = await composioClient.create(USER_ID, {
  toolkits: ['amplitude'],
});

const composioMcpUrl = composioSession?.mcp.url;

console.log(`MCP URL: ${composioMcpUrl}`);
console.log(`\nUse this command to add to Claude Code:`);
console.log(`claude mcp add --transport http amplitude-composio "${composioMcpUrl}" --headers "X-API-Key:${COMPOSIO_API_KEY}"`);
```

### 6. Run the script and copy the MCP URL

No description provided.
```python
python generate_mcp_url.py
```

```typescript
node --loader ts-node/esm generate_mcp_url.ts
# or if using tsx
tsx generate_mcp_url.ts
```

### 7. Add Amplitude MCP to Claude Code

In your terminal, add the MCP server using the command from the previous step. The command format is:
- claude mcp add registers a new MCP server with Claude Code
- --transport http specifies that this is an HTTP-based MCP server
- The server name (amplitude-composio) is how you'll reference it
- The URL points to your Composio Tool Router session
- --headers includes your Composio API key for authentication
After running the command, close the current Claude Code session and start a new one for the changes to take effect.
```bash
claude mcp add --transport http amplitude-composio "YOUR_MCP_URL_HERE" --headers "X-API-Key:YOUR_COMPOSIO_API_KEY"

# Then restart Claude Code
exit
claude
```

### 8. Verify the installation

Check that your Amplitude MCP server is properly configured.
- This command lists all MCP servers registered with Claude Code
- You should see your amplitude-composio entry in the list
- This confirms that Claude Code can now access Amplitude tools
If everything is wired up, you should see your amplitude-composio entry listed:
```bash
claude mcp list
```

### 9. Authenticate Amplitude

The first time you try to use Amplitude tools, you'll be prompted to authenticate.
- Claude Code will detect that you need to authenticate with Amplitude
- It will show you an authentication link
- Open the link in your browser (or copy/paste it)
- Complete the Amplitude authorization flow
- Return to the terminal and start using Amplitude through Claude Code
Once authenticated, you can ask Claude Code to perform Amplitude operations in natural language. For example:
- "Get daily active users for last month"
- "Generate funnel analysis for onboarding flow"
- "List top events for premium users"

## Complete Code

```python
import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()

COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY")
USER_ID = os.getenv("USER_ID")

composio_client = Composio(api_key=COMPOSIO_API_KEY)

composio_session = composio_client.create(
    user_id=USER_ID,
    toolkits=["amplitude"],
)

COMPOSIO_MCP_URL = composio_session.mcp.url

print(f"MCP URL: {COMPOSIO_MCP_URL}")
print(f"\nUse this command to add to Claude Code:")
print(f'claude mcp add --transport http amplitude-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')
```

```typescript
import 'dotenv/config';
import { Composio } from '@composio/core';

const { COMPOSIO_API_KEY, USER_ID } = process.env;

if (!COMPOSIO_API_KEY || !USER_ID) {
  throw new Error('COMPOSIO_API_KEY and USER_ID required in .env');
}

const composioClient = new Composio({ apiKey: COMPOSIO_API_KEY });

const composioSession = await composioClient.create(USER_ID, {
  toolkits: ['amplitude'],
});

const composioMcpUrl = composioSession?.mcp.url;

console.log(`MCP URL: ${composioMcpUrl}`);
console.log(`\nUse this command to add to Claude Code:`);
console.log(`claude mcp add --transport http amplitude-composio "${composioMcpUrl}" --headers "X-API-Key:${COMPOSIO_API_KEY}"`);
```

## Conclusion

You've successfully integrated Amplitude with Claude Code using Composio's MCP server. Now you can interact with Amplitude directly from your terminal using natural language commands.
Key features of this setup:
- Terminal-native experience without switching contexts
- Natural language commands for Amplitude operations
- Secure authentication through Composio's managed MCP
- Tool Router for dynamic tool discovery and execution
Next steps:
- Try asking Claude Code to perform various Amplitude operations
- Add more toolkits to your Tool Router session for multi-app workflows
- Integrate this setup into your development workflow for increased productivity
You can extend this by adding more toolkits, implementing custom workflows, or building automation scripts that leverage Claude Code's capabilities.

## How to build Amplitude MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/amplitude/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/amplitude/framework/claude-agents-sdk)
- [Claude Cowork](https://composio.dev/toolkits/amplitude/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/amplitude/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/amplitude/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/amplitude/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/amplitude/framework/cli)
- [Google ADK](https://composio.dev/toolkits/amplitude/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/amplitude/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/amplitude/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/amplitude/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/amplitude/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/amplitude/framework/crew-ai)

## Related Toolkits

- [Firecrawl](https://composio.dev/toolkits/firecrawl) - Firecrawl automates large-scale web crawling and data extraction. It helps organizations efficiently gather, index, and analyze content from online sources.
- [Tavily](https://composio.dev/toolkits/tavily) - Tavily offers powerful search and data retrieval from documents, databases, and the web. It helps teams locate and filter information instantly, saving hours on research.
- [Exa](https://composio.dev/toolkits/exa) - Exa is a data extraction and search platform for gathering and analyzing information from websites, APIs, or databases. It helps teams quickly surface insights and automate data-driven workflows.
- [Serpapi](https://composio.dev/toolkits/serpapi) - SerpApi is a real-time API for structured search engine results. It lets you automate SERP data collection, parsing, and analysis for SEO and research.
- [Peopledatalabs](https://composio.dev/toolkits/peopledatalabs) - Peopledatalabs delivers B2B data enrichment and identity resolution APIs. Supercharge your apps with accurate, up-to-date business and contact data.
- [Snowflake](https://composio.dev/toolkits/snowflake) - Snowflake is a cloud data warehouse built for elastic scaling, secure data sharing, and fast SQL analytics across major clouds.
- [Posthog](https://composio.dev/toolkits/posthog) - PostHog is an open-source analytics platform for tracking user interactions and product metrics. It helps teams refine features, analyze funnels, and reduce churn with actionable insights.
- [Bright Data MCP](https://composio.dev/toolkits/brightdata_mcp) - Bright Data MCP is an AI-powered web scraping and data collection platform. Instantly access public web data in real time with advanced scraping tools.
- [Browseai](https://composio.dev/toolkits/browseai) - Browseai is a web automation and data extraction platform that turns any website into an API. It's perfect for monitoring websites and retrieving structured data without manual scraping.
- [ClickHouse](https://composio.dev/toolkits/clickhouse) - ClickHouse is an open-source, column-oriented database for real-time analytics and big data processing using SQL. Its lightning-fast query performance makes it ideal for handling large datasets and delivering instant insights.
- [Coinmarketcal](https://composio.dev/toolkits/coinmarketcal) - CoinMarketCal is a community-powered crypto calendar for upcoming events, announcements, and releases. It helps traders track market-moving developments and stay ahead in the crypto space.
- [Control d](https://composio.dev/toolkits/control_d) - Control d is a customizable DNS filtering and traffic redirection platform. It helps you manage internet access, enforce policies, and monitor usage across devices and networks.
- [Databox](https://composio.dev/toolkits/databox) - Databox is a business analytics platform that connects your data from any tool and device. It helps you track KPIs, build dashboards, and discover actionable insights.
- [Databricks](https://composio.dev/toolkits/databricks) - Databricks is a unified analytics platform for big data and AI on the lakehouse architecture. It empowers data teams to collaborate, analyze, and build scalable solutions efficiently.
- [Datagma](https://composio.dev/toolkits/datagma) - Datagma delivers data intelligence and analytics for business growth and market discovery. Get actionable market insights and track competitors to inform your strategy.
- [Delighted](https://composio.dev/toolkits/delighted) - Delighted is a customer feedback platform based on the Net Promoter System®. It helps you quickly gather, track, and act on customer sentiment.
- [Dovetail](https://composio.dev/toolkits/dovetail) - Dovetail is a research analysis platform for transcript review and insight generation. It helps teams code interviews, analyze feedback, and create actionable research summaries.
- [Dub](https://composio.dev/toolkits/dub) - Dub is a short link management platform with analytics and API access. Use it to easily create, manage, and track branded short links for your business.
- [Elasticsearch](https://composio.dev/toolkits/elasticsearch) - Elasticsearch is a distributed, RESTful search and analytics engine for all types of data. It delivers fast, scalable search and powerful analytics across massive datasets.
- [Fireflies](https://composio.dev/toolkits/fireflies) - Fireflies.ai is an AI-powered meeting assistant that records, transcribes, and analyzes voice conversations. It helps teams capture call notes automatically and search or summarize meetings effortlessly.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Amplitude MCP?

With a standalone Amplitude MCP server, the agents and LLMs can only access a fixed set of Amplitude tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Amplitude and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Claude Code?

Yes, you can. Claude Code fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Amplitude tools.

### Can I manage the permissions and scopes for Amplitude while using Tool Router?

Yes, absolutely. You can configure which Amplitude scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Amplitude data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
