• DATA
  • MATH
  • ANALYSIS
  • HUMAN

How to calculate inflation rate changes with your AI

Connect your AI to the BLS Prices MCP to pull historical CPI data. Once connected, your agent handles the math for any time period you specify.

Ask AI about this page

Short answer

How can I use AI to find inflation changes?

Your AI pulls historical Consumer Price Index (CPI) data from the BLS and performs the percentage change calculations for you. You can request specific year-over-year shifts or custom period-over-period comparisons. You'll get the exact price movements for the dates you choose.

The results you get

Where your data lands

The AI handles the data retrieval and the arithmetic, leaving you with the final percentages.

DATA

Historical CPI access

The AI pulls raw index values from the BLS. You get the specific numbers needed for any historical period.

MATH

Automatic rate calculation

Your agent calculates the percentage increase or decrease between two points in time. It handles the growth formulas automatically.

ANALYSIS

Trend identification

The AI compares multiple periods to show you if inflation is accelerating or cooling down. You get a clear view of price momentum.

HUMAN

Contextual interpretation

The AI provides the numbers, but you decide what those shifts mean for your specific budget or business strategy.

The workflow

What your AI does when the request arrives.

The AI acts as a bridge between your prompt and the Bureau of Labor Statistics data.

  1. Fetch CPI data

    The AI identifies the specific months or years you are interested in and pulls the corresponding index values.

    get_cpi_inflation
  2. Compute shifts

    The agent applies the inflation formula to the retrieved data to find the change between periods.

    get_cpi_inflation
  3. Format results

    The AI organizes the raw percentages into a readable format, like a list or a summary table.

    get_cpi_inflation
  4. Verify accuracy

    You review the final calculated rates against the raw data to ensure the logic matches your expectations.

    get_cpi_inflation

Try it

Copy these to start.

Use these prompts to trigger the data retrieval and math.

Starting points

Swap out the dates or specific categories in these prompts to match your needs.

Bureau of Labor Statistics Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_0QJpQ9dN0PL3lHBsmUUNYPlhZ5UqmHopIgtIM2U0/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Bureau of Labor Statistics capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "bls-prices-consumer-price-index-cpi-inflation-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_0QJpQ9dN0PL3lHBsmUUNYPlhZ5UqmHopIgtIM2U0/mcp"
    }
  }
}
Copy into chat04
  • Calculate the year-over-year inflation rate using the CPI data from January 2023 to January 2024.

  • What was the percentage change in the CPI between Q3 2022 and Q3 2023?

  • Show me the monthly inflation trend for the last six months using the latest CPI figures.

  • Compare the inflation rate from five years ago to today's current CPI levels.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect BLS Prices once, then ask.

Just click to connect the MCP to your client. Your credentials stay encrypted, and you can start asking for data immediately.

Connect BLS Prices to your AI

FAQ

How this task behaves

  • 01

    Can the AI change the actual BLS data?

    No. The AI can only read the data to perform calculations; it cannot modify official government records.

  • 02

    Does the AI handle the math itself?

    Yes. After pulling the data, the AI performs the percentage change calculations for you.

  • 03

    Can I ask for specific commodity inflation?

    No. This specific tool is limited to the Consumer Price Index (CPI) and general inflation rates.

  • 04

    Will the AI create a spreadsheet for me?

    The AI can generate the data in a table format within your chat, but it cannot directly write or save files to your hard drive.

  • 05

    How recent is the data?

    The AI pulls the most recent available data provided by the BLS through the tool.

  • More questions about BLS Prices? The Connector page answers them. See everything the BLS Prices Connector can do

Connect Bureau of Labor Statistics to Claude, Cursor, ChatGPT & more