Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverAn toànQuy trình & bộ nhớ agentNâng cao

mcp-proxy

tbxark · tbxark/mcp-proxy

Một máy chủ proxy MCP tổng hợp và phục vụ nhiều máy chủ tài nguyên MCP thông qua một điểm truy cập HTTP duy nhất, hỗ trợ nhiều loại client và OAuth.

An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server.

734 sao108Giấy phép: MITCập nhật tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Tổng hợp các công cụ, lời nhắc và tài nguyên từ nhiều máy chủ MCP vào một điểm cuối duy nhất cho tác nhân.
  • Quản lý các ủy quyền OAuth cho các máy chủ hạ nguồn, cho phép proxy xử lý việc làm mới token.
  • Đơn giản hóa cấu hình tác nhân bằng cách cung cấp một điểm cuối cục bộ thay vì cấu hình trực tiếp nhiều máy chủ MCP.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

MCP Proxy Server

An MCP proxy that aggregates multiple MCP servers behind a single HTTP entrypoint.

Features

  • Proxy multiple MCP clients: aggregate tools, prompts, and resources from many servers.
  • SSE and streamable HTTP: serve via Server‑Sent Events or streamable HTTP.
  • Flexible config: supports stdio, sse, and streamable-http client types.
  • OAuth client support: authorize once against downstream servers that require interactive OAuth (e.g. Notion), then let the proxy hold and refresh the token for every caller.

Documentation

Quick Start

Build from source

git clone https://github.com/tbxark/mcp-proxy.git
cd mcp-proxy
make build
./build/mcp-proxy --config path/to/config.json

Install via Go

go install github.com/tbxark/mcp-proxy@latest

Docker

The image includes support for launching MCP servers via npx and uvx.

docker run -d -p 9090:9090 -v /path/to/config.json:/config/config.json ghcr.io/tbxark/mcp-proxy:latest
# or provide a remote config
docker run -d -p 9090:9090 ghcr.io/tbxark/mcp-proxy:latest --config https://example.com/config.json

More deployment options (including docker‑compose) are in docs/deployment.md.

Configuration

See full configuration reference and examples in docs/configuration.md. An online Claude config converter is available at: https://tbxark.github.io/mcp-proxy

Usage

Command‑line flags, endpoints, and auth examples are documented in docs/usage.md.

Thanks

License

This project is licensed under the MIT License. See the LICENSE file for details.

Xem mã nguồn trên GitHub