# Agent Relay

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 10
- Author: mmmikael
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mmmikael/arelay
- Updated: 2026-09-02
- HTML: https://affpapa.org/en/nevibecode/mcp/agent-relay

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `ARELAY_TOKEN`, `ARELAY_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
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

### Codex

**Platform CLI**
```bash
codex mcp add agent-relay --env ARELAY_TOKEN=<ARELAY_TOKEN> --env ARELAY_URL=<ARELAY_URL> -- npx -y @arelay/cli
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agent-relay": {
            "command": "npx",
            "args": [
                "-y",
                "@arelay/cli"
            ],
            "env": {
                "ARELAY_TOKEN": "<ARELAY_TOKEN>",
                "ARELAY_URL": "<ARELAY_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agent-relay": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@arelay/cli"
            ],
            "env": {
                "ARELAY_TOKEN": "<ARELAY_TOKEN>",
                "ARELAY_URL": "<ARELAY_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e ARELAY_TOKEN=<ARELAY_TOKEN> -e ARELAY_URL=<ARELAY_URL> agent-relay npx -y @arelay/cli
```
Replace <…> with your own values

## When to use it
- 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
- 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.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
