This repo has the working example of MCP server in java.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"airqualitymcpserver": {
"command": "npx",
"args": [
"-y",
"PorasS/AirQualityMCPServer"
]
}
}
}
Run in terminal:
claude mcp add airqualitymcpserver npx -y PorasS/AirQualityMCPServer
Add to .cursor/mcp.json:
{
"mcpServers": {
"airqualitymcpserver": {
"command": "npx",
"args": [
"-y",
"PorasS/AirQualityMCPServer"
]
}
}
}