my-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
my-server
An MCP server with a weather widget. server.tool({ widget: { dir: "weather" } }) points at
src/widgets/weather/ (React). mcpfy-sdk bundles it — no server.widget(), no HTML file,
no prompt/resource required.
The weather tool fetches temperature from Open-Meteo on the server.
Lookup in the widget calls that tool through the host (callTool) — the iframe does not fetch the API.
If main.tsx later fetches another origin, uncomment widget.csp.connectDomains in src/server.ts. ChatGPT and Claude apply it; Inspector often does not.
Run
Local (starts the MCP server; widgets are bundled on listen — no separate build first):
npm run dev # default transport: http
npm run dev:stdio
npm run dev:http # HTTP on port 4000Production / ChatGPT (iframes cannot use a one-off dev bundle the same way):
npm run build # mcpfy build && tsc
npm startRelated MCP server: EightyAndSunny
Use it in an MCP host
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["mcpfy", "dev", "--", "--stdio"],
"cwd": "/absolute/path/to/this-project"
}
}
}Next steps
UI:
src/widgets/weather/main.tsx(mcpfy-sdk/widgethooks)Tools without UI: omit
widgetonserver.tool()
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that provides weather data using Open-Meteo API, designed as a teaching tool for improving AI agent tool interfaces.-
- FlicenseNot gradedqualityDmaintenanceA weather-reactive MCP server that renders rich Open-Meteo weather widgets and provides plain JSON weather data, all without an API key.-
- FlicenseNot gradedqualityDmaintenanceA proof-of-concept MCP server that provides weather information using the Open-Meteo API, with tools for greeting, getting weather by coordinates, and by location name.-
- AlicenseAqualityDmaintenanceA simple MCP server that exposes a get_weather tool to fetch real-time weather for any GPS coordinates using the Open-Meteo API, no API key required.113 npmISC