Skip to main content
This page is written for a coding agent (Claude Code, Codex, Cursor, VS Code or another MCP client) that a person has asked to set up GDELT Cloud. Work through it in order, tell the person what you did at each step, and stop to ask when a step needs them.

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.
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 named GDELT_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:
  1. Make sure .env is listed in .gitignore before you write to it. Add it if it is not.
  2. Add GDELT_CLOUD_API_KEY=<key> to .env. If the person downloaded gdelt-cloud.env from their setup screen, it holds that one line and is usually in ~/Downloads: append its contents to .env without printing them, then delete the downloaded file.
  3. Never commit the key, print it in full, or write it into source files.
If the person pasted the key into this chat, tell them once that it is now in the chat history and that they can replace it any time on API keys. Ask the data server for the five most significant Events of the last 24 hours. Without the MCP tools, call the REST API directly:
Show the person each Event’s date, place and title. That call appears on their GDELT Cloud setup screen a few seconds later. If it fails, read the 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_filters on every response.
  • Parameters and values are listed in the parameter reference.