Integrations
Supports deploying the remote MCP server on Cloudflare Workers, allowing for globally distributed MCP functionality with low latency
Planned integration with NestJS framework mentioned in the roadmap for enhanced server-side implementation options
Provides a standalone Node.js implementation option for hosting the remote MCP server
Remote-MCP: Remote Model Context Protocol
A type-safe, bidirectional and simple solution for remote MCP communication, allowing remote access and centralized management of model contexts.
Architecture
Why I Made This (Now)
Yes, I know that the official MCP roadmap includes remote MCP support in the first quarter of 2025. However, the need for remote access was immediate for me, and likely for many others. This library was created to bridge that gap, providing a way to connect to a remote MCP server from a local MCP client right now, without waiting for future official implementations.
Note: I don't want this to be a sophisticated or overcomplicated thing. This way just works right now.
Getting Started
Note: This project is currently under active development and is considered experimental. Expect breaking changes and potential issues.
Client Usage
Use Publicly Published Package
Just put the following code in your MCP client settings, in here I'm using Claude as an example:
Code Your Own Local MCP Server
Install requirements:
then write your own code like the following:
Server Usage (Remote MCP Implementation)
You can see some examples in the examples
directory.
Code Your Own Remote MCP Server
After npm install @remote-mcp/server
, you can your own remote MCP server like the following:
Then you can see like the following in your MCP client:
Packages
This repository contains:
@remote-mcp/client
: Client library acting as a local MCP server, connecting to a remote implementation.@remote-mcp/server
: Server library for creating remotely accessible MCP services (used as the remote implementation).
Roadmap
Core Features
- Basic Type-safe Client/Server Communication
- Basic MCP Command Support
- Basic MCP Tool Support
- Basic MCP Prompt Support
- Crash-Safe Handling (WIP, top priority)
- Complete Event Subscription System
- Resource change notifications
- Tool/Prompt list change notifications
- HTTP Header Support
- Custom Headers
- Authentication Middleware
- Basic error handling improvements
- Basic middleware support
Framework Support
- Nest.js Integration (
@remote-mcp/nestjs
)
Advanced Features
- Bidirectional communication
- Server-to-client requests
- Resource sharing between server/client
- Basic monitoring & logging
Contribute
Contributions are welcome. See CONTRIBUTING.md for details.
Disclaimer
This library is a complementary extension, not part of the official MCP specification, built upon existing MCP concepts.
License
This project is licensed under the MIT License. See the LICENSE file for details.
References
This server cannot be installed
A type-safe solution that enables remote access to Model Context Protocol (MCP) services, allowing clients to connect to centralized MCP implementations without waiting for official remote support.
Related MCP Servers
- AsecurityAlicenseAqualityA beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.Last updated -3936JavaScriptApache 2.0
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that provides a simple sleep/wait tool, useful for adding delays between operations such as waiting between API calls or testing eventually consistent systems.Last updated -167JavaScript
- -security-license-qualityA specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.Last updated -1TypeScript
- -security-license-qualityA Model Context Protocol (MCP) server that interacts with system APIs, allowing users to check connections, search employees, register breakfast, and update chemical information by shifts.Last updated -2