MCP server
77 tools over the same REST API, for any client that speaks MCP.
The MCP server is the REST API with names an agent can reach for. It runs remotely at https://mcp.sendraven.ai/mcp over Streamable HTTP, holds no database or provider credentials of its own, and can reach exactly what the credential behind it can reach. Every tool is a call to a /v1 endpoint, so the credential's scopes apply unchanged, and so do an API key's daily cap, recipient allowlist and approval hold. Signing in through OAuth grants scopes but none of those three limits.
Install
Claude Code takes one line. The first tool call opens a browser to sign in and pick a workspace.
It is also a Claude Code plugin, from the public repository's marketplace:
And a Gemini CLI extension:
Both sign in with OAuth on first use, like the line above.
Step-by-step guides for each client are at sendraven.ai/connect.
Cursor, Claude Desktop and other clients with a JSON config point at the same URL. A client that supports OAuth prompts you to authorize on first use.
Signing in, or pasting a key
initialize and tools/list are answered without credentials, so a client or registry can see what is there before anyone signs in. The first tools/call without a token returns 401 with a WWW-Authenticate header pointing at the OAuth metadata, which is what starts the sign-in flow in a client that supports one.
A client that does not, or an agent running unattended, sends an API key instead: Authorization: Bearer sk_live_… as a header on every request. Create the key in the dashboard under API keys.
Give an unattended agent an API key with a daily limit, a recipient allowlist or an approval hold, rather than signing it in through OAuth. The tools respect all three on a key, because the API underneath enforces them rather than the server. An OAuth sign-in carries none of them: a session signed in that way sends without a cap and mails any address. It cannot decide approvals, though. See Limits for agents.
Running it locally
The same server is published to npm as @sendraven/mcp for a client that launches it as a subprocess. It speaks stdio when no PORT is set and takes the key from SENDRAVEN_API_KEY; SENDRAVEN_API_URL overrides the API base.
Over stdio the key comes from the environment because there is one user per process. Over HTTP it only ever comes from the request: reading it from the environment there would hand one caller another's workspace.
Tools
Descriptions say which tool to reach for and what it costs to get wrong. A failed call returns the API's own message with its HTTP status, so "domain not verified" arrives as those words rather than a bare 422.
| Group | Tools |
|---|---|
| Send and read | send_email, send_template_email, reply_to_message, list_emails, get_email, update_email_tags, list_scheduled_emails, cancel_scheduled_email |
| Threads | list_threads, get_thread, mark_thread_handled |
| Approvals | list_pending_approvals, decide_approval |
| Sending domains | list_sending_domains, add_sending_domain, verify_sending_domain, set_utm_tags |
| Suppressions | list_suppressions, add_suppression, remove_suppression, suppress_many |
| Templates and images | list_templates, render_template, save_template, list_media, upload_media, delete_media |
| Campaigns | list_broadcasts, create_broadcast, get_broadcast, get_broadcast_metrics, preview_broadcast, send_broadcast, pick_broadcast_winner, resume_broadcast, delete_broadcast, list_broadcast_recipients |
| Automations | list_automations, get_automation, get_automation_metrics, list_automation_enrollments, create_automation, update_automation, set_automation_status, delete_automation, enroll_in_automation, emit_event |
| Topics | list_topics, save_topic, import_topic_preferences, get_email_preferences, set_email_preferences |
| Signup forms | list_forms, create_form, update_form, list_form_submissions |
| Contacts and audiences | list_audiences, create_audience, add_contact, import_contacts, get_contact, find_contact, update_contact, delete_contact, remove_from_audience, tag_contact, list_tags, list_segments, create_segment, count_segment |
| Conversions | list_conversion_goals, create_conversion_goal, get_conversion_metrics |
| Operations | get_email_metrics, list_webhooks, list_webhook_deliveries, get_usage |
upload_media hosts an image for the HTML of a template, a campaign or an automation step and returns the URL for an <img src>, served from your own tracking domain. It takes images only (PNG, JPEG, GIF or WebP up to 5 MB); a file for a recipient is an attachment on the email. See Media.
Three behaviours worth knowing
A held send is not a failure. When the key requires approval, send_email returns status: "pending_approval" with an approval_id. Every send answers with the same fields whatever happened, so read the values: skipped is false and approval_id is null on a normal send. The message is waiting in list_pending_approvals for a person; there is nothing to retry, and retrying queues a second draft. decide_approval is for carrying out a decision a person has made, because the hold is there so that an agent is not the one deciding. The API refuses it with 403 forbidden when the credential is an OAuth session, the key that drafted the message, or a key with any guardrail of its own (an approval hold, a recipient allowlist or a daily cap). Only an API key without guardrails can call it.
Out of plan is 402, not 429. A send that would cross the plan's included allowance returns 402 plan_limit_reached. It is not a rate limit, and a client that backs off and retries on 429 would retry this forever. get_usage reports the plan, what has been sent this month and what remains, so an agent can say "you are near your limit" before a batch instead of surfacing a payment error after it.
Two calls cannot be undone. send_broadcast mails an entire audience and cannot be recalled once started. Run preview_broadcast first, which returns the recipient count and whether the reputation gate will allow it. remove_suppression lets us mail an address that hard bounced or reported spam, which raises exactly the rates that gate enforces. Neither is a way to fix a failed send.
A worked example
claude-mcp-inbox triages a support inbox over this server, from Claude Code or through the Anthropic API's MCP connector: it lists threads awaiting a reply, reads each one, drafts an answer from a knowledge base and holds every reply for a person to approve, with only the tools it needs turned on.