Skip to main content
Glama
FastMCP Remote Proxy

FastMCP Remote Proxy

by shahil04

FastMCP Remote Proxy

本项目通过本地代理暴露远程 FastMCP 服务器中的工具。上游服务器使用 Streamable HTTP,并且需要 OAuth 认证。

环境要求

  • Python 3.11 或更高版本

  • uv

Related MCP server: mcp-auth-proxy

设置

uv sync

若要从头创建项目,请改为:

uv init
uv add fastmcp

使用 Inspector 运行

使用以下命令启动本地 MCP Inspector:

uv run fastmcp dev main.py

首次运行会在浏览器中打开 OAuth 登录页面。完成登录后,在 http://127.0.0.1:6274 打开 Inspector 并刷新连接。

FastMCP 通过 main.py 中的标准 mcp 变量发现服务器。也可以显式指定入口点:

uv run fastmcp dev main.py:mcp

作为本地 Stdio 服务器运行

uv run main.py

这会通过 stdio 为 MCP 客户端(例如 Claude Desktop)启动代理。

发布更改

git add .
git commit -m "Update FastMCP proxy"
git push

上游服务器通过 FastMCP Cloud 部署。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables stdio-only MCP clients to connect to IFTTT's remote MCP server by handling OAuth authentication, SSE streaming, and response transformation.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Bridges stdio-based LLM harnesses to OAuth-protected remote MCP servers via Streamable HTTP, handling PKCE browser login and token refresh automatically.
    8 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Bridge that lets stdio-only MCP clients connect to remote MCP servers with OAuth and other auth support, enabling local clients to use remote, authorized MCP servers.
    25 npm
    54
    MIT