Developer docsConnect with MCP
Guides

Connect with MCP

Connect Claude Code, Claude Desktop or Cursor to your inbox through Rookery's MCP server and an API key.

Updated View as Markdown

Rookery has an MCP server, so AI assistants can work in your inbox with the tools below. It offers the same operations as the REST API and uses the same keys and the same rate limit.

  • 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: Bearer header.

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_KEY:

claude mcp add --transport http rookery https://app.userookery.com/mcp \
  --header "Authorization: Bearer $ROOKERY_KEY"

Then ask something like "What's waiting in my Rookery inbox?" Settings → Integrations → API keys shows this command with your new key filled in.

Claude Desktop

Claude Desktop's own connectors sign in with OAuth, which Rookery doesn't offer 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_KEY}"
      ],
      "env": { "ROOKERY_KEY": "rk_xxx" }
    }
  }
}

Paste your key in place of rk_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_KEY}" }
    }
  }
}

Set ROOKERY_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 rk_… with every request.

The tools

An assistant only sees the tools its key's scopes allow.

ToolNeedsWhat it does
list_conversationsreadList conversations
get_conversationreadRead a conversation
add_notewriteAdd an internal note
set_statuswriteChange status
tag_conversationwriteTag or untag
assign_conversationwriteAssign
replydraft or sendReply to the customer
request_documentsdraft or sendAsk the customer for documents
list_mailboxesreadList mailboxes
list_tagsreadList tags
search_documentsreadSearch documents

Each tool's inputs are the same as its REST endpoint's, in the API reference.

Coming soon

Signing in with OAuth instead of a key header, for clients that can't send one, like custom connectors in Claude on the web.