How to Set Up RudderStack MCP

Set up your AI assistant to connect to RudderStack MCP for pipeline debugging and management.

This guide covers the steps to connect your AI assistant to RudderStack MCP for pipeline debugging and management.

Client setup overview

RudderStack MCP is a hosted remote server that uses Streamable HTTP at https://mcp.rudderstack.com/mcp. The server uses OAuth 2.0 with PKCE and dynamic client registration, so don’t add a RudderStack access token, client secret, or other static credential to your MCP client configuration.

Each section below notes whether the configuration is global (available across all your projects) or project-scoped. Refer to your MCP client’s documentation to change the scope.

Prerequisites

  • Sign up for an active RudderStack account.
  • Install an MCP-compatible client, such as Claude, Codex, Cursor, or VS Code with GitHub Copilot.

Claude.ai

  1. Navigate to claude.ai/settings > Connectors > Add custom connector.
  2. Enter RudderStack as the connector name and https://mcp.rudderstack.com/mcp as the remote MCP server URL.
  3. Select Add and complete RudderStack authorization when prompted.

Claude Code

Add RudderStack MCP to the current project:

bash
claude mcp add --transport http rudderstack https://mcp.rudderstack.com/mcp

To make the server available to you across all projects, use user scope:

bash
claude mcp add --transport http --scope user rudderstack https://mcp.rudderstack.com/mcp

In an active Claude Code session, run /mcp, select rudderstack, and choose Authenticate if prompted. Then, complete the OAuth flow in your browser.

Claude Desktop

  1. Navigate to Settings > Connectors > Add custom connector.
  2. Enter RudderStack as the connector name and https://mcp.rudderstack.com/mcp as the remote MCP server URL.
  3. Select Add and complete RudderStack authorization when prompted.

Codex

Add RudderStack MCP as a global Streamable HTTP server:

bash
codex mcp add rudderstack --url https://mcp.rudderstack.com/mcp

If Codex doesn’t start the OAuth flow automatically, run:

bash
codex mcp login rudderstack

Then, complete the OAuth flow in your browser.

Alternatively, add the following configuration to ~/.codex/config.toml before running the login command:

toml
[mcp_servers.rudderstack]
url = "https://mcp.rudderstack.com/mcp"

Cursor

Add the following configuration to your global ~/.cursor/mcp.json file:

json
{
  "mcpServers": {
    "rudderstack": {
      "url": "https://mcp.rudderstack.com/mcp"
    }
  }
}

Open Cursor Settings > Tools & Integrations > MCP Tools, enable rudderstack, and select Connect or Login if prompted. Then, complete the OAuth flow in your browser.

To share the configuration with a project instead, add the same configuration to .cursor/mcp.json in the project root.

Visual Studio Code (GitHub Copilot)

Add the following configuration to .vscode/mcp.json in your project root:

json
{
  "servers": {
    "rudderstack": {
      "type": "http",
      "url": "https://mcp.rudderstack.com/mcp"
    }
  }
}

This is the VS Code-specific format. VS Code now prefers the portable .mcp.json format at your workspace root, which uses a top-level mcpServers object instead.

Save the file and select Start in the CodeLens above the server. If Auth appears, select it and complete the OAuth flow in your browser.

This configuration is project-scoped. For a personal configuration available across projects:

  1. Run MCP: Add Server.
  2. Select HTTP (HTTP or Server-Sent Events).
  3. Enter https://mcp.rudderstack.com/mcp.
  4. Enter rudderstack as the server ID.
  5. Select Copilot Global to make the server available across all your projects.

Other MCP clients

For any client that supports remote MCP servers:

  1. Add a remote server named rudderstack.
  2. Select Streamable HTTP as the transport, if the client asks for one.
  3. Enter https://mcp.rudderstack.com/mcp as the server URL.
  4. Connect to the server and complete the OAuth flow in your browser.

Configuration field names vary by client. You only need the hosted server URL. Don’t configure a local command or static credentials.

Authentication

Your client starts the OAuth flow on the first connection, or when you select its authentication action. Complete authorization in the browser window that opens, or open the authorization URL the client shows. The server accesses only the workspaces and resources available to your RudderStack user.

Compatible clients store and refresh OAuth credentials automatically. You may need to authenticate again if authorization is revoked or the refresh token expires.

Verify your connection

Ask your AI assistant:

“Give me an overview of my RudderStack workspace.”

You should see your sources, destinations, and connections listed.

Troubleshooting

Issue
Solution
OAuth login window doesn’t openStart authentication from the client: use /mcp in Claude Code, codex mcp login rudderstack in Codex, Connect or Login in Cursor, or Auth in VS Code. If the client shows an authorization URL instead of opening a browser, open the URL manually.
Tools not showing up
  • Restart your MCP client after adding the configuration.
  • Verify the JSON or TOML syntax.
  • Confirm that your plan, workspace permissions, and enabled products include the expected tools.
“Workspace not found” errorAsk “Show me my available workspaces” and switch to the correct workspace.
Connection drops or session errorsRestart the MCP client to establish a fresh session.

See more

Questions? Let's figure it out together.

Join the RudderStack Slack community to connect with other users, customers, and the RudderStack team — or reach out for direct support.