MCP server for Amplitude integration
Project description
Amplitude MCP Server
A Model Context Protocol (MCP) server for Amplitude integration. This server provides tools for interacting with Amplitude's analytics platform, including tracking events, retrieving analytics data, and managing dashboards.
Features
- Event Tracking: Send events to Amplitude for tracking user behavior
- User Analytics: Retrieve user activity data and sessions
- Dashboard Management: List and get information about Amplitude dashboards
- Cohort Management: Access cohort information and data
- Analytics Queries: Run queries against Amplitude analytics data
- Events Management: Get information about tracked events
Installation
pip install mcp-amplitude
Configuration
Set the following environment variables:
export AMPLITUDE_BASE_URL="https://api.amplitude.com" # Optional, default is already set
export AMPLITUDE_API_KEY="your_api_key"
export AMPLITUDE_SECRET_KEY="your_secret_key" # Required for certain API calls like user exports
Usage
Starting the server directly
mcp-amplitude
Using with Claude Desktop
Add the following to your claude_desktop_config.json file:
"mcpServers": {
"amplitude": {
"command": "uvx",
"args": [
"mcp-amplitude"
],
"env": {
"AMPLITUDE_API_KEY": "your_api_key",
"AMPLITUDE_SECRET_KEY": "your_secret_key"
}
}
}
Replace the environment variables with your actual Amplitude credentials.
Using with uvx
uvx mcp-amplitude
With environment variables:
AMPLITUDE_API_KEY="your_api_key" AMPLITUDE_SECRET_KEY="your_secret_key" uvx mcp-amplitude
Available Tools
- send_event: Send an event to Amplitude with user_id/device_id and properties
- get_user_activity: Get activity data for a specific user
- query_chart: Get data from a specific Amplitude chart
- get_cohorts: List available cohorts in your Amplitude account
- get_dashboards: List available dashboards in your Amplitude account
- get_dashboard_details: Get detailed information about a specific dashboard
- get_events_list: Get a list of all event types tracked in your Amplitude account
Available Resources
- amplitude://dashboards: List of all dashboards in your Amplitude account
- amplitude://events: List of all event types in your Amplitude account
- amplitude://cohorts: List of all cohorts in your Amplitude account
Available Prompts
- analyze_user_behavior: Template for analyzing user behavior patterns
- create_dashboard: Template for creating a new dashboard in Amplitude
- track_conversion_funnel: Template for analyzing conversion funnels
Authentication
The Amplitude MCP server uses different authentication methods depending on the API endpoint:
- HTTP API & Batch API: Uses the API key in the URL parameters
- Export API: Uses Basic Authentication with API key and Secret key
- Dashboard & Management APIs: Uses Bearer token authentication with the API key
Make sure you have set the appropriate environment variables before running the server.
Version
0.0.1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_amplitude-0.0.2.tar.gz.
File metadata
- Download URL: mcp_amplitude-0.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21eb89459857b5cee07c1947b96612e275d9b4fa543442d56e305e21a59876f6
|
|
| MD5 |
f2bd97a8ecb91e07a01e936d6dc43b3a
|
|
| BLAKE2b-256 |
15b21a78a48c19e980aeaf2f4e2df44739987cd8041942cb0cbd0e0b2b02bff8
|
File details
Details for the file mcp_amplitude-0.0.2-py3-none-any.whl.
File metadata
- Download URL: mcp_amplitude-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fa26c59b92e62e0295e742b589a6afe97afeb5c2336a894d7297abe66733221
|
|
| MD5 |
23111ee3df4d6ad51bdf069b38b011ee
|
|
| BLAKE2b-256 |
ee7356a157b3b8329b4ae4902e0fe88f7167a5079d800be86b3b7b9c4b081c51
|