PM

ptbsare/mcp-proxy-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

196 stars 17 forks 품질 67 트렌드 0MIT

ptbsare/mcp-proxy-server는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

ptbsare/mcp-proxy-server는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

简体中文

✨ 주요 특징 하이라이트

  • ** 🌐 웹 UI 관리: 직관적인 웹 인터페이스를 통해 연결된 모든 MCP 서버를 쉽게 관리할 수 있습니다(선택 사항, 활성화 필요).
  • ** 🔧 세분화된 도구 제어:** 개별 도구를 활성화하거나 비활성화하고, 웹 UI를 통해 이름/설명을 덮어쓸 수 있습니다.
  • ** 🛡️ 유연한 엔드포인트 인증:** HTTP 기반 엔드포인트(/sse, /mcp)를 유연한 인증 옵션(Authorization: Bearer 또는 X-API-Key: )으로 보호하세요.
  • ** 🔄 견고한 세션 처리 및 동시성**:
  • 서버 전송 endpoint 이벤트에 의존하는 클라이언트 재연결을 위한 SSE 세션 처리 개선과 동시 연결 지원.
  • Streamable HTTP 엔드포인트(/mcp)는 동시 클라이언트 상호작용도 지원합니다.
  • ** 🚀 다목적 MCP 운영(서버 및 프록시):**
  • 프록시 역할을 합니다: 다양한 유형의 백엔드 MCP 서버(Stdio, SSE, Streamable HTTP)에 연결하고 집계합니다.
  • 서버 역할을 하며: 자체 스트림 가능한 HTTP (/mcp) 및 SSE(/sse) 엔드포인트를 통해 이러한 집계된 기능을 노출합니다. 순수 Stdio 모드에서도 실행할 수 있습니다.
  • ** ✨ 실시간 설치 출력**: 웹 UI에서 Stdio 서버 설치 진행 상황(stdout/stderr)을 직접 모니터링합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Proxy Server

简体中文

✨ Key Features Highlight

  • 🌐 Web UI Management: Easily manage all connected MCP servers through an intuitive web interface (optional, requires enabling).
  • 🔧 Granular Tool Control: Enable or disable individual tools, and override names/descriptions via the Web UI.
  • 🛡️ Flexible Endpoint Authentication: Secure your HTTP-based endpoints (/sse, /mcp) with flexible authentication options (Authorization: Bearer or X-API-Key: ).
  • 🔄 Robust Session Handling & Concurrency:
    • Improved SSE session handling for client reconnections (relying on server-sent endpoint events) and support for concurrent connections.
    • Streamable HTTP endpoint (/mcp) also supports concurrent client interactions.
  • 🚀 Versatile MCP Operations (Server & Proxy):
    • Acts as a Proxy: Connects to and aggregates multiple backend MCP servers of various types (Stdio, SSE, Streamable HTTP).
    • Acts as a Server: Exposes these aggregated capabilities through its own Streamable HTTP (/mcp) and SSE (/sse) endpoints. Can also run in a pure Stdio mode.
  • ✨ Real-time Install Output: Monitor Stdio server installation progress (stdout/stderr) directly in the Web UI.
  • ✨ Web Terminal: Access a command-line terminal within the Admin UI for direct server interaction (optional, use with caution due to security risks).

This server acts as a central hub for Model Context Protocol (MCP) resource servers. It can:

  • Connect to and manage multiple backend MCP servers (Stdio, SSE, and Streamable HTTP types).
  • Expose their combined capabilities (tools, resources) through a single, unified SSE interface, a Streamable HTTP interface, or act as a single Stdio-based MCP server itself.
  • Handle routing of requests to the appropriate backend servers.
  • Aggregate responses if needed (though primarily acts as a proxy).
  • Support multiple simultaneous SSE client connections with optional API key authentication.

Features

Resource & Tool Management via Proxy

  • Discovers and connects to multiple MCP resource servers defined in config/mcp_server.json.
  • Aggregates tools and resources from all connected active servers.
  • Routes tool calls and resource access requests to the correct backend server.
  • Maintains consistent URI schemes.

✨ Optional Web Admin UI (ENABLE_ADMIN_UI=true)

Provides a browser-based interface for managing the proxy server configuration and connected tools. Features include:

  • Server Configuration: View, add, edit, and delete server entries (mcp_server.json). Supports Stdio, SSE, and HTTP server types with relevant options (type, command, args, env, url, apiKey, bearerToken, install config).
  • Tool Configuration: View all tools discovered from active backend servers. Enable or disable specific tools. Override the display name and description for each tool (tool_config.json).
GitHub에서 전체 README 보기

설치

docker run -d \
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "unique-server-key1": { "type": "stdio", "name": "My Stdio Server", "active": true, "command": "/path/to/server/executable", "args": ["--port", "1234"], "env": { "API_KEY": "server_specific_key" }, "installDirectory": "/custom_install_path/unique-server-key1", "installCommands": [ "git clone https://github.com/some/repo unique-server-key1", "cd unique-server-key1 && npm install && npm run build" ] }, "another-sse-server": { "type": "sse", "name": "My SSE Server", "active": true, "url": "http://localhost:8080/sse", "apiKey": "sse_server_api_key" }, "http-mcp-server": { "type": "http", "name": "My Streamable HTTP Server", "active": true, "url": "http://localhost:8081/mcp", "bearerToken": "some_secure_token_for_http_server" }, "stdio-default-install": { "type": "stdio", "name": "Stdio Server with Default Install Path", "active": true, "command": "my_other_server", "installCommands": ["echo 'Installing to default location...'"] } } }