Add your description here
Project description
nacos-mcp-router: A MCP server that provides functionalities such as search, installation, proxy, and more.
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.
Tools
search_mcp_server- Search MCP servers by task and keywords.
- Input:
task_description(string): Task descriptionkey_words(string): Keywords of task
- Returns: list of MCP servers and instructions to complete the task.
add_mcp_server- Add a MCP server. If the MCP server is a stdio server, this tool will install it and establish connection to it. If the MCP server is a sse server, this tool will establish connection to it
- Input:
mcp_server_name(string): The name of MCP server.
- Returns: tool list of the MCP server and how to use these tools.
use_tool- This tool helps LLM to use the tool of some MCP server. It will proxy requests to the target MCP server.
- Input:
mcp_server_name(string): The target MCP server name that LLM wants to call.mcp_tool_name(string): The tool name of target MCP server that LLM wants to call.params(map): The parameters of the MCP tool.
- Returns: Result returned from the target MCP server.
Installation
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run nacos-mcp-router.
Using PIP
Alternatively you can install nacos-mcp-router via pip:
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):
export NACOS_ADDR=127.0.0.1:8848
export NACOS_USERNAME=nacos
export NACOS_PASSWORD=$PASSWORD
python -m nacos-mcp-router
Configuration
Usage with Cline、Cursor、Claude and other applications
Add this to MCP settings of your application:
Using uvx
{
"mcpServers":
{
"nacos-mcp-router":
{
"command": "uvx",
"args":
[
"nacos-mcp-router@latest"
],
"env":
{
"NACOS_ADDR": "<NACOS-ADDR>, optional, default is 127.0.0.1:8848",
"NACOS_USERNAME": "<NACOS-USERNAME>, optional, default is nacos",
"NACOS_PASSWORD": "<NACOS-PASSWORD>, required"
}
}
}
}
You may need to put the full path to the
uvxexecutable in thecommandfield. You can get this by runningwhich uvxon MacOS/Linux orwhere uvxon Windows.
Development
If you are doing local development, simply follow the steps:
- Clone this repo into your local environment.
- Modify codes in
src/mcp_server_nacosto implement your wanted features. - Test using the Claude desktop app. Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"nacos-mcp-router": {
"command": "uv",
"args": [
"--directory","PATH-TO-PROJECT","run","nacos-mcp-router"
],
"env": {
"NACOS_ADDR": "<NACOS-ADDR>, optional, default is 127.0.0.1:8848",
"NACOS_USERNAME": "<NACOS-USERNAME>, optional, default is nacos",
"NACOS_PASSWORD": "<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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nacos_mcp_router-0.1.8.tar.gz.
File metadata
- Download URL: nacos_mcp_router-0.1.8.tar.gz
- Upload date:
- Size: 341.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb610c49f2fcbca869fb5343483da132cec944904d4a0e2d2157c149c19a8d2f
|
|
| MD5 |
ade5c84a554f0968d7875529edd295f3
|
|
| BLAKE2b-256 |
b14365d35db046c845de963496dbe212028ec4a948ad1dbcd1dca6af7b6af2b3
|
File details
Details for the file nacos_mcp_router-0.1.8-py3-none-any.whl.
File metadata
- Download URL: nacos_mcp_router-0.1.8-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05b9a8aaba0adbacc99dddd574524ef69a6ccd0f25b2044547ec75180b8342de
|
|
| MD5 |
342b526ae80e4b3589f451c59b40c7ef
|
|
| BLAKE2b-256 |
6d7456200487d2f53ddb7251282e845960d3a6184b7e87c128bed569c9953574
|