[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [World Bank indicator catalog](https://spiral.ai/integrations/opencode/world-bank-indicator-catalog)

# How to Use World Bank indicator catalog in opencode

Returns indicator IDs and descriptive records for discovering measures within a database or topic. Use it to choose a suitable series before fetching its observations.

|  |  |
| --- | --- |
| Model | World Bank indicator catalog |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with World Bank indicator catalog in opencode

- Use World Bank indicator catalog to find population measures in World Development Indicators and add their IDs, names, and source descriptions to my project's research index.
- Use World Bank indicator catalog to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from World Bank indicator catalog and tell me what changed since last week.
- Check World Bank indicator catalog and summarize what you find in three bullet points.
- Pull the newest data from World Bank indicator catalog and give me the result as a table.

## How to set up World Bank indicator catalog in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run World Bank indicator catalog**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "data-worldbank-org/indicators/indicators",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: opencode finds World Bank indicator catalog on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## World Bank indicator catalog tools and prices

- [World Bank Data · Indicators](https://spiral.ai/tools/alexandria/data-worldbank-org/indicators/indicators) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 10000 | 1 | 1-based page number; pass `next_page` from the previous output to continue. |
| query |  | — | Words that must all appear in the indicator id or name. Omit or leave empty to list the scope. |
| per_page | 1 to 1000 | 50 | Rows per page (upstream `per_page`). |
| topic_id |  | — | Topic id from `reference` (kind topic), e.g. 3 = Economy & Growth, 8 = Health. When given, `source_id` further restricts the topic's indicators to that database. Pattern: ^[0-9]{1,4}$. |
| source_id |  | — | World Bank database (source) id as a string, exactly as the API returns it: 2 = World Development Indicators, 6 = International Debt Statistics, 15 = Global Economic Monitor, 40 = Population estimates and projections. Pattern: ^[0-9]{1,5}$. |

## What can you do with World Bank indicator catalog in opencode?

Build a country research browser with World Bank classifications, indicator descriptions, and labeled statistical observations. A coding agent can use the returned records to populate selectors and connect each displayed measure to its statistical documentation.

### Build a country market brief

Define a comparison set for Brazil, Mexico, and Chile, verify their classifications, select economic measures, and assemble a table with the selected indicators' definitions.

### Document a database before analysis

Create a research inventory for World Development Indicators that lists its dimensions, available dimension values, indicator records, and topic definitions.

### Prepare an education comparison

Choose economies and education measures, inspect their definitions and methodology, then discover the database dimensions and values needed to retrieve labeled observations.

### Populate a statistical research browser

Build country and topic navigation from World Bank records, add searchable indicator descriptions, and expose database dimensions with their available selections.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## World Bank indicator catalog in other agents

- [Amp](https://spiral.ai/integrations/amp/world-bank-indicator-catalog)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/world-bank-indicator-catalog)
- [Claude](https://spiral.ai/integrations/claude-desktop/world-bank-indicator-catalog)
- [Claude Code](https://spiral.ai/integrations/claude-code/world-bank-indicator-catalog)
- [Cline](https://spiral.ai/integrations/cline/world-bank-indicator-catalog)
- [Codex](https://spiral.ai/integrations/codex/world-bank-indicator-catalog)
- [Cursor](https://spiral.ai/integrations/cursor/world-bank-indicator-catalog)
- [Devin](https://spiral.ai/integrations/devin/world-bank-indicator-catalog)
- [dots](https://spiral.ai/integrations/dots/world-bank-indicator-catalog)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/world-bank-indicator-catalog)
- [Gemini](https://spiral.ai/integrations/gemini/world-bank-indicator-catalog)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/world-bank-indicator-catalog)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/world-bank-indicator-catalog)
- [goose](https://spiral.ai/integrations/goose/world-bank-indicator-catalog)
- [Grok](https://spiral.ai/integrations/grok/world-bank-indicator-catalog)
- [Grok Build](https://spiral.ai/integrations/grok-build/world-bank-indicator-catalog)
- [Hermes](https://spiral.ai/integrations/hermes/world-bank-indicator-catalog)
- [Instinct](https://spiral.ai/integrations/instinct/world-bank-indicator-catalog)
- [Manus](https://spiral.ai/integrations/manus/world-bank-indicator-catalog)
- [Muse](https://spiral.ai/integrations/muse/world-bank-indicator-catalog)
- [Muse Code](https://spiral.ai/integrations/muse-code/world-bank-indicator-catalog)
- [n8n](https://spiral.ai/integrations/n8n/world-bank-indicator-catalog)
- [Notion](https://spiral.ai/integrations/notion/world-bank-indicator-catalog)
- [OpenClaw](https://spiral.ai/integrations/openclaw/world-bank-indicator-catalog)
- [Perplexity](https://spiral.ai/integrations/perplexity/world-bank-indicator-catalog)
- [Raycast](https://spiral.ai/integrations/raycast/world-bank-indicator-catalog)
- [VS Code](https://spiral.ai/integrations/vscode/world-bank-indicator-catalog)
- [Windsurf](https://spiral.ai/integrations/windsurf/world-bank-indicator-catalog)
- [Zapier](https://spiral.ai/integrations/zapier/world-bank-indicator-catalog)

## More opencode guides

- [World Bank dimension values](https://spiral.ai/integrations/opencode/world-bank-dimension-values)
- [World Bank indicator definition](https://spiral.ai/integrations/opencode/world-bank-indicator-definition)
- [World Bank database sources](https://spiral.ai/integrations/opencode/world-bank-database-sources)
- [World Bank indicator observations](https://spiral.ai/integrations/opencode/world-bank-indicator-observations)
- [World Bank database observations](https://spiral.ai/integrations/opencode/world-bank-database-observations)
- [World Bank statistical metadata](https://spiral.ai/integrations/opencode/world-bank-statistical-metadata)

## Questions about World Bank indicator catalog in opencode

**Can opencode use World Bank indicator catalog?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run World Bank indicator catalog like any built-in tool.

**How much does World Bank indicator catalog cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use World Bank indicator catalog in opencode?**

No. Spiral runs World Bank indicator catalog on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up World Bank indicator catalog in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while World Bank indicator catalog runs?**

World Bank indicator catalog runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How broad is World Bank development data coverage?**

The World Bank's December 2024 selection guide describes World Development Indicators as covering over 1,400 indicators and 217 economies, with history reaching 1960. Those figures describe WDI, rather than every database available through the World Bank.

**Does every country have a value for every year?**

No. Some World Bank indicators come from sporadic surveys and are available only every few years, so country and year coverage varies by measure.

**Can I get regional statistics as well as country statistics?**

Yes. World Bank aggregate observations cover regions, income levels, and lending groups. Their codes can be used in the country position of a data request.

**Does a single response contain all matching results?**

Not necessarily. The upstream World Bank API defaults to 50 results per page, so larger selections require additional pages.

**Where can I check what a statistic actually measures?**

World Bank statistical metadata can include a long definition, sources, periodicity, and methodology. Indicator records also identify the source organization and source database.

