Connect with MCP
Connect Claude Code, Claude Desktop or Cursor to your inbox through Rookery's MCP server and an API key.
Rookery has an MCP server, so AI assistants can work in your inbox with the tools below. It offers the REST API's operations as tools (all but GET /me and POST /sandbox/inbound), and uses the same keys and the same rate limit. A test key works too, on the sandbox.
- Address:
https://app.userookery.com/mcp - Transport: Streamable HTTP. Each request gets a JSON answer; there are no sessions.
- Sign-in: an API key in the
Authorization: Bearerheader.
Start with a key that has Read and Draft replies, so a person approves every reply. See Draft, don't send.
Claude Code
Run this in your terminal, with your key in ROOKERY_API_KEY:
claude mcp add --transport http rookery https://app.userookery.com/mcp \
--header "Authorization: Bearer $ROOKERY_API_KEY"
Then ask something like "What's waiting in my Rookery inbox?" Settings → Developers → API keys shows this command too. It reads the key from ROOKERY_API_KEY, so the key stays out of your shell history.
Claude Desktop
Claude Desktop's own connectors sign in with OAuth, which Rookery's MCP server doesn't support yet. Until it does, connect through the mcp-remote bridge, which sends the header for you. Add this to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude:
{
"mcpServers": {
"rookery": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://app.userookery.com/mcp",
"--header", "Authorization: Bearer ${ROOKERY_API_KEY}"
],
"env": { "ROOKERY_API_KEY": "rookery_live_xxx" }
}
}
}
Paste your key in place of rookery_live_xxx. You need Node.js installed for npx.
Cursor
Add Rookery to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"rookery": {
"url": "https://app.userookery.com/mcp",
"headers": { "Authorization": "Bearer ${env:ROOKERY_API_KEY}" }
}
}
}
Set ROOKERY_API_KEY in the environment Cursor starts from, then turn the server on in Cursor Settings → MCP.
Other clients
Point any MCP client that speaks Streamable HTTP at https://app.userookery.com/mcp, and send Authorization: Bearer rookery_… with every request.
The tools
An assistant only sees the tools its key's scopes allow.
| Tool | Needs | What it does |
|---|---|---|
list_conversations | read | List conversations |
get_conversation | read | Read a conversation |
add_note | write | Add an internal note |
set_status | write | Change status |
tag_conversation | write | Tag or untag |
assign_conversation | write | Assign |
set_priority | write | Set priority |
reply | draft or send | Reply |
request_documents | draft or send | Ask for documents |
approve_draft | approve | Approve a draft |
list_mailboxes | read | List mailboxes |
list_groups | read | List groups |
list_tags | read | List tags |
search_documents | read | Search documents |
record_sent | record | Record what your app sent |
Each tool carries MCP's hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) for the worst it can do, so your client can ask you before a call that matters. The reads are read-only. reply, request_documents and approve_draft are destructive and open-world, because they can email someone outside your team; reply and request_documents are marked that way even though they draft unless you pass send: true. Tools that change what's already there (status, tags, who has it, priority, record_sent's outline) are destructive too, since MCP counts anything more than adding, but they stay inside your workspace. add_note only adds. Hints help your client decide when to ask; what a key may do is set by its scopes.
A tool answers with the same JSON as its REST endpoint, as text and as structuredContent. If a tool fails in a way the assistant can fix (a missing scope, an id that isn't there, a bad field), it gets a tool error it can read: isError: true and the REST API's error body, { "error": { "code", "message", "param", "request_id" } }, as text and as structuredContent. A missing or wrong key is an HTTP 401, and going over the rate limit an HTTP 429 with Retry-After, both in the same error shape. Every answer has a Request-Id header. A batch holds at most 10 calls (more is an HTTP 400 with JSON-RPC error -32600), and every call in it counts against the limit: a call past it comes back with JSON-RPC error -32029 while the rest of the batch is answered. Browsers can't call the server (it refuses requests with a different Origin), and it answers only POST.
Each tool's inputs are the same as its REST endpoint's, in the API reference.
Coming later
Signing in with OAuth instead of a key header, for clients that can't send one, like custom connectors in Claude on the web.