1. Check what is already connected
GDELT Cloud has two MCP servers:
If you already have tools from both, go to step 3.
2. Connect both servers
The plugin is the shortest path where it exists: it brings the data server, the docs server and the workflow skills together.- Claude Code
- Codex
- Cursor
- VS Code
- Other
Run both from a terminal. One install serves the Claude Code CLI and the Claude desktop app:Inside a session the person can type the same steps as
/plugin marketplace add gdelt-cloud/plugins
and /plugin install gdelt-cloud@gdelt-cloud. Claude Code asks them for the API key when the plugin
is enabled and keeps it in their keychain. New tools appear after the session restarts.3. Store the key
Keep the key in an environment variable namedGDELT_CLOUD_API_KEY. Older setups used
GDELT_API_KEY: if only that one is set, use its value and save it under the new name too. For code
in this project:
- Make sure
.envis listed in.gitignorebefore you write to it. Add it if it is not. - Add
GDELT_CLOUD_API_KEY=<key>to.env. If the person downloadedgdelt-cloud.envfrom their setup screen, it holds that one line and is usually in~/Downloads: append its contents to.envwithout printing them, then delete the downloaded file. - Never commit the key, print it in full, or write it into source files.
4. Run the first search
Ask the data server for the five most significant Events of the last 24 hours. Without the MCP tools, call the REST API directly:code in the error body, not only the status: Errors
says what each one means and what to do.
5. Before writing code
- Read List incidents to list what happened in a place and period.
- Ask the docs server before guessing a parameter, and check
applied_filterson every response. - Parameters and values are listed in the parameter reference.

