my-server
my-server
Ein MCP-Server mit einem Wetter-Widget. server.tool({ widget: { dir: "weather" } }) zeigt auf
src/widgets/weather/ (React). mcpfy-sdk bündelt es — kein server.widget(), keine HTML-Datei,
kein Prompt/Resource erforderlich.
Das weather-Tool ruft die Temperatur von Open-Meteo auf dem Server ab.
Die Suche im Widget ruft dieses Tool über den Host auf (callTool) — das iframe ruft die API nicht per fetch auf.
Falls main.tsx später eine andere Origin per fetch abruft, kommentiere widget.csp.connectDomains in src/server.ts aus. ChatGPT und Claude wenden es an; Inspector oft nicht.
Ausführen
Lokal (startet den MCP-Server; Widgets werden beim Serverstart gebündelt — kein separater Build vorab):
npm run dev # default transport: http
npm run dev:stdio
npm run dev:http # HTTP on port 4000Produktion / ChatGPT (iframes können ein einmaliges dev-Bundle nicht auf dieselbe Weise verwenden):
npm run build # mcpfy build && tsc
npm startRelated MCP server: EightyAndSunny
In einem MCP-Host verwenden
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["mcpfy", "dev", "--", "--stdio"],
"cwd": "/absolute/path/to/this-project"
}
}
}Nächste Schritte
UI:
src/widgets/weather/main.tsx(mcpfy-sdk/widget-Hooks)Tools ohne UI:
widgetbeiserver.tool()weglassen
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.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA minimal MCP server that provides weather data using Open-Meteo API, designed as a teaching tool for improving AI agent tool interfaces.
- FlicenseNot gradedqualityBmaintenanceA weather-reactive MCP server that renders rich Open-Meteo weather widgets and provides plain JSON weather data, all without an API key.
- FlicenseNot gradedqualityCmaintenanceA 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.
- AlicenseAqualityBmaintenanceA 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.114ISC
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/vmridul/sample-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server