Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-java-clima": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Servidor MCP (Model Context Protocol) em Java 17 / Spring Boot 3, com transporte HTTP. Expõe tools de clima/tempo e, para compatibilidade com ChatGPT MCP, inclui ações search e fetch.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in maps
A Model Context Protocol (MCP) server providing TomTom's location services, search, routing, and traffic data to AI agents.
Real-time BART departures, trip planning, fares, stations, and advisories.
MCP server for the VesselAPI — maritime vessel tracking, port events, emissions, and navigation data
Fair meeting point discovery for AI agents with isochrone-based travel time fairness
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Java Clima and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Servidor MCP (Model Context Protocol) em Java 17 / Spring Boot 3, com transporte HTTP.
Expõe tools de clima/tempo e, para compatibilidade com ChatGPT MCP, inclui ações search e fetch.
Recomendo a leitura do Conceitos.md antes de seguir para os próximos passos.
Compatibilidade de transporte
- Spring AI 1.0.2 → HTTP + SSE (spec 2024-11-05)
- Spring AI 1.1.x (preview) → Streamable HTTP (spec 2025-03-26 / 2025-06-18)
Protocolo MCP com negociação de versão
Transporte HTTP/SSE (1.0.2) ou Streamable HTTP (1.1.x)
Tools (exemplos):
search e fetch (descoberta/obtenção exigidas pelo ChatGPT)getWeatherForecastByLocation(lat, lon) — previsão detalhada (fonte: weather.gov, EUA)getAlerts(uf) — alertas por estado dos EUA (ex.: NY, CA)git clone https://github.com/<SEU_USUARIO>/<SEU_REPO>.git
cd <SEU_REPO>
./mvnw package -DskipTests
java -jar target/mcpweather-0.0.1-SNAPSHOT.jar
Por padrão, o servidor inicia em http://localhost:8080/mcp.
curlTerminal 1 — abra o SSE:
curl -N -H "Accept: text/event-stream" http://127.0.0.1:8080/sse
Terminal 2 — initialize (JSON-RPC):
curl -s -X POST http://127.0.0.1:8080/mcp/message \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"0.1"}}}'
Listar tools:
curl -s -X POST http://127.0.0.1:8080/mcp/message \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":"2","method":"tools/list","params":{}}'
Chamar getWeatherForecastByLocation (ex.: Seattle):
curl -s -X POST http://127.0.0.1:8080/mcp/message \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":"3","method":"tools/call","params":{"name":"getWeatherForecastByLocation","arguments":{"latitude":47.6062,"longitude":-122.3321}}}'
initialize:
curl -s -X POST http://127.0.0.1:8080/mcp \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"0.1"}}}'
Listar tools:
curl -s -X POST http://127.0.0.1:8080/mcp \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":"2","method":"tools/list","params":{}}'
O ChatGPT não aceita
localhost/IPs privados por segurança. Use HTTPS público (domínio) ou um túnel (ngrok/Cloudflare Tunnel).
Com ngrok (gratuito): Criando a conta e obtendo o token https://dashboard.ngrok.com/get-started/your-authtoken
ngrok config add-authtoken <SEU_TOKEN>
ngrok http 8080
# anote a URL https://<subdominio>.ngrok-free.app

Configuração (SSE, Spring AI 1.0.2):

{
"name": "mcp-server-clima-tempo",
"transport": {
"type": "sse",
"url": "https://fa54c7e0ae29.ngrok-free.app/sse"
}
}
Salve e teste.
Agora você pode enviar comandos como:
Use
... [View full README on GitHub](https://github.com/caiocf/mcp-server-java-clima#readme)