# Weather MCP server

> Provides weather forecasts and alerts by connecting AI clients to the US National Weather Service API.

- Repository: https://github.com/dingw1982/quickstart-resources
- Page: https://hostedmcp.org/servers/dingw1982/quickstart-resources
- Transport: stdio
- Stars: 0
- Latest version: 1.0.1

## Install

### Claude Code

```sh
claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quickstart-resources -- npx -y @dingw1982/mcp-quickstart-ts
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "quickstart-resources": {
      "command": "npx",
      "args": [
        "-y",
        "@dingw1982/mcp-quickstart-ts"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "quickstart-resources": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dingw1982/mcp-quickstart-ts"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"quickstart-resources","type":"stdio","command":"npx","args":["-y","@dingw1982/mcp-quickstart-ts"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "quickstart-resources": {
      "command": "npx",
      "args": [
        "-y",
        "@dingw1982/mcp-quickstart-ts"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add quickstart-resources --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @dingw1982/mcp-quickstart-ts
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.quickstart-resources]
command = "npx"
args = ["-y", "@dingw1982/mcp-quickstart-ts"]

[mcp_servers.quickstart-resources.env]
YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quickstart-resources npx -- -y @dingw1982/mcp-quickstart-ts
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "quickstart-resources": {
      "command": "npx",
      "args": [
        "-y",
        "@dingw1982/mcp-quickstart-ts"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `YOUR_API_KEY` | yes | yes | Your API key for the service |

## FAQ

### What tools does the weather server expose?

The server exposes two tools: get_forecast and get_alerts.

### Does the client require an API key to list tools?

No, you can verify the MCP wiring and list tools without credentials, though an ANTHROPIC_API_KEY is needed for full operation.

### Can I use different languages for the client and server?

Yes, you can mix and match languages, such as using a Python client to drive a TypeScript server.
