Skip to main content
MCP server CX Codex

Agent Relay — Claude Code MCP server: what it does, how to install

This MCP server lets an agent place files in an encrypted inbox and wait for human approval. Use it for reviewed deliveries and email drafts.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env ARELAY_TOKEN=<ARELAY_TOKEN> --env ARELAY_URL=<ARELAY_URL> --transport stdio agent-relay -- npx -y @arelay/cli
Open on GitHub

What Agent Relay does

Agent Relay gives Claude Code an MCP connection to a private inbox. The available tools can deliver files, list inbox sessions, and submit an email draft for review. A person approves actions that should send or charge before they proceed.

Set up encryption in the portal and create an agent token under Account → Agent tokens. The MCP process runs with npx -y @arelay/cli; a self-hosted deployment also needs ARELAY_URL. Without ARELAY_TOKEN, the server cannot access the inbox.

Encrypted deliveries are opened in the browser. Email review is different: the server handles the approved draft for delivery, and the recipient’s mail provider can access the message content.

What it helps with

  • deliver a report to an agent inbox
  • ask for approval before sending an email
  • list current inbox sessions
  • route an agent action through human review

Example prompts for the agent

  • Send report.md to the inbox with the title “Q2 revenue report”.
  • List the current inbox sessions.
  • Submit this email draft for human approval before sending it.

How to install Agent Relay

Platform CLI

claude mcp add --env ARELAY_TOKEN=<ARELAY_TOKEN> --env ARELAY_URL=<ARELAY_URL> --transport stdio agent-relay -- npx -y @arelay/cli

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Agent Relay

How do I install Agent Relay in Claude Code?

Set your token and run claude mcp add arelay -e ARELAY_TOKEN=<ARELAY_TOKEN> -- npx -y @arelay/cli.

What does Agent Relay do?

It adds MCP tools for delivering files, viewing inbox sessions, and submitting email drafts for human approval.

What is required for the MCP server to work?

You need a portal account with encryption configured and a token from Account → Agent tokens. Self-hosted setups also use ARELAY_URL.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor