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

VS Code · Finance

How to Use FRED data sources in VS Code

Returns FRED's directory of data-producing institutions and their identifiers. Use it to find an agency or organization before exploring its publications.

Prompts to try with FRED data sources in VS Code

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

Use FRED data sources to look this up and give me the result as a table. Save the result in ./assets.

FRED data sourcesVS Code
Try asking
  • Pull the latest numbers from FRED data sources and tell me what changed since last week.

  • Check FRED data sources and summarize what you find in three bullet points.

  • Pull the newest data from FRED data sources and give me the result as a table.

  • Check FRED data sources every morning and tell me only when something changed.

How to set up FRED data sources in VS Code

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

Use Spiral's MCP server

  1. 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"}'
  2. 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

  1. Send VS Code 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 FRED data sources

    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": "fred-stlouisfed-org/economic-data/sources",
        "input": {
          "page": 1
        }
      }'

Then paste one of the prompts above: VS Code finds FRED data sources on Spiral, shows the price and runs it.

FRED data sources providers and prices

Spiral runs FRED data sources through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
FRED (Federal Reserve Economic Data) · Sources
fred-stlouisfed-org/economic-data/sources

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 10001

1-based page (50 rows per page); pass next_page from the previous result.

Every API field of FRED (Federal Reserve Economic Data) · Sources is on its tool page: open its card above.

What can you do with FRED data sources in VS Code?

Check the economic definitions behind an analysis before interpreting its results. A coding agent can inspect FRED series, reporting periods, and publishing agencies to explain whether the selected indicators answer the research question.

Manufacturing conditions briefing

Find production and employment indicators through topics, tags, publications, or publishing agencies. Compare their histories with steel producer price indexes, keeping each measure's units and reporting frequency visible.

Procurement research report

Trace steel index results to the publishing agency and statistical release. Explain the selected measure's definition and historical changes alongside its source citation.

Publishing agency comparison

Compare the publications available from the Bureau of Economic Analysis and Bureau of Labor Statistics. Inspect the series in selected releases to understand which agency publishes the measure a research question needs.

Economic reporting coverage audit

Check whether a proposed manufacturing brief has suitable indicators and sufficient history. Explore candidate series through FRED's discovery routes, inspect their definitions and observation boundaries, and identify steel indexes whose data stop before the report period.

Inflation publication comparison

Find the agencies and publications behind consumer and producer inflation measures. Compare candidate series definitions discovered through releases, keywords, and tags before deciding which measure belongs in an explanation.

Questions about FRED data sources in VS Code

Can VS Code use FRED data sources?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run FRED data sources like any built-in tool.

How much does FRED data sources 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 FRED data sources in VS Code?

No. Spiral runs FRED data sources on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up FRED data sources in VS Code?

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

Does VS Code wait while FRED data sources runs?

FRED data sources runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

Does FRED cover only the United States?

FRED includes international, national, and regional economic series. Its database draws from more than 100 public and proprietary sources.

How fresh is FRED's data?

FRED updates its database daily, but individual indicators follow their own reporting frequencies. For example, UNRATE is monthly, while GDPC1 is quarterly.

Can previously published values change?

Yes. FRED displays the latest version of a series, and replaced versions are archived in ALFRED, so today's historical values can differ from earlier publications.

Does every series continue through the latest reporting period?

No. For example, the hot-rolled steel sheet and strip index WPU10170301 has a final observation in February 2022, even though its page displays a future release date.

How does FRED check data accuracy?

When a release is added or updated, FRED compares it with data already published by the same source. Its checks also flag unexpected values and verify reported frequency and date formats.

Get started

Start using FRED data sources 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 VS Code

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