Provides containerized deployment of the MCP server, with examples for both standalone and multi-service deployments using Docker Compose
Supports local installation and deployment on Linux systems with specific installation instructions
Supports local installation and deployment on macOS systems with specific installation instructions
Utilizes Python 3.12 environment for local deployment and execution of the MCP server
可以将现有的MCP类型为 stdio / sse 转换为 streamable_http传输类型的MCP
本实现完全按照标准的MCP官方进行实现
版本更新:
当前版本: 0.0.1
快速开始
本地部署(如果无需本地部署调试,请跳过,直接到容器化部署)
python环境要求:python 3.12
未安装uv 请按照以下步骤安装, 已安装请忽略
uv 官网 https://docs.astral.sh/
macos / linux uv安装
windows uv安装
环境变量信息
参数 | 描述 | 默认值 | 是否必填 | 备注 |
---|---|---|---|---|
TRANSPORT_TYPE | 传输协议类型 | streamable_http | 否 | 填写传输协议类型,可选值:stdio 、sse 、streamable_http |
PROXY_MCP_NAME | 代理的 MCP 服务器名称 | feifei-proxy-mcp | 否 | 代理的mcp服务名称 |
PROXY_MCP_SERVER_CONFIG | mcp 服务器配置 | - | 是 | 要代理的mcp服务配置 |
PROXY_MCP_PORT | 服务端口 | 8000 | 否 | 代理mcp协议类型为 sse 或 streamable_http 时使用 |
容器化部署
使用前 请保障当前机器已安装 docker 环境
docker 命令行部署
以下以部署 fetch mcp 为例,将stdio转为 streamable_http mcp
docker-compose 部署 (推荐使用此方式来实现快速部署)
使用docker-compose 也可以同时部署多个代理mcp
比如以下示例 我通过docker-compose 部署了3个代理mcp
feifei-proxy-fetch => 网页内容爬取 streamable_http mcp
feifei-proxy-bazi => 出生八字分析 streamable_http mcp
feifei-proxy-howtocook => 食谱分析 streamable_http mcp
docker-compose.yml配置完成后,执行部署命令以完成mcp服务启动
客户端接入
这里以 cherry stdio 作为接入示例 如果未安装,也可自行安装,或者在自己的cline, cursor中添加mcp server 完成使用
This server cannot be installed
A service that converts existing MCP protocols (stdio/sse) to streamable_http transmission type, allowing compatibility between different MCP implementations.
Related MCP Servers
- -securityFlicense-qualityA server for Model Context Protocol (MCP) that uses Server-Sent Events (SSE) for streaming communication, enabling tools like the HackerNews API to be accessed through a secure HTTP+SSE transport.Last updated -23TypeScript
- -securityAlicense-qualityA reference implementation for creating an MCP server supporting Streamable HTTP & SSE Transports with OAuth authorization, allowing developers to build OAuth-authorized MCP servers with minimal configuration.Last updated -69TypeScriptMIT License
- -securityAlicense-qualityA server that implements the Model Context Protocol (MCP) with StreamableHTTP transport, enabling standardized interaction with model services through a RESTful API interface.Last updated -1551JavaScriptMIT License
- -securityFlicense-qualityA minimal, containerized MCP server that exposes a Streamable HTTP transport with API key authentication, allowing secure access to MCP endpoints.Last updated -Python