# Relay

> Relay is an open-source MCP server. MCP relay server for Claude Desktop <-> Claude Code communication. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mhcoen/mcp-relay
- **MCP Registry name:** io.github.mhcoen/mcp-relay
- **Listing updated:** 2026-11-13

## About

MCP relay server for Claude Desktop <-> Claude Code communication

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-relay -- uvx mcp-server-relay
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-relay": {
      "command": "uvx",
      "args": [
        "mcp-server-relay"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-relay": {
      "command": "uvx",
      "args": [
        "mcp-server-relay"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-relay": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-relay"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-relay": {
      "command": "uvx",
      "args": [
        "mcp-server-relay"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-relay": {
      "command": "uvx",
      "args": [
        "mcp-server-relay"
      ]
    }
  }
}
```

## FAQ

### Is Relay free?

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

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

Run this command in your terminal: claude mcp add mcp-relay -- uvx mcp-server-relay

---
Source: https://ai-powered.com/mcp/relay-6
