worldmonitor
Official command-line client for the World Monitor global-intelligence API. Script country briefs, risk scores, and conflict / cyber / market / news feeds β plus any of the 59 MCP tools β from your shell or an agent, without writing an API integration.
The CLI is a thin, dependency-free wrapper over the MCP server (the recommended agent surface) with a REST escape hatch. It ships as ESM and runs on Node 18+.
π Full documentation: worldmonitor.app/docs/cli
Install
npm install -g worldmonitor # installs the `worldmonitor` command (alias: `wm`)
# or run without installing:
npx worldmonitor tools
Quick start
# Discover every tool β public, no key needed
worldmonitor tools
# Data commands need a user API key (get one at https://worldmonitor.app/pro)
export WORLDMONITOR_API_KEY=wm_xxxxxxxx
worldmonitor world # live global situation brief
worldmonitor country IR # AI strategic brief for a country
worldmonitor risk DE # country risk / resilience scores
worldmonitor conflicts --country IR --limit 5
worldmonitor markets --asset_class crypto
worldmonitor call get_cyber_threats --min_severity 7
Commands
Data commands map to MCP tools/call and require --api-key:
worldβ live global situation briefcountry <ISO>β AI strategic brief for a country (ISO 3166-1 alpha-2)risk <ISO>β country risk / resilience scoresmarketsβ equities, commodities, crypto, FX quotesconflictsβ recent conflict events (--country,--min_fatalities,--limit)cyberβ cyber-threat indicators (--min_severity,--threat_type,--country)newsβ classified news intelligence (--topic,--country,--alerts_only)disastersβ earthquakes, fires, storms (--dataset,--active_only)sanctionsβ sanctions designations (--country,--query)forecastsβ scenario forecasts (--domain,--region)maritime <ISO>β maritime / port activity for a country
MCP and REST:
toolsβ list every MCP tool (public β no key needed)call <tool> [--arg val]β call any MCP tool (--args '<json>'for typed args)prompts/resourcesβ list MCP prompt / resource templateshealthβ API status / health check (requires--api-key)get <path> [--param val]β call a raw REST path (host-relative/api/β¦)list [service]β list documented REST operations from the live OpenAPI spec
Any --key value pair you pass that is not a recognised flag becomes a tool or
request parameter, so every tool argument is reachable without special wiring.
Every tool also accepts a jmespath argument that projects the response
server-side before it crosses the wire β typically 80β95% smaller:
worldmonitor markets --jmespath 'data."stocks-bootstrap".quotes[?symbol==`AAPL`].{s:symbol,p:price}'
See the JMESPath guide for worked examples.
Flags
--api-key <key>β user API key (or envWORLDMONITOR_API_KEY)--mcp-url <url>β MCP endpoint (defaulthttps://worldmonitor.app/mcp)--base-url <url>β REST base (defaulthttps://api.worldmonitor.app)--args <json>β typed arguments object for a tool call--timeout <ms>β request timeout (default 30000)--rawβ print the response body verbatim--compactβ print single-line JSON-h, --help/-v, --version
Exit codes
0β success1β request or transport error (the response body is written to stderr)2β usage error
Programmatic use
import { run } from 'worldmonitor/run';
const code = await run(['risk', 'IR'], { env: process.env });
License
MIT-licensed thin client (the World Monitor platform itself remains AGPL-3.0). Part of the World Monitor project.