How to integrate AccuWeather MCP with Codex

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With AccuWeather MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

AccuWeather logoAccuWeather
Api Key

AccuWeather is a global weather service providing current conditions, forecasts, MinuteCast precipitation, alerts, and lightning data. Use it for fast, localized forecasts and real-time weather alerts.

41 Tools

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With AccuWeather MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Also integrate AccuWeather with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install AccuWeather MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

What is the AccuWeather MCP server, and what's possible with it?

The AccuWeather MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your AccuWeather account. It provides structured and secure access to global weather conditions, forecasts, alerts, precipitation updates, and storm data, so your agent can check current weather, plan around forecasts, monitor alerts, assess precipitation, and track tropical storms on your behalf.

  • Current conditions and forecasts: Have your agent check current conditions and retrieve hourly or daily forecasts for cities and other locations worldwide.
  • Weather alerts and alarms: Let the agent monitor active government weather alerts and threshold-based alarms for locations you care about.
  • Minute-by-minute rain and lightning: Direct your agent to assess near-term precipitation, forecast lightning probability, or review recent lightning strikes around chosen coordinates.
  • Tropical storm tracking: Instruct your agent to find active tropical storms and review their latest positions, observed paths, forecast tracks, intensity, and status.
  • Local weather context: Have your agent find locations, explore nearby cities, review lifestyle indices, or retrieve recent radar and satellite imagery for trip and activity planning.

Conclusion

You've successfully integrated AccuWeather with Codex using Composio's MCP server. Now you can interact with AccuWeather directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for AccuWeather operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various AccuWeather operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
TOOLS

Supported Tools

Every AccuWeather action and event your agent gets out of the box.

Autocomplete Locations

Return location-name suggestions for all locations, cities, or points of interest, optionally restricted to a country.

Get Administrative Area

Return one administrative area by country and administrative-area codes.

Get Country

Return one country by AccuWeather region and country codes.

Get Current Conditions

Return current weather observations for an AccuWeather location key, optionally including extended details and weather photos.

Get Daily Forecast

Return a 1, 5, 7, 10, or 15-day forecast for a location key.

Get Daily Indices

Return 1, 5, 10, or 15-day lifestyle-index forecasts for all indices, one group, or one index at an AccuWeather location.

Get Historical Current Conditions

Return the past 6 or 24 hours of current-condition observations for an AccuWeather location key.

Get Hourly Forecast

Return a 1, 12, 24, 72, or 120-hour forecast for an AccuWeather location key.

Get Index

Return metadata for one AccuWeather lifestyle index.

Get Index Group

Return the lifestyle indices belonging to one AccuWeather index group.

Get Lightning Forecast

Return forecast lightning probabilities for latitude/longitude coordinates.

Get Location

Return full location metadata for an AccuWeather location key.

Get MinuteCast Forecast

Return minute-by-minute precipitation conditions for latitude/longitude coordinates.

Get Radar and Satellite Imagery

Return recent radar and satellite image metadata and URLs for an AccuWeather location at a selected resolution.

Get Region

Return one AccuWeather region by region code.

Get Translation Group

Return translated strings for one AccuWeather translation group.

Get Tropical Storm Current Position

Return the latest observed position of a government-issued tropical storm.

List Active Tropical Storms

Return active government-issued tropical storms globally, by basin, or by basin and government storm ID.

List Administrative Areas

Return administrative areas globally or within a country, one provider page at a time.

List Countries

Return countries globally or within a specific AccuWeather region, one provider page at a time.

List Index Groups

Return lifestyle-index groups and their identifiers.

List Indices

Return all supported lifestyle indices and their identifiers.

List MinuteCast Color Codes

Return full or simplified color-code metadata used in MinuteCast precipitation output.

List Neighboring Cities

Return cities near an AccuWeather location key.

List Recent Lightning Strikes

Return recent lightning strikes within 1 to 60 miles of latitude/longitude coordinates as a GeoJSON FeatureCollection.

List Regions

Return AccuWeather geographic regions and their codes.

List Supported Languages

Return AccuWeather-supported languages with numeric IDs and language codes.

List Top Cities

Return top-ranked AccuWeather cities globally or within one region.

List Top City Conditions

Return current weather conditions for a requested number of globally ranked cities.

List Translation Groups

Return available AccuWeather translation groups and their identifiers.

List Tropical Storm Forecasts

Return forecast positions and intensity for a government-issued tropical storm.

List Tropical Storm Positions

Return the observed position history of a government-issued tropical storm.

List Tropical Storms by Year

Return government-issued tropical storms for a year, optionally filtered by basin and government storm ID.

List Tropical Storm Statuses

Return government-issued tropical storm status categories and wind-speed definitions globally or for one basin.

List Weather Alarms

Return threshold-based weather alarms for the next 1, 5, 10, or 15 days at an AccuWeather location.

List Weather Alerts

Return active government-issued weather alerts for a location key.

Resolve Language Identifier

Convert an AccuWeather language code to its numeric ID or a numeric language ID to its code.

Search Administrative Areas

Search administrative areas by required non-empty name text and optional country and administrative-area code filters, one 25-result provider page at a time.

Search City by IP Address

Resolve an IPv4 or IPv6 address to an AccuWeather city location.

Search Locations

Search cities, general locations, postal codes, or points of interest by text and optional geographic filters.

Search Locations by Coordinates

Find the nearest general location, city, or point of interest to latitude/longitude coordinates.

FAQ

Frequently asked questions

With a standalone AccuWeather MCP server, the agents and LLMs can only access a fixed set of AccuWeather tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from AccuWeather and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right AccuWeather tools.

Yes, absolutely. You can configure which AccuWeather scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your AccuWeather data and credentials are handled as safely as possible.

Start with AccuWeather.It takes 30 seconds.

Managed auth, hosted MCP servers, and every AccuWeather tool your agent needs.Free to start.

Start building