# Claude Code

Add the OrcaRouter MCP server to Claude Code with one command; Claude can then search the tool catalog and run tools while it works.

|  |  |
| --- | --- |
| Kind | agent |
| Connects through | mcp |
| Docs | <https://code.claude.com/docs/en/mcp> |

## Install

1. Install Node.js 18 or later; Claude Code starts the MCP server through `npx`.
2. Set `ORCAROUTER_API_KEY` to an API key from your OrcaRouter console.
3. Add the server with the command below, or share it with your team through a project `.mcp.json`.

## Code

### Add the server

```shell
claude mcp add --transport stdio orcarouter --env ORCAROUTER_API_KEY=$ORCAROUTER_API_KEY -- npx -y @orcarouter/mcp
claude mcp list
```

### Project .mcp.json

```json
{
  "mcpServers": {
    "orcarouter": {
      "command": "npx",
      "args": ["-y", "@orcarouter/mcp"],
      "env": { "ORCAROUTER_API_KEY": "${ORCAROUTER_API_KEY}" }
    }
  }
}
```

## Recipes

- [Track competitor TikTok accounts](https://www.orcarouter.ai/tools/recipes/track-competitor-tiktok-accounts.md): Pull each competitor's TikTok profile, find its latest videos and read what viewers say, in three tool calls an agent can repeat every week.
- [Monitor brand mentions on the web and TikTok](https://www.orcarouter.ai/tools/recipes/monitor-brand-mentions.md): Search the web and TikTok for your brand, then read the comments under the posts that mention it: a daily brand check an agent can run on its own.
- [Enrich a lead list](https://www.orcarouter.ai/tools/recipes/enrich-a-lead-list.md): Turn a list of company domains into firmographics, a contact's work email and a recent news hook, with one API key.

## Related integrations

- [Cursor](https://www.orcarouter.ai/tools/integrations/cursor.md): Register the OrcaRouter MCP server in Cursor's mcp.json so its agent can find and run catalog tools from chat.
- [Mastra](https://www.orcarouter.ai/tools/integrations/mastra.md): Connect a Mastra agent to the OrcaRouter MCP server with MCPClient, so it can search the tool catalog and run what it finds.
- [CrewAI](https://www.orcarouter.ai/tools/integrations/crewai.md): Give a CrewAI agent the OrcaRouter tool catalog through MCPServerAdapter, so it can find and run tools while it works on a task.

---

Markdown version of https://www.orcarouter.ai/tools/integrations/claude-code
