Hoppa till innehållet

Tools

MCP server

Sendora’s MCP server gives a coding agent, such as Claude Code, Cursor or VS Code, Sendora’s documentation and tools while it builds your integration. The agent can read the guides and the API reference, send a test mail and read what happened to it, and set up streams, webhooks and sending domains.

It runs two ways, with the same tools:

  • Locally, as npx -y @sendora/mcp, over stdio. The documentation is built into the package, so it answers offline.
  • Hosted, at https://mcp.sendora.se/mcp. You connect your app with OAuth, or it sends your key as a bearer token. Without either, https://mcp.sendora.se/docs serves the documentation.

Before you start

  • The local server needs Node 20.19 or newer. The hosted server and the Claude Desktop bundle need nothing installed.
  • For anything beyond the documentation, the agent needs a connection that you approve with OAuth, or a key. Connect with OAuth says when each fits.
  • With OAuth, Codex CLI must be 0.147.0 or later, which codex --version shows. Cursor must be up to date, since some older versions, such as 3.19.7, cannot connect.

Connect with OAuth

With OAuth, you add the hosted server to your app, then sign in to Sendora and approve the app. You need no key, so no key sits on your machine. Sendora holds the app to what you approve. This is how claude.ai and ChatGPT connect.

Use a key instead for the local server or Claude Desktop’s bundle, or for an agent that adds sending domains with the account key. Then go on to Choose a key.

Open your app’s steps:

claude.ai and Claude Desktop

On a Team or Enterprise plan, an Owner adds Sendora under Organization settings › Connectors. There the Owner selects Add, then Custom, then Web if Claude asks, and goes on from step 2. Each member then opens Customize › Connectors and starts at step 3.

  1. Open Customize › Connectors and select Add custom connector.
  2. Name it Sendora and enter https://mcp.sendora.se/mcp as the server URL. Leave the other settings as they are, and select Add.
  3. Select Connect beside Sendora. Sign in to Sendora and approve the app, as Approve the app says.
  4. In a chat, select +, then Connectors, and turn Sendora on.

The connector also works in Claude’s mobile apps.

ChatGPT
  1. In ChatGPT on the web, open Plugins, select Add, then Add custom MCP server.
  2. Name it Sendora. Under Connection, enter https://mcp.sendora.se/mcp.
  3. Choose OAuth as the authentication, with no client ID or secret. Select I understand and want to continue, then Create as a plugin.
  4. When ChatGPT asks, select Continue to Sendora. Sign in to Sendora and approve the app, as Approve the app says.
  5. In a chat, type @ and choose Sendora.
Claude Code
  1. Add Sendora to .mcp.json at your project’s root. The timeout lets send_email wait up to a minute to learn whether the message was delivered.
{
  "mcpServers": {
    "sendora": {
      "type": "http",
      "url": "https://mcp.sendora.se/mcp",
      "timeout": 90000
    }
  }
}
  1. In Claude Code, run /mcp, select sendora and authenticate. Claude Code opens your browser.
  2. Sign in to Sendora and approve the app, as Approve the app says.
VS Code
  1. Add Sendora to .vscode/mcp.json in your project, or to the file that MCP: Open User Configuration opens:
{
  "servers": {
    "sendora": {
      "type": "http",
      "url": "https://mcp.sendora.se/mcp"
    }
  }
}
  1. Run MCP: List Servers from the Command Palette, select sendora and start it. When VS Code asks to authenticate, allow it, and your browser opens.
  2. Sign in to Sendora and approve the app, as Approve the app says.
Cursor
  1. Add Sendora to ~/.cursor/mcp.json, or to .cursor/mcp.json in your project:
{
  "mcpServers": {
    "sendora": {
      "url": "https://mcp.sendora.se/mcp"
    }
  }
}
  1. Open Customize in Cursor’s sidebar, and connect Sendora’s MCP server there. Cursor opens your browser.
  2. Sign in to Sendora and approve the app, as Approve the app says.
Codex
  1. Add Sendora to ~/.codex/config.toml. The timeout lets send_email wait its full minute.
[mcp_servers.sendora]
url = "https://mcp.sendora.se/mcp"
tool_timeout_sec = 90
  1. Run codex mcp login sendora. Codex opens your browser.
  2. Sign in to Sendora and approve the app, as Approve the app says.

Approve the app

Sendora’s approval page opens in your browser, always at app.sendora.se. If you are not signed in, Sendora asks you to sign in first. The page names the app, where it comes from, such as claude.ai, and the account you connect to.

Nothing is ticked when the page opens. Tick at least one server or the account:

  • The page lists each server you may open yourself, marked live or test. Tick those the app may reach.
  • An administrator may also tick the account. The app can then read the account’s sending domains and list the servers you tick. It can never add a sending domain or delete a server.
  • The box for changes on live servers lets the app send real mail and make changes on the live servers you tick. Without it, the app only reads them.

Then approve, and your browser returns to the app. If you cancel instead, the app is told that you refused.

On each server you tick, the app gets the tools that the server’s key would, with the box for changes as its switch. If you later lose access to a server, the app loses it too. What the app reads, such as the message log, leaves Sendora, and the app’s provider handles it from then on.

The page warns you when its answer goes to a program on your own computer, as it does for Claude Code, VS Code and Codex. Approve only if you started the connection yourself just now. Cursor registers itself with Sendora, so for Cursor the page says that Sendora cannot confirm who made the app. It may also say that the answer goes to www.cursor.com, which passes it on to Cursor on your computer.

End a connection

Your connections are in the dashboard’s user menu, under Connected apps, with what each reaches and when it ends. End one there, and the app loses its access within a minute. To change what an app reaches, end its connection and connect the app again.

A connection also ends 90 days after you approve it, or after 30 days without use. Until then, the app renews its access by itself. VS Code may first ask you to click Authenticate, and then goes on without a new approval. Once a connection has ended, connect the app again.

An administrator sees every connection in the account and can end any of them. At the bottom of the same page, an administrator can also turn connected apps off for the whole account. That ends every connection, and nobody can connect an app until an administrator turns them on again. Resetting your password through the mailed link also ends your connections.

If the app cannot connect

What you seeWhyWhat to do
Cursor shows “redirect_uris must list one or more URIs, and each must have no fragment or credentials and be https, or http on localhost, 127.0.0.1 or [::1].”Some older versions of Cursor, such as 3.19.7, also offer Sendora a cursor:// address, which Sendora refusesUpdate Cursor, restart it and connect again
After you approve, the browser says “Authentication complete”, but Codex reports “failed to handle OAuth callback” and “Authorization server response missing required issuer”A bug in Codex 0.143.0 to 0.146.1Update Codex to 0.147.0 or later, then run codex mcp login sendora again

Choose a key

The MCP server lists only the tools your key allows, so the agent cannot call any other:

  • With a test server’s key (sk_test_…), the agent can do everything on that server, and no mail is delivered. Start here. A test server works before your account is approved. It takes mail as a live one does, and its simulator’s addresses act out bounces, deferrals, complaints, opens and clicks.
  • With a live server’s key (sk_…), the agent reads the server’s message log, received mail and settings. Once you turn on changes, it can also send real mail to real people and make other changes.
  • With the account key (ak_…), the agent reads the account’s servers and sending domains. With changes on, it can also add a sending domain or delete a test server, never a live one.
  • With no key, the agent reads the documentation alone.
What the tool doesNo keyTest keyLive keyAccount key
Reads the documentationyesyesyesyes
Readsnoyesyesyes
Changesnoyeswith changes onwith changes on
Shows a new key or signing secretnoyesnono
Cannot be undonenoyesnowith changes on

Cannot be undone covers revoking a key, deleting a webhook or a test server, archiving a stream, and sending or cancelling a broadcast. A new key or a webhook’s signing secret reaches the agent only on a test server. With a live key, the agent sends you to the dashboard to make one. Keys says where each key is made.

Install

Set your key as the environment variable SENDORA_API_TOKEN, from your shell profile or your secret manager. The configurations for Claude Code, Cursor and Codex read it from there. VS Code and Claude Desktop ask for the key instead and keep it in their own secret storage. Either way, no file you commit holds the key.

Open your client’s setup:

Claude Code

Add Sendora to .mcp.json at your project’s root. Claude Code fills in ${SENDORA_API_TOKEN} from its environment when it connects, so the file holds no key and you can commit it. Locally:

{
  "mcpServers": {
    "sendora": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@sendora/mcp"],
      "env": { "SENDORA_API_TOKEN": "${SENDORA_API_TOKEN}" }
    }
  }
}

Or hosted, with a timeout that lets send_email wait up to a minute to learn whether the message was delivered:

{
  "mcpServers": {
    "sendora": {
      "type": "http",
      "url": "https://mcp.sendora.se/mcp",
      "headers": { "Authorization": "Bearer ${SENDORA_API_TOKEN}" },
      "timeout": 90000
    }
  }
}

Don’t add the server with claude mcp add and the key in --header or --env. Your shell puts the key’s value in the command, and Claude Code writes it to its configuration. Without a key, one command adds the documentation:

claude mcp add --transport http sendora-docs https://mcp.sendora.se/docs
Cursor

Add to Cursor installs the local server in one click, with the key from SENDORA_API_TOKEN.

By hand, edit .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project. Cursor fills in ${env:SENDORA_API_TOKEN} from its environment. Locally:

{
  "mcpServers": {
    "sendora": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@sendora/mcp"],
      "env": { "SENDORA_API_TOKEN": "${env:SENDORA_API_TOKEN}" }
    }
  }
}

Or hosted:

{
  "mcpServers": {
    "sendora": {
      "url": "https://mcp.sendora.se/mcp",
      "headers": { "Authorization": "Bearer ${env:SENDORA_API_TOKEN}" }
    }
  }
}
VS Code

Add to VS Code installs the local server in your profile in one click.

By hand, edit .vscode/mcp.json in your project. Either way, VS Code asks for the key the first time the server starts, and keeps it in its secret storage. Locally:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "sendora-key",
      "description": "Sendora key",
      "password": true
    }
  ],
  "servers": {
    "sendora": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@sendora/mcp"],
      "env": { "SENDORA_API_TOKEN": "${input:sendora-key}" }
    }
  }
}

Or hosted:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "sendora-key",
      "description": "Sendora key",
      "password": true
    }
  ],
  "servers": {
    "sendora": {
      "type": "http",
      "url": "https://mcp.sendora.se/mcp",
      "headers": { "Authorization": "Bearer ${input:sendora-key}" }
    }
  }
}
Codex

Edit ~/.codex/config.toml. Don’t use codex mcp add --env, which writes the key’s value into the file.

Codex passes a local server a few system variables, such as PATH and HOME, and of the rest only those you name. It gives a tool a minute unless told otherwise, so both entries set tool_timeout_sec to let send_email wait its full minute. Locally:

[mcp_servers.sendora]
command = "npx"
args = ["-y", "@sendora/mcp"]
env_vars = ["SENDORA_API_TOKEN"]
tool_timeout_sec = 90

Or hosted:

[mcp_servers.sendora]
url = "https://mcp.sendora.se/mcp"
bearer_token_env_var = "SENDORA_API_TOKEN"
tool_timeout_sec = 90
Claude Desktop

Download the bundle and open it. Claude Desktop asks whether to install it, and runs it on the Node it brings.

  1. Paste your key into Sendora key, which Claude Desktop keeps in your operating system’s secure storage. Leave it empty for the documentation alone.
  2. Tick Allow changes only when you want changes on.

Each release comes with a new bundle here, which you install over the old one. To connect Claude Desktop without a key, connect with OAuth instead.

Check the connection

Ask the agent which Sendora server it is connected to. With a server’s key, it calls get_server, which returns the server’s name and mode, whether changes are on, its limits and the sending domains its mail may come from. With the account key, it calls list_servers.

What you seeWhyWhat to do
The agent has only search_docs and read_docNo key reached the serverSet SENDORA_API_TOKEN in the environment the client starts from, or enter the key in VS Code’s prompt or Claude Desktop’s Sendora key. Then start the client again
The client shows the server as failedThe key did not reach the server, or the API refused itCheck that the client has the key, and that the key is still live in the dashboard

Then give the agent a task:

  • With a test server’s key, ask: “Send a test mail to any address you like, and tell me whether it was delivered.”
  • With a live server’s key, ask: “Why did the last message to anna@example.com bounce?”
  • With no key, ask: “Add a password-reset mail to this app with @sendora/sdk.”

Turn on changes

A live server’s key and the account key list only the reading tools until you turn on changes for the connection:

  • Locally, add --allow-writes after @sendora/mcp in the arguments, or set SENDORA_ALLOW_WRITES=true in the server’s environment.
  • Hosted, send the header Sendora-Allow-Writes: true beside the key.
  • In Claude Desktop, tick Allow changes.
  • Through OAuth, tick the box for changes on live servers when you approve the app. The account stays read only.

Any value but true leaves changes off. A test server’s key needs no switch.

With changes on, the MCP server tells the agent to confirm with you before anything reaches a real person. Your client also asks before any call you have not allowed.

The switch decides which tools the MCP server lists. It does not limit the key itself. An agent that runs commands or reads files on your machine can read a key kept in its environment, and call the API with it directly. So give an agent a live key only if you would trust it with everything the key can do. VS Code’s prompt and Claude Desktop’s bundle keep the key out of your environment.

Received mail

A live server’s key lists the tools that read the mail your inbound stream receives. The sender wrote everything in that mail, and an agent reading it may also have your terminal, your files and your other MCP servers. So the tools limit what the agent sees:

  • search_inbound returns only two of the addresses the sender chose: the From address and the address the mail was sent to.
  • read_inbound_message returns the rest between two markers with a new random value each time. Before them comes a notice that everything between the markers is data from the sender, not instructions.

This lessens prompt injection without preventing it. A model can still do what a mail asks: run a command, read a file, call another server’s tool, answer the mail, or send your key somewhere. The two addresses sit outside the markers, and the sender wrote them too. The From address is wholly theirs. In the address the mail was sent to, they chose the text after + on a stream’s address at inbound.sendora.se, and the whole local part on your own domain.

  • Read what the agent proposes before you approve it.
  • Keep changes off unless the task needs them.
  • Give an agent that reads received mail no more tools than the task needs.
  • If you think a key reached someone it should not have, revoke it in the dashboard.

Tools

The table lists every tool of the MCP server. Keys says which keys list each one: test for a test server’s key, live for a live server’s and account for the account key. “With changes on” marks a tool that needs the switch.

ToolWhat it doesKeys
search_docsSearch the Sendora docsany, or none
read_docRead a Sendora documentany, or none
get_serverRead the server this key belongs totest, live
send_emailSend one emailtest, live with changes on
search_messagesSearch the message logtest, live
get_messageRead one message and its timelinetest, live
list_suppressionsList a stream's suppression listtest, live
remove_suppressionLift a suppressiontest, live with changes on
list_tracking_opt_outsList the not-tracked addressestest, live
add_tracking_opt_outAdd a not-tracked addresstest, live with changes on
remove_tracking_opt_outRemove a not-tracked addresstest, live with changes on
create_streamAdd a streamtest, live with changes on
archive_streamArchive a streamtest
send_broadcastSend a test broadcasttest
get_broadcastRead a broadcasttest, live
cancel_broadcastCancel a broadcasttest
list_webhooksList the server's webhookstest, live
list_webhook_deliveriesList a webhook's deliveriestest, live
replay_webhook_deliveryReplay a webhook deliverytest, live with changes on
create_webhookAdd a webhooktest
delete_webhookDelete a webhooktest
list_keysList the server's keystest, live
create_keyCreate a keytest
revoke_keyRevoke a keytest
search_inboundSearch received maillive
read_inbound_messageRead a received messagelive
list_inbound_domainsList the domains for receivinglive
check_inbound_domainCheck a domain for receivinglive
add_inbound_domainAdd a domain for receivinglive with changes on
list_serversList the account's serversaccount
list_domainsList the sending domainsaccount
check_domainCheck a sending domainaccount
add_domainAdd a sending domainaccount with changes on
list_tracking_domainsList the tracking domainsaccount
check_tracking_domainCheck a tracking domainaccount
add_tracking_domainAdd a tracking domainaccount with changes on
delete_test_serverDelete a test serveraccount with changes on

Screens

In a client that shows MCP Apps, such as claude.ai, ChatGPT, Claude Desktop, VS Code or Cursor, four tools also show their answer on a screen:

  • send_email and get_message show the message’s timeline: each recipient’s status, the stream, and every event with its time and the receiver’s answer.
  • add_domain and check_domain show the domain’s two DNS records, whether each checks out, and a button that checks them again.

Every other client gets the same answer as text. A screen loads nothing from anywhere else.

Documents and prompts

The documentation is built into the MCP server at each release, from the same sources as these pages:

  • the guides, as sendora://docs/…
  • the API reference, as sendora://reference/…
  • the error codes, as sendora://errors
  • the TypeScript SDK’s README and rules for agents, as sendora://sdk/readme and sendora://sdk/skill
  • the Python SDK’s, as sendora://sdk/python/readme and sendora://sdk/python/skill
  • the PHP SDK’s, as sendora://sdk/php/readme and sendora://sdk/php/skill
  • the Laravel package’s README, as sendora://sdk/laravel/readme
  • the Java SDK’s README and rules for agents, as sendora://sdk/java/readme and sendora://sdk/java/skill

sendora://index lists them all. search_docs searches every document but the rules, which an agent reads whole. read_doc reads one document whole.

The server has three prompts, which a client offers as commands:

  • set_up_sendora: install the SDK for the project’s language, keep the key in the environment, send a test through a test server and verify webhooks.
  • why_not_delivered: read a message’s timeline, the suppression list and the error codes, and explain what happened.
  • verify_webhooks: implement signature verification for the webhook endpoint and test it.

The official server

Sendora’s MCP server is @sendora/mcp on npm, the hosted server at https://mcp.sendora.se/mcp and https://mcp.sendora.se/docs, and the bundle on this site, and nothing else. The MCP Registry lists it as se.sendora/mcp, a name that only sendora.se can publish. A server under another name is not Sendora’s, and it could read every key and message it is given.