# Agent Relay

> Agent Relay is an open-source MCP server. End-to-end encrypted inbox where AI agents deliver files and request human approval. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://arelay.app
- **Repository:** https://github.com/mmmikael/arelay
- **MCP Registry name:** io.github.mmmikael/arelay
- **Listing updated:** 2026-11-13

## About

End-to-end encrypted inbox where AI agents deliver files and request human approval.

## Install

### Claude Code (Terminal)

```sh
claude mcp add arelay --env ARELAY_TOKEN='<ARELAY_TOKEN>' -- npx -y @arelay/cli
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "arelay": {
      "command": "npx",
      "args": [
        "-y",
        "@arelay/cli"
      ],
      "env": {
        "ARELAY_TOKEN": "<ARELAY_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "arelay": {
      "command": "npx",
      "args": [
        "-y",
        "@arelay/cli"
      ],
      "env": {
        "ARELAY_TOKEN": "<ARELAY_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "arelay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@arelay/cli"
      ],
      "env": {
        "ARELAY_TOKEN": "<ARELAY_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "arelay": {
      "command": "npx",
      "args": [
        "-y",
        "@arelay/cli"
      ],
      "env": {
        "ARELAY_TOKEN": "<ARELAY_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "arelay": {
      "command": "npx",
      "args": [
        "-y",
        "@arelay/cli"
      ],
      "env": {
        "ARELAY_TOKEN": "<ARELAY_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Agent Relay free?

Yes. Agent Relay is open source, so you can use and self-host it for free.

### How do I add Agent Relay to Claude Code?

Run this command in your terminal: claude mcp add arelay --env ARELAY_TOKEN='<ARELAY_TOKEN>' -- npx -y @arelay/cli

---
Source: https://ai-powered.com/mcp/agent-relay-2
