MCP Relay
Relay is a simple tool for transferring information such as files, code, and data between Claude Desktop and Claude Code, maintaining their independent contexts and enabling collaboration through a user - controlled retrieval mechanism.
2.5 points
7.4K

What is Relay?

Relay is a communication bridge connecting Claude Desktop and Claude Code. It allows you to transfer information between two different Claude interfaces without manual copy - pasting. Desktop is suitable for conversations, planning, and brainstorming, while Code is suitable for execution, editing, and debugging. Relay enables them to work together.

How to use Relay?

The basic usage is very simple: Type 'get' in Desktop or '/get' in Code to get the messages sent by the other party. When you need to send content to the other party, just tell Claude 'Send to Desktop' or 'Send to Code', and Claude will automatically call Relay to send the message.

Applicable Scenarios

1. Discuss design ideas in Desktop and then let Code implement the code. 2. When encountering an error in Code, send it to Desktop for cause analysis. 3. Review code in Desktop and provide improvement suggestions. 4. Generate documentation in Code and send it to Desktop for polishing. 5. Share configuration files, data, or test results between the two interfaces.

Main Features

Bidirectional Message Transfer
Supports bidirectional communication between Claude Desktop and Claude Code, allowing the sending of various content such as text, code snippets, error messages, and configuration files.
System Notification Reminder
When a new message arrives, the system will automatically pop up a notification reminder to let you know that there is information from the other party to view. It supports the local notification systems of macOS, Linux, and Windows.
User - Controlled Message Retrieval
Messages are not automatically loaded. Users need to actively enter the 'get' or '/get' command to retrieve them, avoiding meaningless automatic conversations that consume tokens.
Message Buffer Management
Automatically manages the message buffer, retaining a maximum of 20 latest messages. Old messages are automatically cleared. Manual buffer clearing is also supported.
Sound Reminder Support
An optional sound reminder function plays a prompt tone when a new message arrives, ensuring that you don't miss important information.
Quick Resource Access
You can directly reference the latest message via @relay:messages://latest, which is faster than using the /get command and supports the planning mode.
Advantages
No manual copy - pasting required: Transferring information between the two Claude interfaces becomes easy and simple.
Independent context maintained: Desktop and Code each maintain their independent conversation histories without interfering with each other.
Full user control: Message retrieval requires active user operation, avoiding meaningless automatic conversations.
Zero additional cost: It uses your existing Claude subscription without incurring additional API fees.
Cross - platform support: Supports the three major operating systems of macOS, Linux, and Windows.
Simple and easy to use: The basic operations only require two commands, 'get' and '/get'.
Limitations
Global shared buffer: All projects share the same message buffer. You may need to manually clear it when switching projects.
Slow large - file transfer: For very large files, directly dragging them to the interface may be faster.
Manual configuration required: You need to configure it separately in the two Claude interfaces for the first use.
Dependent on system notifications: Some Linux distributions may require the installation of additional notification libraries.
Message quantity limit: A maximum of 20 latest messages are retained.

How to Use

Install the uvx tool
Relay runs using the uvx tool, which is a Python package manager. If it is not installed yet, you need to install it first.
Configure Claude Desktop
Add the Relay server configuration to the configuration file of Claude Desktop. The configuration file locations are: - macOS: ~/Library/Application Support/Claude/claude_desktop_config.json - Linux: ~/.config/Claude/claude_desktop_config.json - Windows: %APPDATA%\Claude\claude_desktop_config.json
Configure Claude Code
Add the Relay server configuration to the.mcp.json file in the project root directory. If this file does not exist, you need to create one.
Set Claude Desktop Memory
Tell Claude in Claude Desktop to remember: When the user says 'get' or '/get', retrieve messages from Relay.
Install the Code Slash Command (Optional)
For convenient use in Claude Code, you can install the /get slash command.
Restart the Application
Restart Claude Desktop and Claude Code for the configuration to take effect.

Usage Examples

Code Debugging Collaboration
When encountering a complex error in Claude Code, send it to Claude Desktop for cause analysis and solutions.
Separation of Design and Implementation
Discuss the design ideas of a feature in Desktop and then let Code implement the specific code.
Code Review
After writing a piece of code in Code, send it to Desktop for review and optimization suggestions.
Configuration Sharing
After creating a project configuration file in Desktop, it needs to be sent to Code for use.

Frequently Asked Questions

Does Relay consume additional API fees?
Are messages saved permanently?
Can messages be isolated between multiple projects?
What is the maximum size of files that can be sent?
Why do you need to manually enter 'get' to retrieve messages?
How to turn off the sound reminder?
Which operating systems does Relay support?
Can multiple Claude Code instances be connected simultaneously?

Related Resources

GitHub Repository
The source code and the latest version of Relay
uv Tool Documentation
The official documentation of the uvx tool to learn how to install and use it
Model Context Protocol
The official specification of the MCP protocol to understand the technical basis of Relay
Claude Desktop Configuration Guide
The official configuration documentation of Claude Desktop

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "relay": {
      "command": "uvx",
      "args": ["mcp-server-relay", "--client", "desktop", "--sound"]
    }
  }
}

{
  "mcpServers": {
    "relay": {
      "command": "uvx",
      "args": ["mcp-server-relay", "--client", "code"]
    }
  }
}

{
  "mcpServers": {
    "relay": {
      "command": "/path/to/mcp-relay/.venv/bin/python",
      "args": ["/path/to/mcp-relay/relay_server.py", "--client", "desktop", "--sound"]
    }
  }
}

{
  "mcpServers": {
    "relay": {
      "command": "/path/to/mcp-relay/.venv/bin/python",
      "args": ["/path/to/mcp-relay/relay_server.py", "--client", "code"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.1K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.7K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
14.5K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
7.7K
4 points
P
Paperbanana
Python
8.7K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
10.4K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
9.6K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
9.2K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
23.3K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.5K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
79.1K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
27.7K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.9K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
36.8K
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
105.0K
4.7 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.6K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase