worldmonitor-sdk
Official Python SDK for the World Monitor global-intelligence API — country briefs, risk scores, conflict / cyber / market / news feeds, and every MCP tool, without writing an HTTP integration.
Stdlib-only (zero dependencies), MCP-first: the same design as the official worldmonitor npm CLI. The MCP server is the live, documented agent surface; a small REST escape hatch rounds it out.
Install
pip install worldmonitor-sdk
Quickstart
from worldmonitor_sdk import Client
client = Client(api_key="wm_...") # or set WORLDMONITOR_API_KEY
client.list_tools() # public — no key needed
client.country_risk("IR") # curated helper
client.conflict_events(country="IR", limit=5)
client.call_tool("get_market_data", asset_class="crypto") # any MCP tool
client.get("/api/health") # raw REST GET
Data calls (tools/call) need a user API key — get one at worldmonitor.app/pro. Listing tools, prompts, and resources is public.
Server-side projection
Every tool accepts an optional jmespath argument that projects the response server-side (typically an 80–95% size cut):
client.world_brief(jmespath="hotspots[].name")
See the JMESPath guide for worked examples.
Errors
worldmonitor_sdk.MCPError— the MCP server returned a JSON-RPC error (.code, auth failures carry a key hint).worldmonitor_sdk.APIError— a REST/transport failure (.status,.body).
Both derive from worldmonitor_sdk.WorldMonitorError.
Configuration
| Constructor arg | Environment variable | Default |
|---|---|---|
api_key |
WORLDMONITOR_API_KEY (or WM_API_KEY) |
— |
base_url |
WORLDMONITOR_BASE_URL |
https://api.worldmonitor.app |
mcp_url |
WORLDMONITOR_MCP_URL |
https://worldmonitor.app/mcp |
timeout |
— | 30.0 seconds |
The source lives in sdk/python/ in the main repository. Docs: worldmonitor.app/docs/sdks. License: MIT (thin client; the World Monitor platform itself remains AGPL-3.0).
Metadata
Release files for worldmonitor-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| worldmonitor_sdk-0.1.1.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| worldmonitor_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / worldmonitor_sdk-0.1.1.tar.gz
| Download URL | worldmonitor_sdk-0.1.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0be885d991198cbb94276bd0b42358f5551205687bac18c85c2e73c768dcb513
|
|
BLAKE2b-256 checksum How to use checksums |
e947a4e412ff6717a07cc003cbccf923a730d8738579d3f4fa94025923d0c1ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / worldmonitor_sdk-0.1.1-py3-none-any.whl
| Download URL | worldmonitor_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce67f4dea83f39f46ee7c2cb79469e7eab8386a41d7c675a2d96099bd95b0b3a
|
|
BLAKE2b-256 checksum How to use checksums |
adfeaa75a4fcf3ef73f09c5840d3e4e020d028366730d0fe2d3be65453869353
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency log