Amplitude MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Amplitude MCP or direct API to analyze user events, build dashboards, monitor funnels, and generate product insights through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Amplitude Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Amplitude now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Bulk Assign Annotations to CategoryTool to bulk assign multiple annotations to a category in Amplitude.
Cancel User DeletionCancel a pending user deletion request in Amplitude.
Check Amplitude Cohort StatusCheck the status of a cohort export request.
Create Chart Annotation in AmplitudeCreate a chart annotation in Amplitude to mark important dates.
Create Annotation CategoryTool to create an annotation category in Amplitude to organize annotations.
Create Amplitude Event CategoryCreate a new event category in Amplitude.
Create Amplitude Event TypeCreate a new event type in Amplitude.
Create Amplitude ReleaseCreate a release to document product changes.
Delete Amplitude Chart AnnotationDelete a chart annotation from Amplitude.
Delete Amplitude Annotation CategoryDelete an annotation category from Amplitude.
Delete Amplitude Event CategoryDelete an event category from Amplitude.
Delete Amplitude Event TypeDelete an event type from Amplitude.
Delete Amplitude UsersSubmit user deletion requests for GDPR/CCPA compliance.
Download Amplitude Cohort FileDownload the cohort file after request is complete.
Search Amplitude UserSearch for users in Amplitude by canonical identifier (Amplitude ID, device ID, user ID, or user ID prefix).
Get Active or New UsersGet the number of active or new users for a date range with optional segmentation.
Get Amplitude AnnotationGet a single chart annotation by ID from Amplitude.
Get Amplitude Annotation CategoryGet a single annotation category by ID from Amplitude.
Request Amplitude CohortGet a single cohort by ID and initiate download.
Get User Deletion RequestsGet the status of user deletion requests within a date range.
Get Amplitude Event CategoriesGet event categories from Amplitude.
Get Amplitude Event PropertyGet a specific event property from Amplitude taxonomy.
Get Event Segmentation DataGet event segmentation data from Amplitude Analytics API.
Get Amplitude Event TypeGet a specific event type from Amplitude by name.
Get Amplitude Event TypesGet all event types from Amplitude.
Get Funnel Analysis DataGet funnel analysis data showing user conversion through a sequence of events.
Get Real-time Active UsersGet real-time active users count from Amplitude.
Get User Retention AnalysisGet user retention analysis showing how users return over time after a starting action.
Get Revenue LTV MetricsGet revenue lifetime value (LTV) metrics including ARPU, ARPPU, and total revenue.
Get Session Average LengthGet average session length (in seconds) for a specified date range from Amplitude.
Get Session Length DistributionTool to retrieve session length distribution data for a specified date range from Amplitude.
Get Sessions Per User from AmplitudeTool to get average number of sessions per user for each day in a date range from Amplitude.
Get User Activity from AmplitudeFetch a single user's profile summary and event stream by Amplitude ID.
Get User Composition by PropertyTool to get user composition breakdown by property (platform, version, country, etc.
Get User MappingsGet the list of user mappings for provided user IDs.
Get Amplitude User PropertyGet a specific user property from Amplitude taxonomy.
Update User Properties in AmplitudeUpdate user properties using Amplitude's Identify API.
List Amplitude Annotation CategoriesList all annotation categories from Amplitude.
List Chart AnnotationsTool to get all chart annotations with optional filtering by category, chart, and date range.
List Amplitude CohortsList all discoverable cohorts for an Amplitude project.
List Amplitude Event PropertiesGet all event properties from Amplitude, optionally filtered by event type or property name.
List Amplitude EventsTool to get a list of all event types in your Amplitude project with current week's statistics.
List Amplitude User PropertiesTool to get all user properties in your Amplitude project.
Map Users in AmplitudeMap users with different user IDs together (alias/merge users) in Amplitude.
Restore Amplitude Event TypeRestore a deleted event type in Amplitude.
Send Events to AmplitudeSend events to Amplitude using the HTTP V2 API.
Set Group Properties in AmplitudeSet group properties for account-level reporting without sending an event.
Update Amplitude Chart AnnotationTool to update an existing chart annotation in Amplitude.
Update Amplitude Annotation CategoryTool to update an annotation category in Amplitude.
Update Amplitude Cohort MembershipIncrementally update cohort membership by adding or removing IDs.
Update Amplitude Event CategoryUpdate an existing event category in Amplitude.
Update Amplitude Event TypeUpdate an existing event type in Amplitude.
Batch Upload Events to AmplitudeBulk upload events to Amplitude using the Batch Event Upload API.
Upload Amplitude CohortGenerate a new cohort or update an existing cohort by uploading user IDs or Amplitude IDs.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Amplitude tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get all event types in Amplitude')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Amplitude Integration

  • Supports both Amplitude MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Amplitude data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Amplitude access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Amplitude
  • Scoped, least privilege access to Amplitude resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Amplitude with Composio?

Yes, Amplitude requires you to configure your own Basic Auth credentials. Once set up, Composio handles secure credential storage and authentication for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.