Author: Zheng Ji
Today, we are pleased to announce the launch of a new version of Nacos MCP Router, bringing multiple important updates, including comprehensive support for SSE and StreamableHTTP protocols, Docker containerization deployment solutions, and a revolutionary one-click conversion feature for MCP Server protocols. These new features will provide developers with a more flexible and efficient experience in using MCP services, promoting the prosperous development of the MCP ecosystem.
docker run -i --rm --network host -e NACOS_ADDR=$NACOS_ADDR -e NACOS_USERNAME=$NACOS_USERNAME -e NACOS_PASSWORD=$NACOS_PASSWORD -e TRANSPORT_TYPE=sse nacos-mcp-router:latest
Note: Set the environment variable TRANSPORT_TYPE=sse
After the Nacos MCP Router is started, it can be used after completing MCP settings like Cline, Cursor, Claude, etc. Here is an example:
{
"mcpServers": {
"nacos-mcp-router": {
"url":"http://$nacos_mcp_router_addr/sse"
}
}
}
To address these issues, the MCP official has introduced the StreamableHTTP protocol, which retains the streaming capabilities of SSE while also possessing flexibility, lightness, and compatibility.
Set the environment variable TRANSPORT_TYPE=streamable_http, and the Nacos MCP Server will enable the StreamableHTTP protocol. For example, in a Docker deployment, the command is as follows:
docker run -i --rm --network host -e NACOS_ADDR=$NACOS_ADDR -e NACOS_USERNAME=$NACOS_USERNAME -e NACOS_PASSWORD=$NACOS_PASSWORD -e TRANSPORT_TYPE=streamable_http nacos-mcp-router:latest
Here are examples of MCP settings for Cline, Cursor, Claude, etc.:
{
"mcpServers": {
"nacos-mcp-router": {
"url":"http://$nacos_mcp_router_addr/mcp"
}
}
}
The working principle of Nacos MCP Router under SSE and StreamableHTTP protocols is shown in the figure below:
Figure 1: Nacos MCP Router StreamableHTTP and SSE Protocol Architecture
Figure 2: Nacos MCP Router Protocol Conversion Architecture
This section provides a simple demonstration of the process of converting stdio protocol to StreamableHTTP, with SSE conversion being similar. Enabling proxy mode requires setting the MODE=proxy
environment variable. After specifying PROXIED_MCP_NAME
, Nacos MCP Router will automatically retrieve the configuration of the target MCP server from Nacos and establish a proxy connection, seamlessly converting requests of different protocols. The entire process is completely transparent to the original MCP server, with no code modifications required.
An example of starting is as follows:
docker run -i --rm --network host -e NACOS_ADDR=$NACOS_ADDR -e NACOS_USERNAME=$NACOS_USERNAME -e NACOS_PASSWORD=$NACOS_PASSWORD -e TRANSPORT_TYPE=streamable_http -e MODE=proxy -e PROXIED_MCP_NAME=$PROXIED_MCP_NAME nacos-mcp-router:latest
Below is an example using Gaode Map to demonstrate how to convert a stdio protocol MCP Server to a StreamableHTTP protocol MCP Server.
1.Start the latest version of Nacos Server; for simplicity, start it in standalone mode.
git clone
sh $NACOS_DIR/bin/startup.sh -m standalone
2.Register Gaode MCP in Nacos.
3.Start Nacos MCP Router in proxy mode.
docker run -i --rm --network host -e NACOS_ADDR=127.0.0.1:8848 -e NACOS_USERNAME=nacos -e NACOS_PASSWORD=nacos -e TRANSPORT_TYPE=streamable_http -e MODE=proxy -e PROXIED_MCP_NAME=amap-mcp-server nacos/nacos-mcp-router:latest
4.CherryStudio uses StreamableHTTP.
a.Set MCP to specify StreamableHTTP; after saving, the tool list will be visible.
b.Using MCP.
docker run -i --rm --network host -e NACOS_ADDR=$NACOS_ADDR -e NACOS_USERNAME=$NACOS_USERNAME -e NACOS_PASSWORD=$NACOS_PASSWORD -e TRANSPORT_TYPE=$TRANSPORT_TYPE nacos-mcp-router:latest
For scenarios requiring protocol conversion, this can also be easily achieved via Docker:
docker run -i --rm --network host -e NACOS_ADDR=$NACOS_ADDR -e NACOS_USERNAME=$NACOS_USERNAME -e NACOS_PASSWORD=$NACOS_PASSWORD -e TRANSPORT_TYPE=streamable_http -e MODE=proxy -e PROXIED_MCP_NAME=$PROXIED_MCP_NAME nacos-mcp-router:latest
We believe that with the application of these new features, more innovative MCP services will emerge, bringing more possibilities for cloud-native application development. We also look forward to feedback and contributions from the community to jointly promote the development of Nacos MCP Router and the entire MCP ecosystem. In the future, we hope that Nacos MCP Router can become a distribution and scheduling platform for MCP Servers, providing powerful intelligent MCP scheduling capabilities for AI agents.
Vercel AI Gateway vs Higress: Which one is more suitable for your AI application?
568 posts | 54 followers
FollowAlibaba Cloud Native Community - May 29, 2025
Alibaba Cloud Native Community - June 13, 2025
Alibaba Cloud Native Community - April 17, 2025
Alibaba Cloud Native Community - April 9, 2025
Alibaba Cloud Native Community - April 15, 2025
Alibaba Cloud Native Community - April 3, 2025
568 posts | 54 followers
FollowMulti-source metrics are aggregated to monitor the status of your business and services in real time.
Learn MoreAccelerate and secure the development, deployment, and management of containerized applications cost-effectively.
Learn MoreAccelerate AI-driven business and AI model training and inference with Alibaba Cloud GPU technology
Learn MoreTop-performance foundation models from Alibaba Cloud
Learn MoreMore Posts by Alibaba Cloud Native Community