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.
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.
https://gribstream.com/mcp exactly in the MCP URL field.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.
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 |
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.
https://gribstream.com/mcp as the MCP endpoint.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'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.
https://gribstream.com/mcp as the remote MCP server URL.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 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 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 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.
Most clients should discover these automatically. If a third-party MCP client asks for manual OAuth 2.0 configuration, use:
https://gribstream.com/authorizehttps://gribstream.com/tokengribstream-mcp-publicblankhttps://gribstream.com/mcpA 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.
GribStream MCP deliberately separates public planning tools from authenticated data-query tools.
/timeseries and /runs tools that fetch actual weather forecast values through the selected GribStream API token.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.
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:
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.
suggested_filename so one model or dataset result does not overwrite another./timeseries output by location fields and forecasted_time; sort /runs output by location fields, forecasted_at, and forecasted_time.Accept: text/csv, Accept-Encoding: gzip, and curl --compressed.https://gribstream.com/mcp - remote Streamable HTTP MCP endpoint for AI tools that support custom connectors./timeseries, and /runs.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.
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.
The public skill file is intentionally strict about the things AI tools tend to get wrong:
/timeseries vs /runstimesList means valid times on /timeseries and run times on /runshttps://gribstream.com/mcp if your AI tool supports remote MCP.GRIBSTREAM_API_TOKEN for local file, script, and plotting workflows.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.