# AccuWeather — Pipedream Connect

> Local, National, & Global Daily Weather Forecast

- API slug: `accuweather` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Data Analytics
- Website: https://www.accuweather.com
- This page (HTML): https://pipedream.com/apps/accuweather
- Tools: 5 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: accuweather`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "accuweather",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Get Current Conditions:
const result = await mcp.callTool({
  name: "accuweather-get-current-conditions",
  arguments: {
    locationKey: "Location Key",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "accuweather-get-current-conditions",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    accuweather: { authProvisionId: "apn_xxxxxxx" },
    locationKey: "Location Key",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (5)

### `accuweather-get-current-conditions` — Get Current Conditions (Read-only)

Retrieve current weather conditions for a specific location using its location key. See the documentation

Full schema: https://pipedream.com/apps/accuweather/actions/get-current-conditions.md

### `accuweather-get-daily-forecast` — Get Daily Forecast (Read-only)

Get daily weather forecast for a specific location with temperature, precipitation, and conditions. See the documentation

Full schema: https://pipedream.com/apps/accuweather/actions/get-daily-forecast.md

### `accuweather-get-historical-weather` — Get Historical Weather (Read-only)

Retrieve historical weather data for a specific location and date range. See the documentation

Full schema: https://pipedream.com/apps/accuweather/actions/get-historical-weather.md

### `accuweather-get-hourly-forecast` — Get Hourly Forecast (Read-only)

Retrieve hourly weather forecast (1-12 hours) for a specific location with detailed weather data. See the documentation

Full schema: https://pipedream.com/apps/accuweather/actions/get-hourly-forecast.md

### `accuweather-get-location-key` — Get Location Key (Read-only)

Search for a location and retrieve its unique location key required for weather API calls. See the documentation

Full schema: https://pipedream.com/apps/accuweather/actions/get-location-key.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
