mcp-proxy

MCP其他

提供方 stephenlacy

其他 HTTP · 远程 OAuth 授权 社区 / 第三方 ClaudeCursorCodexZed
查看接入方式

Fast rust MCP proxy between stdio and SSE

一句话选型结论

按资料字段整理

mcp-proxy 属于其他类 MCP 服务器,HTTP · 远程,OAuth 授权,可直接接入 Claude、Cursor、Codex 等,有可直接复制的远程端点配置。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类其他 传输方式HTTP · 远程 鉴权OAuth 授权 部署方式远程部署
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

其他
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

proxymcpagents

安装与配置

HTTP · 远程 OAuth 授权
连远程 HTTPS 端点,通常为 Streamable HTTP
mcp-proxy http://example.com/mcp/instances_abc123

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
接入外部数据

把外部系统的数据接进对话。

自动化重复操作

把固定步骤交给模型跑。

补充工具能力

给模型补上它原本没有的能力。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude、Cursor、Codex,换客户端不用重新研究配置。

先想清楚的地方

  • 远程端点依赖网络与服务方可用性,注意密钥与调用额度。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在其他场景里让模型直接调用外部能力的人。
  • 已经在用 Claude、Cursor 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
mcp-proxy当前 未标注 HTTP · 远程 远程部署 有 未标注
gemini-cli 未标注 stdio · 本地进程 本地部署 有 2026-04-13
ext-apps 未标注 stdio · 本地进程 本地部署 有 2026-04-19
northcinder 未标注 stdio · 本地进程 本地部署 有 2026-08-23
fastctx 未标注 stdio · 本地进程 本地部署 有 2026-08-23
quickstart-resources 未标注 stdio · 本地进程 本地部署 有 2026-04-12

服务器档案

其他
字段来自项目仓库与公开索引,中文说明由本站标注
提供方stephenlacy上游标注的维护方 stephenlacy
分类其他本站按上游分类展示
连接方式HTTP · 远程连远程 HTTPS 端点,通常为 Streamable HTTP
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · rust本地安装时用到的包标识与运行时
部署类型远程部署上游给出的部署形态
最近核验未标注上游最后核验时间

详细介绍

3.7 KB
来自项目仓库与上游目录的原文,未做删改

mcp-proxy

> A Rust bidirectional MCP proxy supporting SSE and Streamable HTTP transports with OAuth.

Features

  • Multiple transports: SSE and Streamable HTTP
  • OAuth authentication: Full OAuth flow with automatic token refresh
  • Bidirectional proxy: Connect remote servers to local clients or expose local servers remotely
  • Fast and lightweight: Built in rust for performance

Usage

Installing```bash

from crates.io

cargo install rmcp-proxy

from github

cargo install --git https://github.com/stephenlacy/mcp-proxy


### Building```bash
cargo build --release

Running

The proxy can operate in two modes:

1. Remote Client Mode

Connect to a remote MCP server and expose it as a local stdio server. Supports both SSE and Streamable HTTP transports with automatic detection.

Transport Detection:
- URLs containing /sse → Uses SSE transport
- All other URLs → Uses Streamable HTTP transport
- Override with --transport flag

Basic Examples```bash

Streamable HTTP

mcp-proxy http://localhost:9090/mcp/instances_abc123

SSE transport

mcp-proxy http://localhost:8080/sse
mcp-proxy --transport sse http://localhost:8080/events

Specific

mcp-proxy --transport streamable-http http://localhost:9090/api


##### Using with Claude or Cursor```json
{
  "mcpServers": {
    "my-remote-server": {
      "command": "mcp-proxy",
      "args": ["http://example.com/mcp/instances_abc123"]
    },
    "sse-server": {
      "command": "mcp-proxy",
      "args": ["--transport", "sse", "http://example.com/sse"]
    }
  }
}

2. Local Server Mode

Connect to a local MCP server via stdio and expose it as a remote server. Supports both SSE and Streamable HTTP endpoints.```bash

Expose as SSE server

mcp-proxy --port 8080 -- your-command --arg1 value1 --arg2 value2
mcp-proxy --port 8080 python mcp_server.py
mcp-proxy --port 8080 -- npx -y @modelcontextprotocol/server-everything

Or http+streamable

mcp-proxy --port 9090 --transport streamable-http -- python mcp_server.py

mcp-proxy --port 8080 -e KEY VALUE -e ANOTHER_KEY ANOTHER_VALUE -- your-command


### Authentication Management

#### Clearing Auth Cache

If you encounter authentication issues, clear the auth cache:```bash
# Clear all auth data
mcp-proxy reset

# Or manually delete the directory
rm -rf ~/.mcp-auth

Command Line Options```bash

Transport selection

--transport <TRANSPORT> # sse, streamable-http, or auto (default: auto)

Server mode options

--port <PORT> # Port for local server mode (default: random)
--host <HOST> # Host to bind to (default: 127.0.0.1)

Environment variables (server mode)

-e, --env <KEY> <VALUE> # Set environment variable
--pass-environment # Pass through all environment variables

Headers (client mode)

-H, --headers <KEY> <VALUE> # Add custom headers

Reset auth

mcp-proxy reset # Clear all stored auth data


### Logging
&gt; The upstream rmcp crate dumps noisy logs unfortunately

Control log verbosity with the `RUST_LOG` environment variable:```bash
# Minimal logging
RUST_LOG=error mcp-proxy http://example.com/mcp
RUST_LOG=debug mcp-proxy http://example.com/mcp
RUST_LOG=info mcp-proxy http://example.com/mcp

Library Usage```rust

use rmcp_proxy::{
sse_client::run_sse_client,
streamable_http_client::run_streamable_http_client,
StreamableHttpClientConfig, SseClientConfig
};

// Streamable HTTP client
let config = StreamableHttpClientConfig {
url: "http://example.com/mcp/instances_abc123".to_string(),
headers: HashMap::new(),
};
run_streamable_http_client(config).await?;

// SSE client
let config = SseClientConfig {
url: "http://example.com/sse".to_string(),
headers: HashMap::new(),
};
run_sse_client(config).await?;
```

License

MIT

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
mcp-proxy 怎么安装?

在客户端按下面的安装命令接入:mcp-proxy http://example.com/mcp/instances_abc123。装完在客户端配置里引用同一个包或端点。

mcp-proxy 怎么在 Claude、Cursor、Codex 里配置?

它的传输方式是HTTP · 远程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

mcp-proxy 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

mcp-proxy 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

mcp-proxy 支持哪些客户端?

资料标注支持 Claude、Cursor、Codex、Zed;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

mcp-proxy 能提供哪些能力?

资料显示能力标签包括 proxy、mcp、agents、mcp server、mcp client。具体工具清单以官方文档为准。

mcp-proxy 需要什么运行环境?

运行时为 rust;属于远程端点,不需要在本地装运行时。

mcp-proxy 是本地还是远程?

它是远程端点,连服务地址即可。传输方式为HTTP · 远程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 未标注。