weather-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@weather-mcpwhat's the weather in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
weather-mcp
An MCP server built on AgentBack that exposes weather data from the free Open-Meteo API — no API key required. Decorator-driven tools with Zod input/output schemas over stdio.
npm install
npm run build && npm start # stdio MCP server (for Claude Desktop / Cursor)
npm run serve:http # remote MCP server over HTTP at /mcp
npm test # in-memory MCP session, no process spawn
npm run console # dev web UI at http://localhost:3000/consoleTransports
The same tools and DI wiring (src/wiring.ts) are served three ways:
Entry | Command | Transport | Use |
|
| stdio | Local — wire into Claude Desktop / Cursor. |
|
| Streamable HTTP at | Remote clients over the network. |
|
| HTTP web UI | Development inspector (see below). |
HTTP transport
npm run serve:http exposes the server at http://localhost:3000/mcp
(PORT=3939 npm run serve:http to change the port). Point any Streamable-HTTP
MCP client at that URL.
Auth: every request needs a valid API key in the x-api-key header (or
?apiKey=). Keys come from MCP_API_KEYS (comma-separated); if unset, a
dev-local-key is generated and printed to stderr so local runs still work.
MCP_API_KEYS=key1,key2 PORT=3939 npm run serve:http
# client must send: x-api-key: key1Rate limiting: tools/call is throttled per (caller, tool) — 60/min by
default, with get_forecast capped tighter at 20/min. Over the limit returns a
JSON-RPC 429 with Retry-After. Both are configured in src/serve-http.ts.
For public deployment also set
allowedHosts/allowedOriginsoninstallMcpHttp(DNS-rebinding protection), and consider a Redisstorefor the rate limiter so buckets are shared across instances.
Related MCP server: mcp-weather
Dev console
npm run console starts the AgentBack console — a web
UI that composes the MCP inspector (list and invoke your tools from a form),
the OpenAPI/Swagger explorer, and a DI context explorer. Override the
port with PORT=3737 npm run console.
The console serves over HTTP, so it runs a RestApplication (src/console.ts)
that reuses the exact same tool wiring as the stdio server (src/wiring.ts).
It's a development tool — the stdio entry point (src/main.ts) is what you wire
into Claude Desktop / Cursor.
Tools
Tool | Purpose |
| Resolve a place name (e.g. "Tokyo") to candidate latitude/longitude. |
| Current conditions by |
| Daily forecast (1–16 days) by |
Each tool accepts temperature_unit (celsius/fahrenheit) and
wind_speed_unit (kmh/ms/mph/kn). When you pass a city, it is
geocoded automatically; pass coordinates directly to skip that step.
How it's wired
src/schemas.ts— the single source of truth. Each Zod schema is simultaneously the runtime validator, thez.infertype, and the agent-visible MCP input/output schema.src/weather-service.ts—WeatherService, a stateless Open-Meteo client (geocoding + current/forecast), bound in DI asservices.weather.src/tools/weather.tools.ts—@mcpServer()-tagged tool class; each@toolcarries its input/output schema and delegates to the injected service.src/application.ts— mountsMCPComponent, binds the service, and registers the tool class withapp.controller(...)so the MCP dispatcher resolves it with constructor injection (a class registered viaapp.service(...)is instantiated withnewand would not get the injected service).
Claude Desktop / Cursor config
{
"mcpServers": {
"weather-mcp": {
"command": "node",
"args": ["/absolute/path/to/weather-mcp/dist/main.js"]
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ninemindai/agentback-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server