GribStream for AI tools

This page is the starting point for AI integrations with GribStream. It is intended for people and tools building workflows on top of GribStream with ChatGPT, Claude, Gemini, Codex, Claude Code, Cursor, custom agents, or any other AI runtime that can call tools and make HTTP requests.

The recommended integration for web chat tools is the hosted GribStream MCP connector. It helps AI tools discover datasets, resolve exact selectors, build valid /timeseries and /runs requests, validate expressions, and execute OAuth-protected live weather queries.

Hosted MCP connector

Use the hosted MCP connector when your AI tool supports remote MCP over Streamable HTTP.

https://gribstream.com/mcp

Use the URL exactly as shown. Do not include trailing punctuation such as a period when copying it into an MCP client.

The connector exposes read-only discovery, selector lookup, request building, and validation before OAuth. For live /timeseries and /runs query tools, GribStream OAuth asks you to sign in, approve the connector, and choose the active API token it should use. The raw API token is not shown to the AI client.

Before you connect

If you connect the MCP before creating an API token, public discovery tools can still work, but authenticated data-query tools will not be able to run live weather queries until a token is available and selected.

Setup by client

AI vendor settings change frequently. The stable pieces are the remote MCP URL, Streamable HTTP transport, GribStream OAuth, and the requirement that your GribStream account has an API token before live data queries can run. The examples below follow the current public vendor documentation, but use the vendor documentation links when a product UI has moved.

Client Recommended path Live query auth
ChatGPT Custom ChatGPT app / MCP app using https://gribstream.com/mcp OAuth, then choose a GribStream API token
Claude.ai Custom connector using https://gribstream.com/mcp OAuth, then choose a GribStream API token
Codex MCP for discovery in Codex CLI or the IDE extension; direct API with GRIBSTREAM_API_TOKEN for larger files and plotting workflows codex mcp login for MCP, or an API token environment variable for direct API
Claude Code Remote MCP from the Claude Code CLI; direct API with GRIBSTREAM_API_TOKEN for larger files and plotting workflows /mcp OAuth inside Claude Code, or an API token environment variable for direct API
Gemini CLI Remote MCP configuration when supported; otherwise use OpenAPI and the skill file with a token OAuth if the CLI supports it, or API token environment variable
Other MCP clients Remote Streamable HTTP MCP endpoint OAuth public client with PKCE
ChatGPT

OpenAI's current documentation describes full MCP support and developer mode for ChatGPT Business, Enterprise, and Edu workspaces on ChatGPT web. It also documents narrower Pro support for read/fetch MCP apps. Admins, owners, or authorized developers can create and test custom MCP apps privately, then publish them for the workspace.

  • Enable developer mode if your workspace requires it.
  • Create a custom app from the Apps settings flow.
  • Enter https://gribstream.com/mcp as the MCP endpoint.
  • Choose OAuth when ChatGPT asks for the authentication mechanism.
  • Use ChatGPT's tool scan flow. If GribStream OAuth appears, sign in and choose the API token the MCP should use.

After authorization succeeds, ask ChatGPT to use the authenticated GribStream query tools when you want actual weather values, CSV output, plots, or model comparisons. If only read-only discovery tools are visible, complete OAuth again and rescan tools. If the app was already published before the query tools changed, refresh the app actions where supported or recreate and republish the custom app.

Reference: OpenAI developer mode and MCP apps in ChatGPT.

Claude.ai

Claude's current documentation describes custom connectors using remote MCP on Claude, Claude Desktop, Cowork, and mobile clients for Free, Pro, Max, Team, and Enterprise plans, with Free currently limited to one custom connector. For Team and Enterprise plans, an Owner or Primary Owner adds the connector for the organization; users then connect and authenticate it. For Pro and Max plans, add it from Customize > Connectors.

  • Add a custom web connector.
  • Enter https://gribstream.com/mcp as the remote MCP server URL.
  • Use automatic OAuth discovery first. If Claude asks for manual OAuth details, use the manual OAuth fields below.
  • Click Connect, complete GribStream OAuth, and choose the API token the MCP should use.

Claude should discover GribStream's OAuth metadata from the MCP endpoint. Sign in to GribStream, approve the connector, and choose the API token to use for live queries.

Reference: Claude custom connectors using remote MCP.

Codex

Codex supports Streamable HTTP MCP servers in the CLI and IDE extension. Add GribStream MCP with the CLI, then authenticate with the MCP login command:

codex mcp add gribstream --url https://gribstream.com/mcp
codex mcp list
codex mcp login gribstream

You can also configure Codex directly in ~/.codex/config.toml or a trusted project .codex/config.toml:

[mcp_servers.gribstream]
url = "https://gribstream.com/mcp"

Remote MCP can work well for discovery, selector lookup, request validation, and small live queries. For larger CSV downloads, pandas workflows, plotting, retries, and custom batching, Codex is often better off using the regular GribStream API directly with an environment variable read from a private token file. Use the Authentication setup below, then start Codex from that same shell.

Reference: OpenAI Docs MCP setup examples.

Claude Code

Claude Code supports remote HTTP MCP servers through its CLI. Add GribStream and then use /mcp inside Claude Code to authenticate if OAuth is required:

claude mcp add --transport http gribstream https://gribstream.com/mcp
claude mcp list

Remote MCP can work well for discovery, selector lookup, request validation, and small live queries. For larger CSV downloads, pandas workflows, plotting, retries, and custom batching, Claude Code is often better off using the regular GribStream API directly with an environment variable read from a private token file. Use the Authentication setup below, then start Claude Code from that same shell.

Reference: Claude Code MCP documentation.

Gemini CLI

Gemini CLI supports MCP servers in settings.json and through the gemini mcp command. The command form for Streamable HTTP is:

gemini mcp add --transport http gribstream https://gribstream.com/mcp
gemini mcp list

You can also add this to ~/.gemini/settings.json:

{
  "mcpServers": {
    "gribstream": {
      "httpUrl": "https://gribstream.com/mcp",
      "timeout": 30000
    }
  }
}

Then start Gemini CLI and run /mcp to confirm the connector is available. Gemini CLI documentation describes OAuth support for remote HTTP MCP servers, with /mcp auth to manage authentication. If your CLI environment cannot open a browser or receive localhost OAuth callbacks, use the skill file or OpenAPI fallback with GRIBSTREAM_API_TOKEN.

Reference: Gemini CLI MCP server documentation.

Manual OAuth fields

Most clients should discover these automatically. If a third-party MCP client asks for manual OAuth 2.0 configuration, use:

  • Authorization URL: https://gribstream.com/authorize
  • Token URL: https://gribstream.com/token
  • Client ID: gribstream-mcp-public
  • Client Secret: leave empty; do not type blank
  • Scopes: leave empty
  • Resource or audience, if requested: https://gribstream.com/mcp

A setup form that requires a non-empty client secret is asking for a confidential-client OAuth flow. GribStream's hosted MCP uses a public-client PKCE flow instead.

What the MCP provides

GribStream MCP deliberately separates public planning tools from authenticated data-query tools.

If the user asks an AI tool to fetch, download, plot, analyze, or compare actual weather values, the tool should use the authenticated query tools. If only public read-only tools are visible, complete OAuth or switch to a direct API workflow with GRIBSTREAM_API_TOKEN.

Chat your way into an analysis

A forecast request can look reasonable and still be wrong. The connector helps the AI check the catalog, use exact selectors, choose the right endpoint, and validate the request before you run it.

A session can start broad:

What models does GribStream support for global forecasts?

Then narrow into a concrete request:

Build a request for temperature, wind speed, and relative humidity in Lisbon tomorrow.

Then keep iterating:

  1. Make it a grid over Portugal at 0.5 degrees.
  2. Show what this would have looked like using a model-run cutoff 18 hours ago.
  3. Give me the last three model runs forecasting those same valid hours.
  4. Switch from GFS to IFS and re-resolve the selectors.

With an authenticated hosted connector or a GribStream API token available to a local AI tool, that can turn into actual analysis: compare models, calculate mean absolute error against an analysis dataset, search for weather thresholds, or summarize where two models disagree most.

Data handling guidance

Core resources

Authentication setup

The hosted MCP connector uses OAuth for live MCP queries. During setup, sign in to GribStream with an account that already has an active API token, then approve the connector and choose which token it should use. A free API token is enough to complete the flow for supported free-tier usage. The raw token is not returned to the AI client.

  1. Create or sign in to an account at /auth/login.
  2. Create an API token from /app/dashboard.
  3. Connect the MCP endpoint and complete the GribStream sign-in flow when your AI tool asks for authorization.

For local CLI tools, coding agents, or clients that do not support OAuth for remote MCP servers yet, load an API token into the environment from a private token file and use the generated API request or the portable skill file.

macOS or Linux shell setup. The editor command uses VISUAL or EDITOR if set and falls back to vi; opening the token file manually in your preferred editor is also fine.

mkdir -p ~/.config/gribstream
chmod 700 ~/.config/gribstream
touch ~/.config/gribstream/token
chmod 600 ~/.config/gribstream/token
"${VISUAL:-${EDITOR:-vi}}" ~/.config/gribstream/token
export GRIBSTREAM_API_TOKEN="$(tr -d '\r\n' < ~/.config/gribstream/token)"

Windows PowerShell setup. This opens Notepad for the token file; any editor that saves plain text is fine.

$dir = Join-Path $env:APPDATA "GribStream"
New-Item -ItemType Directory -Force $dir | Out-Null
$tokenFile = Join-Path $dir "token"
New-Item -ItemType File -Force $tokenFile | Out-Null
Start-Process notepad $tokenFile -Wait
$env:GRIBSTREAM_API_TOKEN = (Get-Content $tokenFile -Raw).Trim()

CLI tools typically inherit environment variables from the parent shell that launched them. In practice that means you should load GRIBSTREAM_API_TOKEN first and then start the tool from that same terminal session. If the tool is already running, restart it after setting the variable.

Paste the token into the editor, not into an export, set, or PowerShell assignment command, so it does not end up in shell history. Using an environment variable loaded from a private file, or a vendor secret store mapped to GRIBSTREAM_API_TOKEN, is preferred. Avoid pasting tokens into prompts, checked-in files, shell history, or reusable scripts.

What the skill teaches

The public skill file is intentionally strict about the things AI tools tend to get wrong:

Recommended workflow for AI tools

  1. Connect the hosted MCP at https://gribstream.com/mcp if your AI tool supports remote MCP.
  2. Make sure the GribStream account used for OAuth has an active API token before asking for live values.
  3. Ask the AI tool to use GribStream MCP to discover datasets, resolve selectors, and build a validated request. These read-only planning tools work before OAuth.
  4. Review the generated request, especially time ranges, coordinates, grid size, variables, and expressions.
  5. Use the authenticated MCP live query tools for web chat workflows, or run the generated request against the regular GribStream API with GRIBSTREAM_API_TOKEN for local file, script, and plotting workflows.
  6. Use the OpenAPI spec, skill file, Quick-start, and Expressions pages as references or fallback inputs for tools that do not support MCP.

Raw file

The current public skill file can be fetched directly at:

https://gribstream.com/skills/gribstream-query.md

That file is meant to be portable across AI vendors. It is most useful for tools that do not support remote MCP yet.