Spiral gives your agent every tool with one account. Browse the tools →

Windsurf · Public Records

How to Use V-Dem country coverage in Windsurf

Returns country names, identifiers, coded year spans, and regions for the V-Dem graphing data. Use it to resolve country names and check historical coverage before comparing scores.

Prompts to try with V-Dem country coverage in Windsurf

Copy an example into Windsurf, or ask in your own words.

Use V-Dem country coverage to resolve Brazil, Argentina, and Chile, then add their identifiers and coded year spans to the project's country lookup table.

V-Dem country coverageWindsurf
Try asking
  • Use V-Dem country coverage to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from V-Dem country coverage and tell me what changed since last week.

  • Check V-Dem country coverage and summarize what you find in three bullet points.

  • Pull the newest data from V-Dem country coverage and give me the result as a table.

How to set up V-Dem country coverage in Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run V-Dem country coverage

    One request; the result comes back by polling or a webhook.

    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": "v-dem-net/democracy/countries",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Windsurf finds V-Dem country coverage on Spiral, shows the price and runs it.

V-Dem country coverage providers and prices

Spiral runs V-Dem country coverage through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
V-Dem · Countries
v-dem-net/democracy/countries

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Include historicalon or off

include_historical

Every API field of V-Dem · Countries is on its tool page: open its card above.

What can you do with V-Dem country coverage in Windsurf?

Build a documented democracy research table with V-Dem country coverage, measure definitions, and observations. A coding agent can connect those results to the project's analysis files and produce charts whose labels explain the measures used.

Write a country democracy brief

Build a brief for Brazil with country coverage, selected indicator definitions, annual scores, and regime transformation episodes. Include the dataset release and citation so readers can check the evidence.

Prepare a comparative research panel

Assemble a country-year panel for Poland, Hungary, and Czechia. Check country coverage, select and document measures, attach transformation episodes, and identify the release used for the analysis.

Create a comparative politics lesson

Prepare an exercise comparing Spain and Portugal. Give students country coverage, candidate measures, codebook definitions, score series, episode records, and source citations to support their conclusions.

Refresh an annual governance report

Check the latest release, confirm the countries and measures used in the report, and rebuild its score tables and transformation timelines. Review definitions before describing differences from the previous edition.

Check historical country joins

Review country names, identifiers, and coded spans before joining democracy scores and transformation records to a historical research table.

Build a regime change case study

Compare Tunisia's transformation episodes with its annual democracy scores. Check country coverage and indicator definitions before interpreting the relationship between episode dates and score changes.

Questions about V-Dem country coverage in Windsurf

Can Windsurf use V-Dem country coverage?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run V-Dem country coverage like any built-in tool.

How much does V-Dem country coverage cost in Windsurf?

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

Do I need an Alexandria account to use V-Dem country coverage in Windsurf?

No. Spiral runs V-Dem country coverage on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up V-Dem country coverage in Windsurf?

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

Does Windsurf wait while V-Dem country coverage runs?

V-Dem country coverage runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

How recent is the V-Dem data?

V-Dem updates annually. Dataset v16 was released in March 2026 and covers observations through the end of 2025, so it does not describe developments during 2026.

Does every country have an uninterrupted historical series?

No. Some countries are coded before independence, and some have gaps in their coding periods. Historical entities also appear in the coverage table, including Baden and Bavaria for 1789 through 1871.

Can I compare scores from different releases?

V-Dem warns that comparing absolute index values across releases can be misleading. Use observations from one release when comparing countries or years.

What do the uncertainty bounds mean?

For measurement-model estimates, the lower and upper bounds enclose 68 percent of the posterior probability mass. They express uncertainty around the estimated country-year score.

What kinds of democracy does V-Dem measure?

V-Dem distinguishes electoral, liberal, participatory, deliberative, and egalitarian democracy. Choose the principle that matches your question rather than treating every democracy index as interchangeable.

Get started

Start using V-Dem country coverage in Windsurf

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Windsurf:

Set up Windsurf

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options