Skip to main content
Glama
sirmews

MCP Remote Server

by sirmews

コードベースに基づいたより技術的な詳細を記載した拡張 README を以下に示します。

mcp-リモートサーバー

リモート設定から動的に機能を読み込む、設定可能なモデルコンテキストプロトコル(MCP)サーバーです。ModelContextProtocol利用して、ローカル MCP クライアントと通信できるローカルサーバーを作成します。

概要

mcp-remote-server MCP クライアントとリモート API 間のブリッジとして機能します。リモートホスト構成( MCP_CONTROL_PLANE_URLで指定)を解析します。この構成には、リモート API エンドポイントを指すツール、リソース、プロンプトのリストが含まれています。

主な特徴

  • 動的構成: サーバーの機能はリモートJSON構成を通じて定義されます

  • 自動更新: 設定は60秒ごとに自動的に更新されます

  • すべてのMCPプリミティブをサポート:

    • ツール: リモート API 呼び出しを通じてアクションを実行する

    • リソース: リモートデータを読み取り可能なリソースとして公開する

    • プロンプト: 再利用可能なプロンプトテンプレートを定義する

設定形式

{
  "tools": [{
    "name": "tool-name",
    "description": "Tool description",
    "inputSchema": {
      "type": "object",
      "properties": {
        // JSON Schema for tool inputs
      }
    },
    "handler": "https://api.example.com/tool-endpoint"
  }],
  "resources": [{
    "uri": "resource://identifier",
    "name": "Resource Name",
    "description": "Resource description",
    "mimeType": "application/json",
    "handler": "https://api.example.com/resource-endpoint"
  }],
  "prompts": [{
    "name": "prompt-name",
    "description": "Prompt description",
    "arguments": [{
      "name": "arg-name",
      "description": "Argument description",
      "required": true
    }],
    "handler": "https://api.example.com/prompt-endpoint"
  }]
}

ハンドラーAPIの要件

リモート ハンドラーは、適切にフォーマットされた応答を返す必要があります。

  • ツールハンドラー: 文字列化され、MCP ツール応答にラップされる JSON を返します。

  • リソースハンドラ: 指定された mimeType に一致するコンテンツを返します

  • プロンプトハンドラ: 文字列(メッセージに自動的にラップされる)またはMCP形式のメッセージの配列を返します。

Related MCP server: MCP-YNU FastMCP Server

インストール

bun install

使用法

  1. コントロール プレーンの URL を設定します。

export MCP_CONTROL_PLANE_URL="https://your-config-endpoint"
  1. サーバーを実行します。

bun run index.ts

制限事項

  • HTTP/HTTPSハンドラーエンドポイントのみサポート

  • 構成はHTTP GETリクエスト経由でアクセス可能である必要がある

  • ハンドラのレスポンスはJSON互換である必要があります

  • ローカルでのみ実行(標準の MCP 制限)

このプロジェクトは、bun v1.1.32 のbun initを使用して作成されました。Bun高速なオールインワン JavaScript ランタイムです。Bun を選んだのは、高速であることと、少し変わったものを試してみたかったからです。

このプロジェクトでも、型チェックとリンティングにBiomeを使用しています。Bunと同じ理由でBiomeを選びました。何か違うものを探していたので、JSにgofmtのようなツールがあればいいのにと思いました。これは良いスタートです。

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    C
    quality
    D
    maintenance
    This is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.
    1
  • A
    license
    Not graded
    quality
    D
    maintenance
    A dynamic MCP server implementation that automatically loads tools, resources, and prompts from their respective directories, allowing for easy extension and configuration.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A generic MCP server that dynamically exposes any OpenAPI-documented REST API to LLMs by auto-discovering endpoints. It provides tools for exploring API capabilities and making authenticated requests directly through natural language interfaces.
    2
    9
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.

  • An authenticated remote MCP server for user-owned devices and one-shot capability invocation.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sirmews/mcp-remote-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server