How to Use OpenSanctions dataset catalog in VS Code
Returns catalog entries describing OpenSanctions sources and collections. Use it to discover relevant watchlists and their publishers before investigating records or inspecting a specific dataset.
Prompts to try with OpenSanctions dataset catalog in VS Code
Copy an example into VS Code, or ask in your own words.
Use OpenSanctions dataset catalog to find sanctions sources published by US authorities, then build a source index in this project using the returned names and descriptions.
Use OpenSanctions dataset catalog to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from OpenSanctions dataset catalog and tell me what changed since last week.
Check OpenSanctions dataset catalog and summarize what you find in three bullet points.
Pull the newest data from OpenSanctions dataset catalog and give me the result as a table.
How to set up OpenSanctions dataset catalog in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run OpenSanctions dataset catalog
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": "opensanctions-org/sanctions-screening/list_datasets", "input": { "q": "<q>" } }'
Then paste one of the prompts above: VS Code finds OpenSanctions dataset catalog on Spiral, shows the price and runs it.
OpenSanctions dataset catalog providers and prices
Spiral runs OpenSanctions dataset catalog through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Type | source, collection, or external | type |
Every API field of OpenSanctions · List datasets is on its tool page: open its card above.
What can you do with OpenSanctions dataset catalog in VS Code?
Build a company research view that connects findings to the watchlists behind them. OpenSanctions supplies entity records and source descriptions that a coding agent can organize into reviewable evidence.
Prepare a supplier research packet
Discover relevant sanctions sources, inspect their coverage, find a public supplier such as Sberbank, and examine its entity profile. Assemble the findings and contributing sources for a reviewer.
Compare sanctions authorities
Identify US and EU source datasets, read their descriptions, and investigate how a company appears in the returned records. Explain which authorities contribute to its profile.
Research a shipping company
Find sources relevant to maritime sanctions, inspect their coverage, and research Sovcomflot or another public shipping company. Examine returned sanctions records and business relationships for a shipping review.
Investigate procurement exclusions
Discover debarment sources and inspect their publishers and coverage. Browse relevant company records, then examine individual profiles to prepare a procurement research brief.
Review source maintenance
Build an inventory of relevant watchlists and compare their update metadata and maintenance status. Flag sources that need closer examination before they support a research report.
More on OpenSanctions dataset catalog and VS Code
Overview
OpenSanctions dataset catalog in other agents
Questions about OpenSanctions dataset catalog in VS Code
Can VS Code use OpenSanctions dataset catalog?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run OpenSanctions dataset catalog like any built-in tool.
How much does OpenSanctions dataset catalog cost in VS Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an Alexandria account to use OpenSanctions dataset catalog in VS Code?
No. Spiral runs OpenSanctions dataset 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 OpenSanctions dataset catalog in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while OpenSanctions dataset catalog runs?
OpenSanctions dataset catalog runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Is everyone listed in OpenSanctions sanctioned?
No. OpenSanctions also includes records connected to criminal matters and public office. A listing’s reason must be checked before describing it as a sanctions designation.
Where does OpenSanctions get its information?
It collects records from sanctions authorities, government registries, and public records worldwide. Dataset descriptions identify publishers and explain source coverage.
Does OpenSanctions cover procurement bans?
Yes. Its inclusion criteria explicitly cover companies and individuals excluded or debarred from procurement, extending its coverage beyond sanctions lists.
What tells me whether a source is maintained?
OpenSanctions dataset metadata includes maintenance status, update timestamps, and temporal coverage. These describe the individual source rather than promising one update schedule for every dataset.
Why does a search result show less detail than an entity profile?
Search results contain the entity’s own properties, including names, identifiers, and key dates. Detailed relationships are retrieved through an entity lookup.
Start using OpenSanctions dataset catalog in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


