Analytics MCP Server

The Devrev browser action destination for use with @segment/analytics-next.

Local serverstdioTypeScript

What is the Analytics MCP server?

Connect Analytics to Claude, Cursor or any other MCP client and it stops being a tab you switch to. The Devrev browser action destination for use with @segment/analytics-next. The analytics mcp server is what makes that connection.

What the server does

Action Destinations are the new way to build streaming destinations on Segment.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Note — this part of the schema is not persisted outside the code
  • Passwords — User passwords, service account passwords, or any authentication credentials
  • Tokens — Access tokens, refresh tokens, bearer tokens, OAuth tokens, or JWT tokens
  • Secrets — Client secrets, shared secrets, or any confidential authentication data
  • Testing — Refer here for more information about testing your destination actions
  • Configuring — Action destinations are configured using a single Destination setting (subscriptions) that should contain a JSON blob of all subscriptions for the

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the browser automation options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Analytics's toolset — Note, Passwords, Tokens and 3 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
Notethis part of the schema is not persisted outside the code
PasswordsUser passwords, service account passwords, or any authentication credentials
TokensAccess tokens, refresh tokens, bearer tokens, OAuth tokens, or JWT tokens
SecretsClient secrets, shared secrets, or any confidential authentication data
TestingRefer [here](./docs/testing.md) for more information about testing your destination actions.
ConfiguringAction destinations are configured using a single Destination setting (subscriptions) that should contain a JSON blob of all subscriptions for the destination. The format should look like this:

Example prompts to try

  • Use Analytics to Note.
  • Use Analytics to Passwords.
  • Use Analytics to Tokens.

Frequently asked questions

It connects Analytics to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (Note, Passwords, Tokens, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Analytics directly.