Skip to main content

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:

  1. HTTP API & Batch API: Uses the API key in the URL parameters
  2. Export API: Uses Basic Authentication with API key and Secret key
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_amplitude-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_amplitude-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_amplitude-0.0.1.tar.gz.

File metadata

  • Download URL: mcp_amplitude-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for mcp_amplitude-0.0.1.tar.gz
Algorithm Hash digest
SHA256 66b120614bdd058219ab76d04042fa1f177b2b6567ea76b22264fceb3698d563
MD5 7221c57f1424f5b138643e65d8cfeb89
BLAKE2b-256 031c33a51f29b9fb33c142cfbb734cc7c81aa4a1b5f123d7eddb310ef7f0b706

See more details on using hashes here.

File details

Details for the file mcp_amplitude-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_amplitude-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abab635d92d29682237cddac10b636cc0338e2e520d9e8e226c789177356b263
MD5 50cb98c16cf0ab9e2ad4a73848308597
BLAKE2b-256 525e333873387e8b8ae9b12ad31122ebc903211cf69ea5072cc4aff486b14562

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page