How to Connect Amplitude Analytics Remote MCP to Gemini CLI
Add Amplitude's remote MCP server to Gemini CLI in about a minute.
Step-by-step
- Edit ~/.gemini/settings.jsonAdd the
mcpServersentry shown above โ Gemini CLI useshttpUrlfor Streamable HTTP endpoints andurlfor legacy SSE. - AuthorizeOn first use your client opens a Amplitude OAuth consent screen โ approve it and tools become available.
- VerifyRestart
gemini, then run/mcp listinside the CLI. Verify in the browser: pastehttps://mcp.amplitude.com/mcpinto remotemcp.net/inspector and run initialize + tools/list.
Troubleshooting OAuth / 401
- A
401 Unauthorizedon first connect is normal โ the endpoint is OAuth-protected; let Gemini CLI finish the browser consent flow. - If the consent window never opens, remove and re-add the server, then retry.
- Check the exact challenge at our OAuth debugger.
- Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"amplitude": {
"url": "https://mcp.amplitude.com/mcp"
}
}
}claude mcp add --transport http amplitude https://mcp.amplitude.com/mcp
Or add to .vscode/mcp.json:
{
"servers": {
"amplitude": {
"type": "http",
"url": "https://mcp.amplitude.com/mcp"
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://mcp.amplitude.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"amplitude": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.amplitude.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"amplitude": {
"serverUrl": "https://mcp.amplitude.com/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"amplitude": {
"url": "https://mcp.amplitude.com/mcp"
}
}
}Add to ~/.codex/config.toml โ Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.amplitude] url = "https://mcp.amplitude.com/mcp"
Add to cline_mcp_settings.json (Cline โ MCP Servers โ Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"amplitude": {
"type": "streamableHttp",
"url": "https://mcp.amplitude.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers โ httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"amplitude": {
"httpUrl": "https://mcp.amplitude.com/mcp"
}
}
}Tools exposed by Amplitude Analytics MCP (5)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| query_event_segmentation ~92 tok | ๐ข Read | Run an event segmentation query over a date range. | events*: arraystart*: stringend*: string |
| get_chart ~48 tok | ๐ข Read | Fetch a saved chart's results. | chartId*: string |
| list_dashboards ~48 tok | ๐ข Read | List dashboards in the project. | query: string |
| list_cohorts ~32 tok | ๐ข Read | List behavioral cohorts. | โ |
| query_funnel ~76 tok | ๐ข Read | Run a funnel analysis over a step sequence. | steps*: arraydays: number |
Connect Amplitude Analytics MCP to another client
Other servers for Gemini CLI
GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.
Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.
Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.
Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.
AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ connect and call tools immediately.
Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.