🍵 Nacos MCP Server
专为与 Nacos 集群无缝交互和自动化而设计的强大 MCP(模型上下文协议)服务器
赋能大模型搜索、读取和管理 Nacos 资源,包括命名空间、服务、配置和集群节点。
✨ 功能特性
📝 配置管理
- 🗂️ - 列出所有可用的命名空间
Power your agent
Install from the publisher. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
No packaged release in the registry yet. Follow the repository README.
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchFrom the publisher
专为与 Nacos 集群无缝交互和自动化而设计的强大 MCP(模型上下文协议)服务器
赋能大模型搜索、读取和管理 Nacos 资源,包括命名空间、服务、配置和集群节点。
一款与 Nacos交互和自动化而设计的 MCP Server。它允许用户使用大模型搜索和读取 Nacos 集群中与命名空间、服务、配置和节点相关的信息。
本项目基于 Spring AI MCP Server,提供:
克隆项目
git clone https://github.com/your-username/nacos-mcp-server.git
cd nacos-mcp-server
配置 Nacos 连接
编辑 src/main/resources/application.yaml:
nacos:
server: http://your-nacos-server:8848
username: [your-nacos-username]
password: [your-nacos-password]
构建和运行
mvn clean install
mvn spring-boot:run
访问 MCP 服务器
服务器将在默认端口启动,SSE 端点地址为 /sse,mcp client连接完整地址为:IP:8080/sse
MCP连接配置:
{
"mcpServers": {
"nacos-mcp-server": {
"url": "http://192.168.31.127:8080/sse",
"disabled": false,
"autoApprove": []
}
}
}
Docker部署
version: '3.9'
services:
nacos-mcp-server:
image: bubua12/nacos-mcp-server:v2.4.3
container_name: nacos-mcp-server
restart: always
ports:
- "8080:8080"
environment:
NACOS_SERVER: "http://your-nacos-server:8848"
NACOS_USERNAME: "your-nacos-username"
NACOS_PASSWORD: "your-nacos-password"
APP_LOG_LEVEL: "DEBUG"
HTTP_LOG_LEVEL: "INFO"
JAVA_OPTS: "-Xms512m -Xmx1024m"
spring:
application:
name: nacos-mcp-server
main:
banner-mode: off
ai:
mcp:
server:
name: nacos-mcp-server
version: v2.4.3
sse-endpoint: /sse
instructions: "Nacos MCP AI Tools - 提供Nacos集群管理的AI工具"
nacos:
server: ${NACOS_SERVER:http://192.168.1.242:8848}
username: ${NACOS_USERNAME:nacos}
password: ${NACOS_PASSWORD:nacos}
logging:
level:
com.bubua12.mcp.nacos: ${APP_LOG_LEVEL:INFO}
org.springframework.web.reactive.function.client: ${HTTP_LOG_LEVEL:INFO}
nacos-mcp-server/
├── src/main/java/com/bubua12/mcp/nacos/
│ ├── config/
│ │ └── ToosConfig.java # 工具配置
│ ├── service/
│ │ └── NacosMetaService.java # 核心 Nacos 操作
│ └── NacosWebfluxMCPServerApplication.java # 主应用程序
├── src/main/resources/
│ └── application.yaml # 应用配置
└── pom.xml # Maven 依赖
NacosMetaService 中创建新方法@Tool 注解并提供描述@ToolParam 进行参数文档化示例:
@Tool(description = "根据名称获取服务详情")
public Mono<String> getServiceDetails(
@ToolParam(description = "服务名称") String serviceName,
@ToolParam(description = "命名空间 ID") String namespace) {
// 实现代码
}
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目基于 MIT 许可证 - 详细信息请查看 LICENSE 文件。
⭐ 如果这个项目对您有帮助,请给个 Star!
由 bubua12 制作
一款与 Nacos交互和自动化而设计的 MCP Server。它允许用户使用大模型搜索和读取 Nacos 集群中与命名空间、服务、配置和节点相关的信息。
Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
No required environment variable is listed on this record.
Nacos runs locally over stdio.
Last checked 2026-10-28. 一款与 Nacos交互和自动化而设计的 MCP Server。它允许用户使用大模型搜索和读取 Nacos 集群中与命名空间、服务、配置和节点相关的信息。