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
get_sources is the sole credential-free, daily-quota-free data tool; anonymous calls use a separate fail-closed 10/minute/IP ceiling. Every other data-bearing tools/call needs a subscription 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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| worldmonitor_sdk-0.1.2.tar.gz | 11.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| worldmonitor_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / worldmonitor_sdk-0.1.2.tar.gz
| Download URL | worldmonitor_sdk-0.1.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c022c6ae1a4f52be40d703d15c8ba964e67aaad83ad39f58af4fb82fa72e83e
|
|
BLAKE2b-256 checksum How to use checksums |
bb95d6c0fcf4642e4da2b117faeaa3bb76bb943293589946e2560e7c21b26e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 23, 2026.
Transparency logRelease files / worldmonitor_sdk-0.1.2-py3-none-any.whl
| Download URL | worldmonitor_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25a013f258ef5d016b1210b2433ae1f3f039cc15002321d668cd37cb25b307aa
|
|
BLAKE2b-256 checksum How to use checksums |
c8cba0c7e3c11dd0a6e605ce735459c62b742d4d2323ba6dc3c54bf3d7cc97d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 23, 2026.
Transparency logSecurity for worldmonitor-sdk 0.1.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for worldmonitor_sdk-0.1.2.tar.gz
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 Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.