trackmcp
Back to directory
nacos-group

nacos-mcp-router

View on GitHub

Nacos MCP Router

180 stars TypeScriptOthers Updated Jul 31, 2026

Documentation

nacos-mcp-router: A MCP server that provides functionalities such as search, installation, proxy, and more.

Model Context Protocol
Ask DeepWiki
NPM Version
NPM Downloads

|

Overview

Nacos is an easy-to-use platform designed for dynamic service discovery and configuration and service management. It helps you to build cloud native applications and microservices platform easily.

This MCP(Model Context Protocol) Server provides tools to search, install, proxy other MCP servers, with advanced search capabilities including vector similarity search and multi-provider result aggregation.

Nacos-MCP-Router has two working modes:

Router mode: The default mode, which recommends, distributes, installs, and proxies the functions of other MCP Servers through the MCP Server, helping users more conveniently utilize MCP Server services.

Proxy mode: Specified by the environment variable MODE=proxy, it can convert SSE and stdio protocol MCP Servers into streamable HTTP protocol MCP Servers through simple configuration.

Search Features

Nacos-MCP-Router provides powerful search capabilities through multiple providers:

Search Providers

1. Nacos Provider

    2. Compass Provider

      Search Configuration

      Configure search behavior using environment variables:

      bash
      # YOUR COMPASS API endpoint (for Outer Provider called Compass Provider)
      COMPASS_API_BASE=https://registry.mcphub.io
      
      # Minimum similarity score for results (0.0 to 1.0)
      SEARCH_MIN_SIMILARITY=0.5
      
      # Maximum number of results to return
      SEARCH_RESULT_LIMIT=10

      Search API

      The search functionality is available through the MCP interface:

      typescript
      // Search for MCP servers
      const results = await searchMcpServer(
        "Find MCP servers for natural language processing",
        ["nlp", "language"]
      );

      Results include:

      • Server name and description
      • Provider information
      • Relevance score
      • Additional metadata

      Quick Start

      Python

      router mode

      Tools

      1. `search_mcp_server`

        2. `add_mcp_server`

          3. `use_tool`

            Usage
            Using uv (recommended)

            When using `uv` no specific installation is needed. We will

            use `uvx` to directly run *nacos-mcp-router*.

            code
            export NACOS_ADDR=127.0.0.1:8848
            export NACOS_USERNAME=nacos
            export NACOS_PASSWORD=$PASSWORD
            uvx nacos-mcp-router@latest
            Using PIP

            Alternatively you can install `nacos-mcp-router` via pip:

            code
            pip install nacos-mcp-router

            After installation, you can run it as a script using(As an example,Nacos is deployed in standalone mode on the local machine):

            code
            export NACOS_ADDR=127.0.0.1:8848
            export NACOS_USERNAME=nacos
            export NACOS_PASSWORD=$PASSWORD
            python -m nacos_mcp_router
            Using Docker
            code
            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/nacos-mcp-router:latest
            Usage with Cline、Cursor、Claude and other applications

            Add this to MCP settings of your application:

            • Using uvx
            json
            {
                "mcpServers":
                {
                    "nacos-mcp-router":
                    {
                        "command": "uvx",
                        "args":
                        [
                            "nacos-mcp-router@latest"
                        ],
                        "env":
                        {
                            "NACOS_ADDR": ", optional, default is 127.0.0.1:8848",
                            "NACOS_USERNAME": ", optional, default is nacos",
                            "NACOS_PASSWORD": ", required"
                        }
                    }
                }
            }

            > You may need to put the full path to the `uvx` executable in the `command` field. You can get this by running `which uvx` on MacOS/Linux or `where uvx` on Windows.

            • Using docker
            json
            {
              "mcpServers": {
                "nacos-mcp-router": {
                  "command": "docker",
                  "args": [
                    "run", "-i", "--rm", "--network", "host",  "-e", "NACOS_ADDR=", "-e",  "NACOS_USERNAME=", "-e", "NACOS_PASSWORD=" ,"-e", "TRANSPORT_TYPE=stdio", "nacos/nacos-mcp-router:latest"
                  ]
                }
              }
            }

            Proxy Mode

            The proxy mode supports converting SSE and stdio protocol MCP Servers into streamable HTTP protocol MCP Servers.

            Usage

            The usage of proxy mode is similar to that of router mode, with slightly different parameters. Docker deployment is recommended.

            code
            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/nacos-mcp-router:latest

            Environment Variable Settings

            ParameterDescriptionDefault ValueRequiredRemarks
            -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
            NACOS_ADDRNacos server address127.0.0.1:8848Nothe Nacos server address, e.g., 192.168.1.1:8848. Note: Include the port.
            NACOS_USERNAMENacos usernamenacosNothe Nacos username, e.g., nacos.
            NACOS_PASSWORDNacos password-Yesthe Nacos password, e.g., nacos.
            COMPASS_API_BASECOMPASS API endpoint for enhanced searchhttps://registry.mcphub.ioNoOverride the default COMPASS API endpoint
            SEARCH_MIN_SIMILARITYMinimum similarity score (0.0-1.0)0.5NoFilter search results by minimum similarity score
            SEARCH_RESULT_LIMITMaximum number of results to return10NoLimit the number of search results
            NACOS_NAMESPACENacos NamespacepublicNoNacos namespace, e.g. public
            TRANSPORT_TYPETransport protocol typestdioNotransport protocol type. Options: stdio, sse, streamable_http.
            PROXIED_MCP_NAMEProxied MCP server name-NoIn proxy mode, specify the MCP server name to be converted. Must be registered in Nacos first.
            MODEWorking moderouterNoAvailable options: router, proxy.
            PORTService port when TRANSPORT_TYPE is sse or streamable_http8000No
            ACCESS_KEY_IDAliyun ram access key id-No
            ACCESS_KEY_SECRETAliyun ram access key secret-No

            typescript

            Usage with Cline、Cursor、Claude and other applications

            json
            {
              "mcpServers": {
                "nacos-mcp-router": {
                  "command": "npx",
                  "args": [
                    "nacos-mcp-router@latest"
                  ],
                  "env": {
                    "NACOS_ADDR": ", optional, default is 127.0.0.1:8848",
                    "NACOS_USERNAME": ", optional, default is nacos",
                    "NACOS_PASSWORD": ", required"
                  }
                }
              }
            }

            License

            nacos-mcp-router is licensed under the Apache 2.0 License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the Apache 2.0 License. For more details, please see the `LICENSE` file in the project repository.

            Frequently asked questions

            What is nacos-mcp-router?

            nacos-mcp-router is Nacos MCP Router

            How do I install nacos-mcp-router?

            Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

            Is nacos-mcp-router open source?

            Yes — it is hosted on GitHub at https://github.com/nacos-group/nacos-mcp-router and has 180 stars.

            Related MCP tools

            Run your own MCP server? See who uses it and what to fix.

            Measure it with TrackMCP