Only add a Controller Class to make your Spring project be a MCP server【添加一个Controller让你的Spring秒变MCP】
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"spring-boot-mcp": {
"command": "npx",
"args": [
"-y",
"sawyer-shi/spring-boot-mcp"
]
}
}
}
Run in terminal:
claude mcp add spring-boot-mcp npx -y sawyer-shi/spring-boot-mcp
Add to .cursor/mcp.json:
{
"mcpServers": {
"spring-boot-mcp": {
"command": "npx",
"args": [
"-y",
"sawyer-shi/spring-boot-mcp"
]
}
}
}