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.
rating : 2.5 points
downloads : 5.5K
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

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
18.4K
4.5 points

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
20.4K
4.3 points

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
30.2K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
59.8K
4.3 points

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#
27.9K
5 points

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
55.6K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
40.9K
4.8 points

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
18.3K
4.5 points

