# How to connect Rivalead to Claude, Cursor and VS Code with MCP

> Set up Rivalead's MCP server in Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex or Gemini CLI and ask your AI assistant about competitors.

Source: https://rivalead.com/guides/connect-rivalead-to-claude-cursor-mcp · Updated 2026-11-25 · 4 min read

Rivalead runs a Model Context Protocol (MCP) server. Connect it once and your AI assistant can read your workspace's competitor changes, battlecards, landscape and briefing, then answer questions like 'what did Acme change on pricing this month and how should we respond?' with quoted evidence.

## Key takeaways

- The server URL is https://rivalead.com/mcp. It uses Streamable HTTP and a bearer token.
- Create a token in Rivalead under Settings → AI assistants (MCP). Tokens are read-only and scoped to one workspace.
- Every MCP client takes the same two values, the URL and the Authorization header. Only where you paste them differs.
- Revoke a token at any time from the same screen; it stops working immediately.

## 1. Create an access token

Sign in to Rivalead, open Settings, and scroll to AI assistants (MCP). Name the token after where you will use it (for example 'Claude Code on my laptop') and choose Create token.

Copy the token straight away: Rivalead only stores a hash of it, so it can't show it again. The token can read the workspace you are in when you create it, and nothing else. Anyone on the workspace, including Viewers, can create their own.

## 2. Add the server to your assistant

Pick your client below and replace YOUR_RIVALEAD_TOKEN with the token from step 1. In Rivalead's Settings the snippets fill in your token automatically.

Claude Code · Run in your terminal:

```bash
claude mcp add --transport http rivalead https://rivalead.com/mcp \
  --header "Authorization: Bearer YOUR_RIVALEAD_TOKEN"
```

Cursor · ~/.cursor/mcp.json:

```json
{
  "mcpServers": {
    "rivalead": {
      "url": "https://rivalead.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_RIVALEAD_TOKEN"
      }
    }
  }
}
```

VS Code · .vscode/mcp.json:

```json
{
  "servers": {
    "rivalead": {
      "type": "http",
      "url": "https://rivalead.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_RIVALEAD_TOKEN"
      }
    }
  }
}
```

Claude Desktop · claude_desktop_config.json (Settings → Developer → Edit config):

```json
{
  "mcpServers": {
    "rivalead": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://rivalead.com/mcp",
        "--header",
        "Authorization:${RIVALEAD_AUTH}"
      ],
      "env": {
        "RIVALEAD_AUTH": "Bearer YOUR_RIVALEAD_TOKEN"
      }
    }
  }
}
```

Windsurf · ~/.codeium/windsurf/mcp_config.json:

```json
{
  "mcpServers": {
    "rivalead": {
      "serverUrl": "https://rivalead.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_RIVALEAD_TOKEN"
      }
    }
  }
}
```

Codex CLI · ~/.codex/config.toml, then export RIVALEAD_MCP_TOKEN:

```toml
[mcp_servers.rivalead]
url = "https://rivalead.com/mcp"
bearer_token_env_var = "RIVALEAD_MCP_TOKEN"

# in your shell profile:
# export RIVALEAD_MCP_TOKEN="YOUR_RIVALEAD_TOKEN"
```

Gemini CLI · ~/.gemini/settings.json:

```json
{
  "mcpServers": {
    "rivalead": {
      "httpUrl": "https://rivalead.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_RIVALEAD_TOKEN"
      }
    }
  }
}
```

## 3. Check the connection

Restart or reload your client, then ask: 'Using Rivalead, which competitors am I tracking?' The assistant should call get_workspace_overview and list them. In Claude Code, /mcp shows the server as connected; in Cursor and VS Code it appears in the MCP or tools panel.

If you get a 401, the token is missing, mistyped, or was revoked. Check that the header reads exactly 'Authorization: Bearer ' followed by the token.

## What the assistant can do

Rivalead exposes read-only tools and three ready-made prompts:

- get_workspace_overview: your product, tracked competitors and this week's activity.
- list_changes and get_change: meaningful changes with score, 'so what', recommended action, and the exact lines added and removed.
- get_battlecard: a live sales battlecard against one competitor.
- get_landscape: pricing, plans, trials, integrations and more for every company, side by side, with quotes.
- get_briefing: the executive summary of the last two weeks.
- Prompts: weekly_competitor_brief, prep_sales_call and respond_to_pricing_change.

## Security notes

Tokens only read. They can't add competitors, change settings, send alerts or spend Research Credits. Each one belongs to one person in one workspace, and stops working if that person leaves the workspace.

Competitor pages are third-party text. Rivalead labels quoted page content as untrusted data in every response and tells the assistant never to follow instructions found in it.

## Frequently asked questions

### Does Rivalead's MCP server work with ChatGPT or claude.ai connectors?

Clients that let you set a custom Authorization header work today: Claude Code, Claude Desktop (via mcp-remote), Cursor, VS Code, Windsurf, Codex CLI and Gemini CLI. Web connectors that require an OAuth sign-in flow are not supported yet.

### Which plans include the MCP server?

Every plan, including Free. The assistant sees the same data you see in the app, with the same plan limits (for example, the Landscape preview on Free).

### Can the assistant change anything in Rivalead?

No. Every tool is read-only and marked as such, so clients can run them without asking for confirmation.

### Can I connect more than one workspace?

Yes. Create a token in each workspace and add the server twice under different names, for example rivalead-acme and rivalead-agency.
