This repository contains a minimalist example of setting up MCP with Spring AI:- an MCP server that exposes "tools" via SSE/WebMVC- an MCP client.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"java-mcp-client-serv": {
"command": "npx",
"args": [
"-y",
"duocrafters/java-mcp-client-server"
]
}
}
}
Run in terminal:
claude mcp add java-mcp-client-serv npx -y duocrafters/java-mcp-client-server
Add to .cursor/mcp.json:
{
"mcpServers": {
"java-mcp-client-serv": {
"command": "npx",
"args": [
"-y",
"duocrafters/java-mcp-client-server"
]
}
}
}