drio
Open app

MCP Weather Server

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Weather Server is a TypeScript implementation of the Model Context Protocol (MCP) that provides weather information tools using Server-Sent Events (SSE) transport.

To use the MCP Weather Server, clone the repository, install the dependencies, and start the server. Clients can connect to the server to access weather tools.

  • Implements MCP over SSE transport - Provides weather tools: get-forecast for weather forecasts and get-alerts for active weather alerts - Connects to the US National Weather Service API - Supports multiple client connections
  1. Retrieving weather forecasts for specific locations in the US.
  2. Getting active weather alerts for different states.
  3. Integrating with AI assistants to provide weather information through natural language.

Add to your AI client

Use these steps to connect MCP Weather Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-tyfeng1997": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tyfeng1997"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-tyfeng1997": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tyfeng1997"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-tyfeng1997": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tyfeng1997"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-tyfeng1997": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tyfeng1997"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-tyfeng1997": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tyfeng1997"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-tyfeng1997": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-tyfeng1997"
      ]
    }
  }
}

FAQ

What programming language is used for MCP Weather Server?

The server is implemented in TypeScript.

How can I test if the server is running?

You can test the server by making a request to the SSE endpoint using curl.

Can I customize the server?

Yes! You can change the port and add more tools by modifying the code.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2446,"uuid":"0807f467-ec6c-40cb-82df-a5c301631e8e","name":"mcp-server","title":"MCP Weather Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/42445931?v=4","created_at":"2025-03-13T07:59:56.922Z","updated_at":"2025-03-13T08:41:48.995Z","status":"created","author_name":"tyfeng1997","author_avatar_url":"https://avatars.githubusercontent.com/u/42445931?v=4","tags":"mcp-server,weather,sse","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/tyfeng1997/mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-12 19:00:38\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

MCP Weather Server — MCP Registry