OpenMCP

open-weather

...

@open-mcp/open-weather

Using the remote server

To use the hosted Streamable HTTP server, add the following to your client config:

{
  "mcpServers": {
    "open-weather": {
      "transport": "streamableHttp",
      "url": "https://mcp.open-mcp.org/api/server/open-weather@latest/mcp"
    }
  }
}

Forwarding variables

You can forward "environment" variables to the remote server by including them in the request headers or URL query string (headers take precedence). Just prefix the variable name with FORWARD_VAR_ like so:

https://mcp.open-mcp.org/api/server/open-weather@latest/mcp?FORWARD_VAR_OPEN_MCP_BASE_URL=https%3A%2F%2Fapi.example.com

Security

Sending authentication tokens as forwarded variables is not recommended

Installing locally

If you want to run the server locally on your own machine instead of using the remote server, first set the environment variables as shell variables:

# No environment variables required for this server

Then use the OpenMCP config CLI to add the server to your MCP client:

Claude desktop

npx @open-mcp/config add open-weather \
  ~/Library/Application\ Support/Claude/claude_desktop_config.json

Cursor

Run this from the root of your project directory or, to add to all cursor projects, run it from your home directory ~.

npx @open-mcp/config add open-weather \
  .cursor/mcp.json

Other

npx @open-mcp/config add open-weather \
  /path/to/client/config.json

Manually

If you don't want to use the helper above, add the following to your MCP client config manually:

{
  "mcpServers": {
    "open-weather": {
      "command": "npx",
      "args": ["-y", "@open-mcp/open-weather"],
      "env": {}
    }
  }
}

Environment variables

  • OPEN_MCP_BASE_URL - overwrites the base URL of every tool's underlying API request

Tools

expandSchema

Expand the input schema for a tool before calling the tool

Input schema

  • toolName (string)
  • jsonPointers (array)

getweatherdata

Environment variables

No environment variables required

Input schema

  • lat (number)
  • lon (number)
  • appid (string)

On this page