# Cursor

Register the OrcaRouter MCP server in Cursor's mcp.json so its agent can find and run catalog tools from chat.

|  |  |
| --- | --- |
| Kind | ide |
| Connects through | mcp |
| Docs | <https://cursor.com/docs/context/mcp> |

## Install

1. Install Node.js 18 or later; Cursor starts the MCP server through `npx`.
2. Create `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project, with the entry below and your OrcaRouter API key.
3. Open Cursor's MCP settings and check that the orcarouter server is enabled.

## Code

### .cursor/mcp.json

```json
{
  "mcpServers": {
    "orcarouter": {
      "command": "npx",
      "args": ["-y", "@orcarouter/mcp"],
      "env": { "ORCAROUTER_API_KEY": "your-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

- [Claude Code](https://www.orcarouter.ai/tools/integrations/claude-code.md): Add the OrcaRouter MCP server to Claude Code with one command; Claude can then search the tool catalog and run tools while it works.
- [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.
- [LlamaIndex](https://www.orcarouter.ai/tools/integrations/llamaindex.md): Load the OrcaRouter MCP server's tools with McpToolSpec and use them in a LlamaIndex FunctionAgent.

---

Markdown version of https://www.orcarouter.ai/tools/integrations/cursor
