Synergic APIs

io.github.Synergic-APIs由 GitHub 帳號 Synergic-APIs 發布v0.1.2更新於 Oct 24, 2026

Official US data for AI agents: CPI inflation since 1913, famous prices, national debt since 1790.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,透過 Synergic APIs 讓助理取得美國官方 CPI 通膨、知名商品價格、國債與國債利率資料。

可以做什麼
取得各類別最新 CPI 及年增率、月增率,並依類別查詢可追溯至 1913 年的月度與年度 CPI 歷史及官方年均值。查詢最新一籃子美國知名商品價格(雞蛋、汽油、牛奶、麵包、牛絞肉、咖啡、電費),或單項自 1976 年以來的月度歷史。取得精確到美分的當前美國國債、1993 年以來的每日債務歷史,以及 1790 年以來的年度未償債務。依證券類別讀取美國財政部平均利率的最新值或 2001 年以來的月度歷史。查看 API 金鑰的方案、已用請求數、月度上限與重設日期。
適用情境
適合助理需要權威美國經濟數據——通膨、日常商品價格、國債或國債利率——進行分析、跨期比較或繪圖,而不必抓取政府網站時使用。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 18.17 以上。必須在 SYNERGIC_API_KEY 環境變數中提供 Synergic APIs 金鑰;免費方案為每月 500 次請求、每分鐘 10 次請求。需要能連線至 Synergic APIs 閘道的網路;可用 SYNERGIC_GATEWAY_URL 覆寫基礎位址。
安裝前請注意
缺少 SYNERGIC_API_KEY 時伺服器會在啟動時結束;該金鑰會以 X-Api-Key 標頭送往 Synergic APIs 閘道,因此請求與金鑰使用情形會傳給該第三方。適用免費方案配額與每分鐘速率限制,另有付費方案。伺服器只送出 GET 請求,不會修改資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Synergic APIs,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Synergic APIs — MCP Server

Official Model Context Protocol server for Synergic APIs: official US economic data for AI agents. It gives Claude, Cursor, and any MCP-capable client direct access to:

  • US Inflation API — the official CPI-U from the Bureau of Labor Statistics: 11 categories, YoY/MoM rates computed like the BLS, monthly history back to 1913, official annual averages.
  • Famous prices — US average price of eggs, gasoline, milk, bread, ground beef, coffee and electricity, monthly since 1976.
  • US National Debt API — the U.S. Treasury debt to the penny, every business day since 1993, annual debt outstanding since 1790, and the average interest rates the Treasury pays.

All amounts are JSON numbers, periods are YYYY-MM / YYYY-MM-DD, and missing months in the official record are served as null — never invented.

Requirements

Installation

The server runs over stdio via npx — no clone, no build.

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

json
{  "mcpServers": {    "synergic-apis": {      "command": "npx",      "args": ["-y", "@synergic-apis/mcp"],      "env": {        "SYNERGIC_API_KEY": "YOUR_API_KEY"      }    }  }}

Claude Code

bash
claude mcp add synergic-apis --env SYNERGIC_API_KEY=YOUR_API_KEY -- npx -y @synergic-apis/mcp

Cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in your project):

json
{  "mcpServers": {    "synergic-apis": {      "command": "npx",      "args": ["-y", "@synergic-apis/mcp"],      "env": {        "SYNERGIC_API_KEY": "YOUR_API_KEY"      }    }  }}

Configuration

VariableRequiredDefaultDescription
SYNERGIC_API_KEYyes—Your API key. Sent as X-Api-Key on every request.
SYNERGIC_GATEWAY_URLnohttps://api.synergicapis.comGateway base URL (override for testing).

Tools

ToolWhat it doesKey arguments
get_us_inflation_latestLatest month of CPI for all 11 categories with YoY/MoM rates.adjusted (optional)
get_us_inflation_historyMonthly CPI history of one category (headline since 1913).category, start/end (YYYY-MM), limit (≤100), adjusted
get_us_inflation_annualOfficial annual average CPI (M13, NSA). limit=150 = whole headline series.category, start/end (YYYY), limit (≤150)
get_famous_pricesLatest basket of famous US prices, or one item's monthly history.item (optional), start/end (YYYY-MM), limit (≤100)
get_us_debt_latestThe US national debt today, to the penny.—
get_us_debt_historyDaily debt (1993+, limit ≤100) or annual fiscal-year-end debt (1790+, limit=250 = whole series).frequency (daily/annual), start/end (YYYY-MM-DD), limit
get_us_interest_ratesLatest Treasury avg interest rate per security class, or one class's monthly history (2001+).security_class (optional), start/end (YYYY-MM-DD), limit (≤100)
get_my_usagePlan, requests used, monthly limit and reset date of your key.—

History tools paginate by period range: when a response's meta.next_end is not null, call the tool again with end set to that value to get older data.

Try it

Ask your assistant things like:

  • "What is US inflation right now, headline and core?"
  • "Plot the price of eggs since 2020."
  • "How much did the US national debt grow in the last 12 months?"
  • "What rate does the Treasury pay on T-bills today vs 2021?"

Troubleshooting

  • "SYNERGIC_API_KEY is not set" — the server exits at startup if the key is missing. Add it to the env block of your MCP client config (see above) and restart the client.
  • "Invalid API key" — the gateway rejected the key (typo or revoked). Keys look like sk_.... Get a fresh one at synergicapis.com/signup.html.
  • "Rate limit exceeded … retry after Xs" — you hit your plan's per-minute limit (free: 10 req/min). Wait and retry.
  • "Monthly quota exhausted" — you used the month's requests (free: 500). Ask the agent to call get_my_usage for details, wait for the 1st (UTC), or upgrade at synergicapis.com/pricing.html.
  • Tools don't appear in the client — check the client's MCP logs; the most common causes are an old Node (needs 18.17+) or npx not on the PATH used by the client. Running npx -y @synergic-apis/mcp in a terminal should print ready on stdio to stderr and then wait for input.
  • Corporate proxy / self-hosted testing — point SYNERGIC_GATEWAY_URL at your gateway; the server only ever issues GET requests with X-Api-Key.

Development

bash
npm installnpm run typecheck   # tsc --noEmit (strict)npm test            # vitest — tool→request mapping + error mapping, fetch mockednpm run build       # emits dist/ and the synergic-apis-mcp bin

Data sources & license

Data: U.S. Bureau of Labor Statistics and U.S. Treasury Fiscal Data (public domain; this product is not endorsed by or affiliated with either agency). Code: MIT.

來源:README.md,提交 0239e30

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。