SR

ssut/remote-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

207 stars 25 forks 品質 65 トレンド 17MIT

ssut/remote-mcp は、https://github.com/ssut/remote-mcp. からインポートされた MCP サーバー候補です。

概要

ssut/remote-mcp は、https://github.com/ssut/remote-mcp. からインポートされた MCP サーバー候補です。

概要(AI 翻訳)

型別安全で双方向かつシンプルなソリューションで、リモートMCP通信を可能にし、モデルコンテキストのリモートアクセスと集中管理を可能にします。

建築

なぜこれを作ったのか(今)

はい、公式のMCPロードマップには2025年第1四半期のリモートMCPサポートが含まれていることは知っています。しかし、リモートアクセスの必要性は私にとっては差し迫ったものであり、多くの人にとってもおそらくそうでしょう。このライブラリはそのギャップを埋めるために作られ、ローカルMCPクライアントから今すぐリモートMCPサーバーに接続する方法を提供し、将来の公式実装を待たずに済むようにしました。

注意:これは洗練されたり複雑すぎたりしたくない。この方法が今はちょうどうまくいく。

始めて

注:このプロジェクトは現在活発に開発中であり、実験的と見なされています。重大な変更や潜在的な問題が起こることを覚悟してください。

クライアント使用状況

公開パッケージを使用

MCPクライアント設定に以下のコードを入力してください。ここではClaudeを例にしています:

自分だけのローカルMCPサーバーをコード化する

設置要件:

次に、自分で以下のコードを書きます。

サーバー使用状況(リモートMCP実装)

examplesディレクトリでいくつかの例を見ることができます。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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

%%{init: {"flowchart": {"htmlLabels": false}} }%%
graph TD
    %% Modern, Bright Color Styling with white text
    classDef client fill:#22c55e,stroke:#059669,stroke-width:2px,color:#ffffff
    classDef gateway fill:#06b6d4,stroke:#0891b2,stroke-width:2px,color:#ffffff
    classDef backend fill:#f97316,stroke:#ea580c,stroke-width:2px,color:#ffffff
    classDef resource fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff
    classDef server fill:#06b6d4,stroke:#0891b2,stroke-width:2px,color:#ffffff

    linkStyle default stroke:#64748b,stroke-width:1.5px,stroke-dasharray: 5 5

    %% Current MCP Setup (Multiple Local Servers)
    subgraph Current["Current Setup (Local)"]
        direction LR
        subgraph ClientGroup["Client"]
            A[Client]:::client
        end

        subgraph Servers["Local MCP Servers"]
            direction TB
            B1["Local MCP Server (DB)"]:::server -->|"DB Access"| C1[DB]:::resource
            B2["Local MCP Server (API 1)"]:::server -->|"API Access"| C2["Web API 1"]:::resource
            B3["Local MCP Server (API 2)"]:::server -->|"API Access"| C3["Web API 2"]:::resource
        end

        A -->|"MCP Protocol"| B1
        A -->|"MCP Protocol"| B2
        A -->|"MCP Protocol"| B3
    end

    %% Vertical separator
    Current --> Proposed

    %% Proposed MCP Architecture (Decoupled)
    subgraph Proposed["Proposed Architecture (Remote)"]
        direction LR
        D[Client/Host]:::client -->|"MCP Protocol"| E["Local MCP Server (@remote-mcp/client)"]:::server
        E |"tRPC(HTTP)"| F["Remote MCP Server (@remote-mcp/server)"]:::backend

        %% Separated Resources
        F -->|"DB Access"| G1[DB]:::resource
        F -->|"API Access"| G2["Web API 1"]:::resource
        F -->|"API Access"| G3["Web API 2"]:::resource
    end

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:

{
  "mcpServers": {
GitHub で README 全文を見る

インストール

npx -y @remote-mcp/client
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "remote-mcp": { "command": "npx", "args": ["-y", "@remote-mcp/client"], "env": { "REMOTE_MCP_URL": "http://localhost:9512", "HTTP_HEADER_Authorization": "Bearer <token>" } } } }