Install
$ agentstack add mcp-moonbirdai-amplitude-mcp-server ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Amplitude MCP Server
A Model Context Protocol (MCP) server for integrating Amplitude analytics into AI workflows. This server allows AI assistants like Claude to track events, page views, user signups, set user properties, and track revenue in Amplitude.
Version 1.0.1 Note: Tool names now include the amplitude_ prefix to prevent namespace collisions with other analytics MCP servers.
Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Detailed Usage](#detailed-usage)
- [With Claude Desktop](#with-claude-desktop)
- [With Other MCP Clients](#with-other-mcp-clients)
- [Tool Reference](#tool-reference)
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [Security Notes](#security-notes)
- [Contributing](#contributing)
- [License](#license)
Features
- Track custom events in Amplitude
- Track page views with properties
- Track user signups and create user profiles
- Update existing user properties
- Track revenue and purchases
- Simple integration with Claude Desktop and other MCP clients
Installation
Prerequisites
- Node.js 16 or higher
- An Amplitude API key (get one by signing up at Amplitude)
NPM Installation (Recommended)
# Install globally
npm install -g amplitude-mcp-server
# Or use directly with npx
npx amplitude-mcp-server --api-key YOUR_AMPLITUDE_API_KEY
Manual Installation
# Clone the repository
git clone https://github.com/ciaraadkins/amplitude-mcp-server.git
cd amplitude-mcp-server
# Install dependencies
npm install
# Run the server
node index.js --api-key YOUR_AMPLITUDE_API_KEY
Quick Start
To start using the Amplitude MCP server with Claude Desktop:
- Make sure Claude Desktop is installed on your machine (download from claude.ai/download)
- Create or edit the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%AppData%\Claude\claude_desktop_config.json
- Add the Amplitude MCP server configuration:
{
"mcpServers": {
"amplitude-analytics": {
"command": "npx",
"args": [
"-y",
"amplitude-mcp-server",
"--api-key",
"YOUR_AMPLITUDE_API_KEY"
]
}
}
}
- Restart Claude Desktop and start tracking analytics!
Detailed Usage
With Claude Desktop
After setting up the configuration file as shown in the Quick Start section, you can use the Amplitude analytics capabilities directly in your conversations with Claude.
Examples of prompts you can use:
- "Track a custom event in Amplitude named 'document_generated' for user 'user123'"
- "Track a page view for the pricing page in Amplitude"
- "Create a new user profile in Amplitude for John Doe with email john@example.com"
- "Update user profile information in Amplitude for user 'user123'"
- "Track a purchase of Product X for $49.99"
Claude will use the appropriate Amplitude MCP tool based on your request.
With Other MCP Clients
This server uses the standard Model Context Protocol and can be integrated with any MCP client:
- Start the server:
``bash npx amplitude-mcp-server --api-key YOUR_AMPLITUDE_API_KEY ``
- Connect your MCP client to the server using stdio transport
- The client can discover and use the available tools (trackevent, trackpageview, tracksignup, setuserproperties, trackrevenue)
Tool Reference
The Amplitude MCP server provides the following tools:
amplitudetrackevent
Tracks a custom event in Amplitude.
Parameters:
event_name(string, required): The name of the event to trackuser_id(string, optional): User identifierdevice_id(string, optional): Device identifierproperties(object, optional): Additional properties to track with the eventuser_properties(object, optional): User properties to update with this event
Note: Either user_id or device_id must be provided.
Example:
{
"event_name": "button_clicked",
"user_id": "user123",
"properties": {
"button_id": "submit_form",
"page": "checkout"
},
"user_properties": {
"last_action": "form_submit"
}
}
amplitudetrackpageview
Tracks a page view event in Amplitude.
Parameters:
page_name(string, required): The name of the page vieweduser_id(string, optional): User identifierdevice_id(string, optional): Device identifierproperties(object, optional): Additional properties to track with the event
Note: Either user_id or device_id must be provided.
Example:
{
"page_name": "homepage",
"user_id": "user123",
"properties": {
"referrer": "google.com",
"duration": 120
}
}
amplitudetracksignup
Tracks a signup event and creates a user profile in Amplitude.
Parameters:
user_name(string, required): User's full nameemail(string, required): User's email addressplan(string, optional): Signup plan. Defaults to 'free'
Example:
{
"user_name": "John Doe",
"email": "john@example.com",
"plan": "premium"
}
amplitudesetuser_properties
Updates a user's profile properties in Amplitude.
Parameters:
user_id(string, required): User identifierproperties(object, required): Profile properties to set
Example:
{
"user_id": "user123",
"properties": {
"name": "John Doe",
"email": "john@example.com",
"plan": "premium",
"company": "Acme Inc"
}
}
amplitudetrackrevenue
Tracks a revenue event in Amplitude.
Parameters:
user_id(string, required): User identifierproduct_id(string, required): Identifier for the product purchasedprice(number, required): Price of the item purchasedquantity(number, optional): Quantity of items purchased. Defaults to 1revenue_type(string, optional): Type of revenue (e.g., 'purchase', 'refund', 'subscription')
Example:
{
"user_id": "user123",
"product_id": "premium_plan",
"price": 49.99,
"quantity": 1,
"revenue_type": "subscription"
}
Examples
Here are some practical examples of using the Amplitude MCP server with Claude:
Tracking a Button Click
You: Can you track an event in Amplitude when a user clicks the submit button?
Claude: I'll track that event for you. Let me use the Amplitude analytics tool.
[Claude uses the amplitude_track_event tool with appropriate parameters]
Claude: I've successfully tracked the 'button_clicked' event in Amplitude with the properties you specified.
Creating a User Profile
You: Create a new user profile in Amplitude for Sarah Johnson who signed up with sarah@example.com on the premium plan.
Claude: I'll create that user profile in Amplitude.
[Claude uses the amplitude_track_signup tool with appropriate parameters]
Claude: I've successfully tracked the signup for Sarah Johnson and created a profile in Amplitude with the premium plan.
Tracking Revenue
You: Track a purchase of our premium plan for $99.99 by user12345.
Claude: I'll track that revenue event in Amplitude.
[Claude uses the amplitude_track_revenue tool with appropriate parameters]
Claude: I've successfully tracked revenue of $99.99 for the premium plan purchase by user12345.
Troubleshooting
Common Issues
- Server not starting:
- Ensure you've provided a valid Amplitude API key
- Check that Node.js is installed and is version 16 or higher
- Claude Desktop not showing Amplitude tools:
- Verify your claudedesktopconfig.json file syntax
- Make sure you've restarted Claude Desktop after editing the config
- Check that the path to the server is correct
- Events not appearing in Amplitude:
- Verify your Amplitude API key is correct
- Check your Amplitude project settings to ensure data is being received
- Events may take a few minutes to appear in the Amplitude interface
Debug Mode
To run the server in debug mode for more verbose logging:
npx amplitude-mcp-server --api-key YOUR_AMPLITUDE_API_KEY --debug
Security Notes
- Your Amplitude API key is stored in the Claude Desktop configuration file. Ensure this file has appropriate permissions
- Consider using environment variables for sensitive tokens in production environments
- This server does not implement rate limiting - consider adding additional security measures for production use
- Events are sent directly to Amplitude's API - review Amplitude's privacy policy for data handling practices
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: moonbirdai
- Source: moonbirdai/amplitude-mcp-server
- License: MIT
- Homepage: https://www.moonbird.ai/mcp-servers/product-analytics
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.