
spring ai mcp nacos
spring ai结合nacos实现mcp的自动注册。
Repository Info
About This Server
spring ai结合nacos实现mcp的自动注册。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
spring-ai-mcp-nacos
1. 安装nacos:
docker 安装nacos:
-
docker pull nacos/nacos-server:v3.0.0
-
然后执行: docker run --name nacos-standalone-derby
-e MODE=standalone
-e NACOS_AUTH_TOKEN=c2stMDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg=
-e NACOS_AUTH_IDENTITY_KEY=nacos_server
-e NACOS_AUTH_IDENTITY_VALUE=nacos_2025
-p 8080:8080
-p 8848:8848
-p 9848:9848
-d nacos/nacos-server:v3.0.0备注:NACOS_AUTH_TOKEN:是要用来解密的密钥。相关的可以看:https://nacos.io/en/docs/v3.0/quickstart/quick-start-docker/
2. 项目配置
spring:
ai:
mcp:
server:
name: spring-ai-alibaba-demo
version: 1.0.0
type: SYNC
sse-message-endpoint: /spring-ai-alibaba-demo/message
alibaba:
mcp:
nacos:
enabled: true
server-addr: 127.0.0.1:8848 # Nacos 地址
service-namespace: public # Nacos 命名空间 ID
service-group: DEFAULT_GROUP
username: nacos # nacos用户
password: nacos # nacos密码
Quick Start
Clone the repository
git clone https://github.com/zhangtusheng/spring-ai-mcp-nacosInstall dependencies
cd spring-ai-mcp-nacos
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.