weather-mcp-server-demo

8r34d/weather-mcp-server-demo

3.3

If you are the rightful owner of weather-mcp-server-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a framework designed to facilitate the development and deployment of context-aware applications, particularly those that leverage machine learning models and APIs.

Tools
2
Resources
0
Prompts
0

weather-mcp-server-demo

Build your first MCP Server: Tutorial for Beginners

credits

Big thanks to Debbie O'Brien for providing this tutorial

api

geocoding

weather

typescript sdk

https://github.com/modelcontextprotocol/typescript-sdk

testing and debugging

https://github.com/modelcontextprotocol/typescript-sdk?tab=readme-ov-file#testing-and-debugging

inspector

https://github.com/modelcontextprotocol/inspector

To get up and running right away with the UI, just execute the following:

npx -y @modelcontextprotocol/inspector npx -y tsx main.ts

OR execute

npm test

see package.json

Open the link from the console that contains the MCP_PROXY_AUTH_TOKEN

http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=<your-token>

local mcp weather server

.vscode/mcp.json

{
  "servers": {
    "my-mcp-weather-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "tsx", "main.ts"]
    }
  },
  "inputs": []
}

chat prompt

Chat