Skip to main content
Beta. MCP Connections are currently available to a limited set of customers during Beta. If you’d like to participate, reach out to your Mixpanel account team.
GitHub’s MCP server doesn’t support OAuth sign-in from Mixpanel, so you connect it with a GitHub personal access token (PAT). Mixpanel Agent can see whatever the token can see, and it only uses read tools. Before you start, make sure an admin has enabled MCP Connections for your organization.

Create a Personal Access Token

GitHub offers two kinds of personal access tokens. Fine-grained tokens are recommended because you can limit them to specific repositories and read-only permissions. Use a classic token if your GitHub organization blocks fine-grained tokens.

Add the Connection in Mixpanel

  1. Go to Settings → Personal Settings → MCP Connections.
  2. Click Add Connection and choose GitHub.
  3. Paste your token into the Authentication Token field and click Connect.
Mixpanel checks the token with GitHub before saving it. If you see “Invalid token provided”, confirm that you copied the whole token, that it hasn’t expired, and that any required organization approval or SSO authorization is complete.

Troubleshooting

GitHub shows as Disconnected

The token has expired or been revoked. Create a new token, delete the GitHub connection in Mixpanel, and add it again with the new token.

The Agent can’t find a repository

The token doesn’t have access to that repository. For a fine-grained token, add the repository under Repository access. For a classic token, check that it has the repo scope and is authorized for SSO in the repository’s organization.