Remote-MCP is a type-safe solution for remote MCP (Model Context Protocol) communication, with the goal of enabling local MCP clients to remotely access and centrally manage model context.
Purpose The official MCP roadmap plans to support remote MCP in the first quarter of 2025, but the author believed that the need for remote access already exists today, so he created this library to fill this gap: before the official implementation arrives, allow users to connect from local MCP clients to remote MCP servers right now. The author emphasizes that the project does not aim for complexity or over-engineering, but instead targets being usable now.
Main capabilities
- Type-safe client/server communication.
- Basic MCP command support, basic MCP tool support, basic MCP Prompt support.
- HTTP header support: custom headers, authentication middleware.
- Basic error handling improvements, basic middleware support.
- Framework support: Nest.js integration (@remote-mcp/nestjs).
- Planned capabilities: crash-safe handling (WIP, highest priority), full event subscription system (resource change notifications, tool/prompt list change notifications), advanced features (server-to-client bidirectional communication requests, resource sharing between server and client), basic monitoring and logging.
Usage The project provides two core packages:
- @remote-mcp/client: the client library, which runs as a local MCP server and connects to a remote implementation.
- @remote-mcp/server: the server library, used to create remotely accessible MCP services (used as a remote implementation). When using the published packages, the corresponding code can be placed into the MCP client settings (the official example uses Claude). Users can also write their own local MCP server, or write their own remote MCP server after running npm install @remote-mcp/server. Examples are provided in the examples directory, including two implementations: Cloudflare Workers and standalone Node.js.
Use cases Suitable for developers who need to implement local MCP clients connecting to remote MCP servers and centrally manage model context before official remote MCP support lands; also suitable for those who want to build remote MCP communication in a type-safe way and integrate MCP capabilities into Nest.js applications.project.
Limitations
- The project is currently in active development and is an experimental project, and may have breaking changes and potential issues.
- Capabilities such as crash-safe handling and a complete event subscription system are still planned or in progress (WIP).
- This library is a supplementary extension built on top of existing MCP concepts and is not part of the official MCP specification.
- The project uses the MIT License, contributions are welcome, see CONTRIBUTING.md for details.
Other facts (such as specific version numbers, pricing, platform support scope, detailed steps beyond installation, etc.) are not yet provided.