# Connect Amplitude to Contextflo

How to find your Amplitude API credentials and connect Amplitude to Contextflo

Source: https://contextflo.com/docs/data-sources/amplitude-setup

Connect your Amplitude project to Contextflo to query product analytics — retention, funnels, events, revenue — using natural language.

## Prerequisites

- An Amplitude account with a project that has data
- Organization Settings access in Amplitude (admin or manager role)

## Step 1: Find your API Key

1. Click the **Settings** gear icon in the top-right corner of Amplitude
2. Select **Organization settings**

![Open Organization Settings](https://contextflo.com/amplitude/1_settings-amplitude.png)

3. In the left sidebar under **Connections**, click **API Keys**
4. Click **Generate API Key** to create a new key (or copy an existing one)

![Generate API Key](https://contextflo.com/amplitude/2_api-key-amplitude.png)

## Step 2: Find your Secret Key

1. In the same Organization Settings, click **Projects** in the left sidebar
2. Click on your project name

![Go to Projects](https://contextflo.com/amplitude/3_amplitude-go-to-project.png)

3. On the project details page, find **Secret Key** and click **Show**
4. Copy the secret key value

![Show Secret Key](https://contextflo.com/amplitude/4_amplitude-show-secret.png)

> The **Secret Key** is only visible to project admins. If you don't see it, ask your Amplitude admin for access.

## Step 3: Add Amplitude in Contextflo

1. In your Contextflo dashboard, go to **Data Sources** in the left sidebar
2. In the **API Connectors** section, click **+ Add a new connection**
3. Click **Amplitude**
4. Paste your **API Key** and **Secret Key** (both are encrypted at rest before being stored)
5. Click **Save**

## Step 4: Verify the connection

Reload your Claude (or other MCP client) chat and ask:

> "Am I connected to Amplitude?"

If everything is set up correctly, the LLM will confirm the Amplitude connection and list the available endpoints.

## What you can query

With Amplitude connected, you can ask questions like:

- "What's our D7 retention this month?"
- "Show me the signup to purchase funnel"
- "Which events have the highest volume?"
- "How many active users do we have right now?"
- "Look up user <jane@acme.com>"

Contextflo exposes 14 Amplitude endpoints covering event segmentation, funnels, retention, revenue, user lookup, session analytics, and more.

## Security

- **Read-only**: Contextflo only reads analytics data from Amplitude. It cannot modify your project, events, or settings.
- **Encrypted storage**: Your API Key and Secret Key are encrypted at rest using AES-256-GCM.
- **No data storage**: Query results pass through to your MCP client and are not stored by Contextflo.

## Troubleshooting

### "401 Unauthorized" errors

Your API Key or Secret Key is incorrect. Double-check both values in Amplitude's Organization Settings. Make sure the API Key and Secret Key are from the same project.

### No events showing up

Your Amplitude project may not have any tracked events yet. Verify in the Amplitude UI that your project has event data before querying through Contextflo.

## Next Steps

- [Go back to Connecting Data Sources](https://contextflo.com/docs/data-sources/connecting.md)
