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
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

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

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
6.5K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
7.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
4.7K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
7.7K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
6.9K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
6.6K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
7.4K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
7.1K
4.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
18.4K
4.5 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
20.4K
4.3 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
30.2K
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
59.8K
4.3 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#
27.9K
5 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
55.6K
4.5 points
M
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
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
18.3K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase