drio
Open app

mcp-server-weather

Source

Catalog onlyCatalog onlySTDIO

Overview

The mcp-server-weather is an official example for building an MCP Server that provides agents with the ability to query weather information.

To use mcp-server-weather, follow the quickstart guide available at https://modelcontextprotocol.io/quickstart/server and set up the server to allow agents to access weather data.

  • Provides weather querying capabilities for agents. - Official example for building MCP Servers. - Integration with Cursor as an MCP Client.
  1. Enabling agents to provide real-time weather updates.
  2. Integrating weather data into applications using MCP protocol.
  3. Demonstrating the capabilities of MCP Servers in handling weather queries.

Add to your AI client

Use these steps to connect mcp-server-weather 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-weather-k8scat": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-weather-k8scat"
      ]
    }
  }
}

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-weather-k8scat": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-weather-k8scat"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

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-weather-k8scat": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-weather-k8scat"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What is an MCP Server?

An MCP Server is a server that implements the Model Context Protocol to facilitate communication between agents and data sources.

Can I customize the mcp-server-weather?

Yes! You can modify the server code to suit your specific needs and integrate additional features.

Is there any documentation available?

Yes! Comprehensive documentation is available at the provided quickstart link.