CPI Inflation Calculator

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v1.0.0更新于 Nov 3, 2026

通胀计算器,采用BLS官方CPI数据,覆盖1913年至最新月份,可计算加薪与通胀对比及SS COLA。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Inflation calculator with official BLS CPI 1913 to the latest month, raise vs inflation, SS COLA.

发布方自己的服务:Calculator Tools MCP

已验证Streamable HTTP可网页运行

概览

CPI Inflation Calculator 的托管 MCP 服务(cpi-inflation-calculator-mcp.lipmichal.workers.dev);无需登录;Streamable HTTP;5 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

端点
cpi-inflation-calculator-mcp.lipmichal.workers.dev
最近检查

安装

在 SourceWeft 中

  1. 打开 控制台中的 CPI Inflation Calculator,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.theluckystrike%2Fcpi-inflation-calculator-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "cpi-inflation-calculator": {
      "type": "http",
      "url": "https://cpi-inflation-calculator-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

README

cpi-inflation-calculator-mcp

An MCP server that gives an AI assistant the official U.S. Consumer Price Index from the Bureau of Labor Statistics, from 1913 to the latest published month, so it can adjust any dollar amount for inflation, report the current inflation rate, check whether a raise kept pace, and compute the Social Security COLA. It checks the BLS API live for months newer than its training data.

Hosted endpoint, no sign-in and no token:

https://cpi-inflation-calculator-mcp.lipmichal.workers.dev/mcp

Tools

ToolWhat it does
calculate_inflationAdjusts an amount between any two months (YYYY-MM) or years (YYYY, annual average) from 1913 to the latest month. CPI-U by default, or CPI-W or core CPI. Returns the adjusted amount, cumulative and average annual inflation, and the index values used.
get_latest_cpiThe latest CPI month from BLS with the 12-month change for CPI-U, core CPI and CPI-W, the 1-month change and the year-to-date change.
get_inflation_rateAnnual-average and December-to-December inflation for any year since 1914, plus the latest 12-month rate for the current year.
compare_raise_to_inflationNominal raise, inflation, real raise, the pay needed to keep pace and the gain or shortfall.
calculate_social_security_colaThe COLA from Q3 CPI-W with the statutory formula, with the index values behind it.

Every result has structured JSON, a plain-English summary, data_status (live or bundled, latest month), as_of, source (the BLS series) and more (a pay raise calculator on statewage.com).

What it knows that your model does not

  • CPI index values through September 2026 (CPI-U 336.940), with a live check for anything newer.
  • Inflation was 3.7% over the 12 months to September 2026 (CPI-U, not seasonally adjusted). Core CPI was 2.6%.
  • BLS published no October 2025 CPI. Data were not collected during the 2025 lapse in appropriations. The tools say so instead of inventing a value, and still use the official 2025 annual average (321.943, 2.6% inflation).
  • The 2027 Social Security COLA is 3.6%. The tool reproduces it from Q3 2026 CPI-W (average 328.746 against 317.265), and also reproduces 2023 to 2026.

Install

Claude.ai custom connector or ChatGPT developer mode

Add a custom connector and paste the URL. No token is needed.

https://cpi-inflation-calculator-mcp.lipmichal.workers.dev/mcp

Claude Code

claude mcp add --transport http cpi-inflation https://cpi-inflation-calculator-mcp.lipmichal.workers.dev/mcp

Or run it locally:

claude mcp add cpi-inflation -- npx -y github:theluckystrike/cpi-inflation-calculator-mcp

Claude Desktop

Add this to claude_desktop_config.json:

json
{  "mcpServers": {    "cpi-inflation": {      "command": "npx",      "args": ["-y", "github:theluckystrike/cpi-inflation-calculator-mcp"]    }  }}

Cursor

Add this to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "cpi-inflation": {      "url": "https://cpi-inflation-calculator-mcp.lipmichal.workers.dev/mcp"    }  }}

VS Code

Add this to .vscode/mcp.json:

json
{  "servers": {    "cpi-inflation": {      "type": "http",      "url": "https://cpi-inflation-calculator-mcp.lipmichal.workers.dev/mcp"    }  }}

Node 20 or newer is needed for the local npx version. Optional: set BLS_API_KEY to a free BLS registration key for a higher live-data quota.

Example prompts

  • "What is $1,000 from 2000 worth today?"
  • "What is the current inflation rate, and what was core inflation?"
  • "What was inflation in 2025? Was any month missing?"
  • "My salary went from $60,000 in January 2025 to $63,000 now. Did I beat inflation?"
  • "How is the 2027 Social Security COLA calculated?"
  • "Convert $50 in 1970 to 2026 dollars using CPI-W."

Data sources

U.S. Bureau of Labor Statistics CPI series CUUR0000SA0, CWUR0000SA0 and CUUR0000SA0L1E, fetched from the BLS Public Data API on 2026-11-03, plus a live check on each call. The COLA rule is 42 U.S.C. 415(i). See DATA_SOURCES.md.

Limitations

  • General information, not financial advice.
  • U.S. city average, not seasonally adjusted. No regional or item-level indexes (food, rent, gas).
  • The keyless BLS API caps daily requests per IP address. When the cap is hit, the hosted server answers from bundled data through September 2026 and says so in data_status.
  • Periods with no annual average yet (the current year) use the latest month of that year, with a note.

More

Check a raise after taxes with the pay raise calculator and the Social Security tax calculator on statewage.com.

Part of the Zovo MCP collection: https://mcp.zovo.one

Development

npm installnpm run buildnpm test

src/core.ts holds the CPI math and has no I/O. src/data.ts is the bundled BLS data. src/live.ts checks the BLS API for newer months. src/stdio.ts is the local entry and src/worker.ts is the Cloudflare Worker entry. Both use the same tool registry in src/tools.ts.

License

MIT

More data servers from the same author

Each one is free, needs no API key and has a hosted URL you can paste into Claude or ChatGPT.

servertoolshosted URL
cups-to-grams-mcpconvert_ingredient, search_ingredients, scale_recipe, convert_oven_temperaturehttps://cups-to-grams-mcp.lipmichal.workers.dev/mcp
dscr-loan-calculator-mcpcalculate_dscr, max_loan_for_target_dscr, rent_needed_for_target_dscr, compare_scenarios, amortization_summaryhttps://dscr-loan-calculator-mcp.lipmichal.workers.dev/mcp
gold-price-per-gram-mcpget_gold_price_per_gram, get_metal_prices, calculate_jewelry_value, convert_gold_unitshttps://gold-price-per-gram-mcp.lipmichal.workers.dev/mcp
lake-level-mcpsearch_lakes, get_lake_level, get_lake_history, compare_lakeshttps://lake-level-mcp.lipmichal.workers.dev/mcp
minimum-wage-mcpget_minimum_wage, list_upcoming_increases, compare_states, annual_income_at_minimum_wagehttps://minimum-wage-mcp.lipmichal.workers.dev/mcp
no-tax-on-overtime-mcpcalculate_overtime_deduction, calculate_tips_deduction, calculate_senior_deduction, estimate_tax_savings, explain_eligibilityhttps://no-tax-on-overtime-mcp.lipmichal.workers.dev/mcp
paycheck-calculator-mcpcalculate_take_home_pay, compare_states_take_home, salary_to_hourly, hourly_to_salary, get_federal_tax_bracketshttps://paycheck-calculator-mcp.lipmichal.workers.dev/mcp
uk-income-tax-salary-mcpcalculate_uk_take_home, get_uk_tax_bands, compare_salaries, marginal_rate_at_incomehttps://uk-income-tax-salary-mcp.lipmichal.workers.dev/mcp
us-federal-holidays-business-days-mcplist_federal_holidays, is_business_day, add_business_days, count_business_days, invoice_due_datehttps://us-federal-holidays-business-days-mcp.lipmichal.workers.dev/mcp
ab-test-sample-size-calculator-mcpcalculate_sample_size, estimate_test_duration, test_ab_significance, fisher_exact_test, check_peeking_riskhttps://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp
aca-premium-tax-credit-calculator-mcpget_federal_poverty_level, calculate_premium_tax_credit, check_subsidy_cliff, get_aptc_repayment_caphttps://aca-premium-tax-credit-calculator-mcp.lipmichal.workers.dev/mcp
ap-score-distributions-mcpget_ap_score_distribution, estimate_ap_percentile, compare_ap_exams, list_ap_exams, estimate_ap_score_from_compositehttps://ap-score-distributions-mcp.lipmichal.workers.dev/mcp
car-loan-interest-deduction-calculator-mcpcalculate_car_loan_interest_deduction, calculate_salt_deduction, get_tax_brackets_and_standard_deduction, calculate_child_tax_credithttps://car-loan-interest-deduction-calculator-mcp.lipmichal.workers.dev/mcp
estate-gift-tax-exemption-calculator-mcpget_exemption_amounts, calculate_estate_tax, check_gift, compare_yearshttps://estate-gift-tax-exemption-calculator-mcp.lipmichal.workers.dev/mcp
irs-mileage-rate-per-diem-mcpget_mileage_rate, calculate_mileage_deduction, get_per_diem_rates, calculate_trip_per_diem, get_high_low_per_diemhttps://irs-mileage-rate-per-diem-mcp.lipmichal.workers.dev/mcp
recipe-nutrition-calculator-mcplookup_ingredient_nutrition, calculate_recipe_nutrition, round_nutrition_label, scale_recipe_nutritionhttps://recipe-nutrition-calculator-mcp.lipmichal.workers.dev/mcp
retirement-contribution-limits-2027-mcpget_contribution_limits, calculate_max_contribution, get_social_security_cola, compare_yearshttps://retirement-contribution-limits-2027-mcp.lipmichal.workers.dev/mcp
section-179-deduction-calculator-mcpcalculate_section_179, calculate_bonus_depreciation, get_vehicle_depreciation_limits, calculate_asset_loan_paymenthttps://section-179-deduction-calculator-mcp.lipmichal.workers.dev/mcp
student-loan-repayment-assistance-plan-calculator-mcpcalculate_rap_payment, compare_rap_vs_standard, get_federal_loan_limits, get_plan_transition_dateshttps://student-loan-repayment-assistance-plan-calculator-mcp.lipmichal.workers.dev/mcp
subdomain-finder-mcpfind_subdomains, resolve_subdomains, get_certificate_history, summarize_attack_surfacehttps://subdomain-finder-mcp.lipmichal.workers.dev/mcp
uk-statutory-sick-pay-maternity-pay-calculator-mcpcalculate_statutory_sick_pay, calculate_statutory_maternity_pay, get_minimum_wage_rates, check_eligibilityhttps://uk-statutory-sick-pay-maternity-pay-calculator-mcp.lipmichal.workers.dev/mcp

The paid back-office collection (invoices, VAT, PDFs, spreadsheets) is at https://mcp.zovo.one

来源:README.md,提交 005d1e7

工具

5

calculate_inflation

Inflation calculator (CPI, 1913 to latest month)

Adjusts a dollar amount for inflation between any two periods from 1913 to the latest month the U.S. Bureau of Labor Statistics has published, using the official CPI-U (or CPI-W or core CPI). Checks the BLS Public Data API live for months newer than its bundled data (bundled through September 2026, fetched 2026-11-03), so it knows CPI figures newer than a model's training data. Handles the October 2025 gap: BLS published no October 2025 CPI because of the 2025 lapse in appropriations. Returns the adjusted amount, cumulative and average annual inflation, and the exact index values used.

输入参数tofrom必填amount必填series

get_latest_cpi

Latest CPI release (live from BLS)

Returns the most recent CPI index values published by the Bureau of Labor Statistics, checked live against the BLS Public Data API: the latest month, the 12-month inflation rate for headline CPI-U, CPI-W and core CPI (less food and energy), the not seasonally adjusted 1-month change, and the year-to-date change. Use it to answer 'what is inflation right now'. If the live check fails it says so and falls back to bundled BLS data (through September 2026).

无需输入参数。

get_inflation_rate

Annual inflation rate for a year

Returns the official U.S. inflation rate for a calendar year from BLS CPI data: annual-average change (BLS annual averages, including the 2025 average published despite the missing October 2025 index), December-to-December change, and for the current year the latest 12-month rate. Years 1914 to the present for CPI-U and CPI-W, 1958 onward for core CPI.

输入参数year必填series

compare_raise_to_inflation

Did a pay raise beat inflation?

Compares a pay change with CPI inflation over the same period using official BLS data through the latest published month (checked live). Returns the nominal raise, inflation, the real (inflation-adjusted) raise, the pay needed to keep pace, and the gain or shortfall. Works for salaries, hourly wages, rents or any recurring amount.

输入参数tofrom必填seriesnew_pay必填old_pay必填

calculate_social_security_cola

Social Security COLA from CPI-W

Computes the Social Security cost-of-living adjustment for a year with the statutory formula: average CPI-W for July-September of the prior year over the same quarter a year earlier, rounded to 0.1%. Uses official BLS CPI-W values (live check). Reproduces the 3.6% COLA for 2027 that SSA announced in October 2026, and shows the Q3 index values behind it. Covers 1976 onward.

输入参数cola_year必填

版本历史

1
  1. v1.0.0最新Nov 3, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Calculator 集成