Ravn in Claude Code, one command
Run claude mcp add --transport http ravn https://api.askravn.com/mcp, then type /mcp inside Claude Code and choose Authenticate. Claude Code can then call every Ravn tool, or drive the CLI to enrich whole CSV files.
Connect the MCP server
- / 01
Add the server
In your terminal run
claude mcp add --transport http ravn https://api.askravn.com/mcp. Add--scope userif you want it in every project, not just the current one. - / 02
Authenticate
Start Claude Code, type
/mcp, pick ravn and choose Authenticate. A browser tab asks for your email code; click Allow and return to the terminal. - / 03
Or use a key instead of OAuth
On a server or in CI there is no browser. Add the server with a header instead (see the code below). Keep the key in an environment variable, never in a committed file.
- / 04
Install the skill (optional)
Run
npx ravn skill install. It writes~/.claude/skills/ravn/SKILL.md, which teaches Claude Code the CLI so it can process files withnpx ravn enrichrather than one call at a time. - / 05
Test it
Ask Claude Code: “Use Ravn to check my account.” It should call
get_accountand print your plan.
Both ways to connect
OAuth suits your laptop. The header form suits headless machines. Both reach the same tools.
# Interactive: sign in with your email code via /mcp claude mcp add --transport http ravn https://api.askravn.com/mcp --scope user # Headless: pass your API key as a header export RAVN_API_KEY=rw_live_… claude mcp add --transport http ravn https://api.askravn.com/mcp --scope user \ --header "Authorization: Bearer $RAVN_API_KEY" # Confirm it is registered claude mcp list # Optional: teach Claude Code the CLI npx ravn skill install
What to ask Claude Code
- / 01
Enrich a file in the repo
“Find work emails for everyone in data/leads.csv using the Name and Website columns. Dry-run first.” With the skill installed Claude Code runs
npx ravn enrichwith--dry-run, shows you the cost, then runs it. See the CSV guide. - / 02
Validate signup data in tests
Ask it to write a fixture check that calls
validate_emailon seed addresses and fails oninvalid. It can read the tool schemas fromGET /v1/tools. - / 03
Build an integration
Ask it to wire Ravn into your app. Point it at the error reference so it handles 403 and 429 properly, or start from the JavaScript guide.
Should I use the MCP server or the CLI from Claude Code?
Use MCP for single questions (“is this address good?”). Use the CLI for files, because enrich saves progress every 25 rows and resumes, which a long chain of tool calls cannot. The skill lets Claude Code choose.
Where does Claude Code store the API key?
With --header, the value is stored in your Claude Code MCP config for the scope you chose. With OAuth there is no key to store in your project. Never use project scope with a header key in a repo others can read.
The /mcp menu shows ravn as failed. What now?
Check the URL ends in /mcp and the transport is http. If you used a header, a 401 means the key is wrong or revoked; run npx ravn whoami to test the key on its own.
More in integrations
Every page uses the same account, plan and tools. See pricing →