Loading languages...
MA

ma3u/weather

@ma3u

Simple Weather MCP in Type Script

weather
typescript
mcp-server

Simple Weather MCP in Type Script

Node tutorial based on the Quickstart guide https://modelcontextprotocol.io/quickstart/server#core-mcp-concepts

Claude Desktop:Type in: How is the weather in Redmond (Microsoft)?

  1. Build the server:
npm run build
  1. Run the server:
npm run start
  1. Run the inspector + server:
npx @modelcontextprotocol/inspector node build/index.js

alt text

  1. Add the server to Claude Desktop (MacOS) in file ~/.claudia/claude_desktop_config.json:
{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "/Users/ma3u/projects/weather/build/index.js"
      ]
    }
  }
}
  1. Restart Claude Desktop.

# mcpServer Config

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "/Users/ma3u/projects/weather/build/index.js"
      ]
    }
  }
}

# stdio

node build/index.js
Transport:
stdio
Language:
TypeScript
Created: 4/7/2025
Updated: 4/7/2025