OpenMCP

open-weather

...

@open-mcp/open-weather

Installing

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": {}
    }
  }
}

Customizing the base URL

Set the environment variable OPEN_MCP_BASE_URL to override each tool's base URL. This is useful if your OpenAPI spec defines a relative server URL.

Other environment variables

No environment variables required

Inspector

Needs access to port 3000 for running a proxy server, will fail if http://localhost:3000 is already busy.

npx -y @modelcontextprotocol/inspector npx -y @open-mcp/open-weather
  • Open http://localhost:5173
  • Transport type: STDIO
  • Command: npx
  • Arguments: -y @open-mcp/open-weather
  • Click Environment Variables to add
  • Click Connect

It should say MCP Server running on stdio in red.

  • Click List Tools

Tools

expandSchema

Expand the input schema for a tool before calling the tool

Input schema

{
  toolName: z.string(),
  jsonPointers: z.array(z.string().startsWith("/").describe("The pointer to the JSON schema object which needs expanding")).describe("A list of JSON pointers"),
}

getweatherdata

Environment variables

Input schema

{
  "lat": z.number().describe("Latitude of the location."),
  "lon": z.number().describe("Longitude of the location."),
  "appid": z.string().describe("API key for authentication.")
}

On this page