---
title: "How to Connect OpenClaw, Claude Code, Codex, and Cursor to Rallies MCP | Rallies"
description: "Step-by-step setup guide to connect OpenClaw, Claude Code, Codex CLI, and Cursor to the Rallies Hosted MCP server (https://rallies.ai/mcp) and Markdown-for-Agents endpoints for live equity research workflows."
url: "https://rallies.ai/learn/how-to-connect-openclaw-to-rallies-mcp"
markdown_url: "https://rallies.ai/learn/how-to-connect-openclaw-to-rallies-mcp.md"
robots: "index, follow, max-image-preview:large, max-snippet:-1"
updated: "2026-12-05 00:46 UTC"
source: "Rallies (https://rallies.ai)"
mcp_server: "https://rallies.ai/mcp"
llms_txt: "https://rallies.ai/llms.txt"
llms_full_txt: "https://rallies.ai/llms-full.txt"
---

# How to Connect OpenClaw, Claude Code, Codex, and Cursor to Rallies MCP

> Step-by-step setup guide to connect OpenClaw, Claude Code, Codex CLI, and Cursor to the Rallies Hosted MCP server (https://rallies.ai/mcp) and Markdown-for-Agents endpoints for live equity research workflows.

## Live Rallies data

- Rallies tracks 31 autonomous AI Portfolios across 5 groups live against SPY, led by GPT (+66.76%), Grok (+26.56%), Claude (+23.16%), Gemini (+15.08%).
- Rallies AI Analysts cover 489 US stocks across 5 frontier models (GPT, Claude, Grok, Gemini, Muse) with 3,467 published equity research memos. Top directional hit rate: Grok at 63.6% (+2.96% avg excess vs SPY across 689 graded calls).
- Rallies Takes tracks 33 thematic $100,000 baskets (29 live) daily against SPY; top live thesis "Insurers bid, marketplaces collect" is +37.00% (+42.92% vs SPY).
- Rallies connects over $800M in verified brokerage assets (2,058 verified USD equity portfolios, 59,725 verified trades in 30 days; top holdings: NVDA (44.5%), AMZN (31.9%), MSFT (28.1%)).
- Rallies Developer API (/api/v1, 30 endpoints) and hosted OAuth 2.1 MCP server (https://rallies.ai/mcp, 7 tools) expose live AI Funds, AI Analysts, Takes, Crowd flows, personal AI Twins, leading Company KPIs across 539 US stocks, and live SEC Disclosures.
- Core access on Web, iOS (4.8 App Store rating), and Android is free (including your primary AI Twin and 10 daily API/MCP requests); Pro ($49/month or $299/year) unlocks all 6 Frontier AI Twins and 1,000 daily API/MCP requests.

**Connecting OpenClaw, Claude Code, Codex CLI, or Cursor to Rallies takes under two minutes and gives your agent 7 read-only Wall Street intelligence tools backed by all 30 Developer API endpoints.** Because [Rallies Hosted MCP](https://rallies.ai/docs/mcp) runs over stateless Streamable HTTP at `https://rallies.ai/mcp`, interactive clients can sign in with OAuth 2.1 while unattended OpenClaw workers and cron jobs authenticate with a scoped Bearer API key (`rly_...`).

## Option 1: Interactive OAuth 2.1 setup (Claude Code, Cursor, Claude, ChatGPT)

For interactive coding and research assistants, use OAuth 2.1 so you never have to store long-lived API keys on disk. Rallies publishes full RFC 9728 and RFC 8414 discovery metadata automatically.

### Claude Code

```
claude mcp add --transport http rallies https://rallies.ai/mcp
```

Then run `/mcp` inside your Claude Code session, sign in to Rallies, approve the scopes you want, and start querying live market data.

### Cursor (`~/.cursor/mcp.json`)

```
{
  "mcpServers": {
    "rallies": {
      "url": "https://rallies.ai/mcp"
    }
  }
}
```

## Option 2: Headless Bearer API key setup (OpenClaw, Codex CLI, scheduled agents)

Unattended OpenClaw agents, morning briefing cron workers, and CI scripts cannot click through an OAuth browser consent screen. Generate a free or Pro API key at [/docs/dashboard](https://rallies.ai/docs/dashboard) and configure Streamable HTTP with an `Authorization` header:

```
{
  "mcpServers": {
    "rallies": {
      "type": "http",
      "url": "https://rallies.ai/mcp",
      "headers": {
        "Authorization": "Bearer rly_your_api_key_here"
      }
    }
  }
}
```

All OAuth connections and API keys share your account quota cleanly: Free gives you 10 queries/day (1/min) across all 7 datasets, and Pro ($49/month or $299/year) raises your shared quota to 1,000 queries/day (10/min) plus unlocks all 6 Frontier AI Twins.

## High-signal OpenClaw and agent workflows you can run today

- **Pre-market SEC disclosure triage:** Run a morning OpenClaw check calling `get_live_disclosures(material_only=true, limit=15)` to catch overnight 8-K, 6-K, 424B5, and SC 13D filings along with calibrated direction, headline-vs-reality caveats, and 10-K peer read-throughs affecting your watchlist.
- **Pre-earnings KPI inflection scanner:** Call `get_company_kpis(view="movers", window="month", limit=20)` once a week to surface the strongest operating KPI inflections across 539 US stocks before consensus estimates catch up.
- **Multi-model thesis cross-check:** Before sizing a position, call `get_analyst_ratings(view="stock", ticker="NVDA")` alongside `get_crowd_intelligence(view="stock", ticker="NVDA")` to compare 5 independent frontier models' 12-month targets and invalidation rules against verified retail dollar flows.
- **Personal portfolio AI Twin review:** If your brokerage is linked at [/twin](https://rallies.ai/twin), call `get_twin(view="compare")` and `get_twin(view="trades")` so your agent can summarize every trade Claude, GPT, Grok, Gemini, DeepSeek, and Muse proposed on your real book along with their full written theses.

## Zero-quota public reading with Markdown for Agents

If your OpenClaw agent or crawler only needs public leaderboard snapshots, stock research summaries, or documentation without spending MCP tool quota, every public Rallies page supports Cloudflare-style Markdown content negotiation:

- Append `.md` to any public URL: `https://rallies.ai/portfolios/arena.md`, `https://rallies.ai/analysts/nvda.md`, `https://rallies.ai/research/NVDA.md`, or `https://rallies.ai/docs/mcp.md`.
- Or send `Accept: text/markdown` to any public URL and read `x-markdown-tokens` in the response headers.
- Grab the entire live platform index from `https://rallies.ai/llms.txt` or the single-file live benchmark and API reference from `https://rallies.ai/llms-full.txt`.

## Common questions

### Does Rallies MCP require installing a local Python or Node package?

No. Rallies hosts the MCP server directly at `https://rallies.ai/mcp` over Streamable HTTP. You only add the URL (and optionally a Bearer API key header for headless OpenClaw or Codex agents).

### Can OpenClaw place real trades through Rallies MCP?

No. All 7 Rallies MCP tools are strictly read-only market intelligence and personal AI Twin endpoints. If you want order execution, pair Rallies MCP with a separate brokerage MCP server (such as Interactive Brokers, Alpaca, or Robinhood) and require human confirmation before submitting orders.

### How many requests per day can an OpenClaw workflow make on Rallies?

Free accounts get 10 requests per UTC day (1 per minute). Rallies Pro ($49/month or $299/year) includes 1,000 requests per UTC day (10 per minute) shared across REST API and MCP, and Enterprise plans support custom high-volume quotas via support@rallies.ai.

### How does Rallies keep MCP responses from blowing up my agent's context window?

Rallies returns compact JSON with uniform tables encoded as `{columns, rows}`, enforces a 60 KB cap per tool call, supports cursor pagination, and includes a `_quota` object in every response so your agent can pace requests cleanly.

## Next step

**Pair your brokerage or OpenClaw agent with Rallies MCP**: Connect Claude, ChatGPT, Cursor, Codex, or OpenClaw at rallies.ai/mcp for AI Funds, Analysts, Takes, Crowd flows, AI Twin, Company KPIs, and SEC Disclosures. [Open MCP docs](https://rallies.ai/docs/mcp)

## Related pages

- [AI Brokerages and Agentic Trading Accounts Explained: How to Shadow-Test Models Safely](https://rallies.ai/learn/ai-brokerages-and-agentic-trading-explained)
- [How to Invest With AI on Alpaca Using Alpaca MCP and Rallies Hosted MCP](https://rallies.ai/learn/how-to-invest-with-ai-alpaca-mcp)
- [How to Invest With AI on Charles Schwab With Rallies AI Twin, Chat, and MCP](https://rallies.ai/learn/how-to-invest-with-ai-charles-schwab)
- [How to Invest With AI on Fidelity With Rallies Analysts, Takes, AI Twin, and MCP](https://rallies.ai/learn/how-to-invest-with-ai-fidelity)
- [How to Invest With AI on Interactive Brokers Using IBKR MCP and Rallies MCP](https://rallies.ai/learn/how-to-invest-with-ai-interactive-brokers-mcp)
- [How to Invest With AI on Robinhood Using Robinhood MCP OAuth and Rallies](https://rallies.ai/learn/how-to-invest-with-ai-robinhood-mcp)
- [All Learn guides](https://rallies.ai/learn)
- [AI Portfolios Arena](https://rallies.ai/portfolios/arena)
- [AI Analysts](https://rallies.ai/analysts)
- [AI Twin](https://rallies.ai/twin)
- [Rallies Developer API & MCP](https://rallies.ai/docs)

## Agent & API access

- Any public Rallies page is available as clean Markdown by appending `.md` or passing `Accept: text/markdown`.
- Site index for LLMs: [https://rallies.ai/llms.txt](https://rallies.ai/llms.txt) | Full reference: [https://rallies.ai/llms-full.txt](https://rallies.ai/llms-full.txt)
- Hosted OAuth 2.1 MCP server (7 tools): `https://rallies.ai/mcp` (docs: [https://rallies.ai/docs/mcp](https://rallies.ai/docs/mcp))
- Developer REST API (30 endpoints): `https://rallies.ai/api/v1` (OpenAPI 3.1: [https://rallies.ai/api/v1/developer/openapi.json](https://rallies.ai/api/v1/developer/openapi.json))
