Insightiq

io.github.ravi-p-k-1由 GitHub 帳號 ravi-p-k-1 發布v1.0.2更新於 Oct 24, 2026

Look up real FRED (Federal Reserve Economic Data) series and historical observations.

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

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理搜尋即時 FRED 目錄並取得歷史經濟序列資料以供分析。

可以做什麼
以簡短關鍵詞片語搜尋 FRED 即時序列目錄,可限制結果數量並依標籤篩選,只回傳真實的序列 ID 與標題。依指定序列 ID 取得歷史年度觀測值與單位,回傳原始資料。依問題或搜尋片語執行搜尋加取得的組合流程。列出某主題下實際存在的 FRED 標籤及序列數量,用來引導標籤篩選。
適用情境
當你希望助理根據真實的美國聯準會經濟資料而非記憶來回答經濟問題,且願意提供 FRED API 金鑰時使用。它只回傳檢索到的資料,分析與解釋由助理自行完成。
執行需求
透過 npm 套件 insightiq-mcp 以 npx 作為本機程序執行,需要 Node.js 20 或更新版本。需要在 FRED_API_KEY 環境變數中提供免費的 FRED API 金鑰。需要連線至 FRED API 的網路存取。
安裝前請注意
FRED_API_KEY 金鑰在用戶端設定中傳遞,應避免寫入共用檔案。此伺服器只從 FRED 讀取並回傳原始資料,不產生解釋,結論來自呼叫它的模型。查詢與序列請求會傳送給第三方 FRED 服務。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

InsightIQ: Economy Insight Assistant

InsightIQ is a local MCP server that gives an AI agent (Claude Code, Claude Desktop, or any other MCP client) the ability to look up real FRED (Federal Reserve Economic Data) series and their historical observations to answer economic questions.

The flow is:

  1. An agent searches FRED's live series catalog (via the search_economic_series or get_economic_data tool) for series relevant to the user's question.
  2. The agent fetches annual observations and units for the series it cares about.
  3. The agent analyzes that data itself and answers the user's question — InsightIQ returns retrieved data only, it does not generate the explanation.

Install

Published on npm as insightiq-mcp. You'll need a free FRED API key first: get one here.

json
{  "mcpServers": {    "insightiq": {      "command": "npx",      "args": ["-y", "insightiq-mcp"],      "env": {        "FRED_API_KEY": "your_fred_api_key_here"      }    }  }}

Add that to your MCP client's config (a .mcp.json file for Claude Code, or Settings → Developer → Edit Config in Claude Desktop). See mcp/README.md for the full tool reference and per-client details.

Architecture

mermaid
flowchart TD  agent[Agent / MCP Client] -->|Tool calls, stdio| mcp[InsightIQ MCP Server]
  mcp -->|Search phrases| fredSearch[FRED series/search]  fredSearch -->|Real FRED series IDs| mcp
  mcp -->|Series IDs| fredApi[FRED API]  fredApi -->|Annual observations and metadata| mcp
  mcp -->|Raw retrieved data| agent

Everything runs as a single local process launched by the agent host. There is no database, no local catalog, no separate backend service, and no LLM call anywhere in InsightIQ itself — the only model doing any reasoning about the data is whichever LLM is driving the calling agent.

Tools

search_economic_series

Searches FRED's live series catalog. Takes queries: 1-3 concise, FRED-style keyword phrases (e.g. ["inflation", "consumer price index"]) rather than a full question — FRED's full-text search effectively requires every word in a phrase to match, so short specific phrases work far better than sentences. Returns real FRED series IDs and titles only; it never invents series IDs. Each phrase is run through a filler-word stripper before hitting FRED for exactly this reason. Optional limit (default 4) and tags/excludeTags (FRED's tag vocabulary, e.g. geography or seasonal adjustment) narrow results further.

get_series_observations

Fetches historical annual observations and units for specific FRED series IDs. Returns raw data only — no summary or explanation is generated.

get_economic_data

Convenience tool that chains the two above: searches for relevant series using searchQueries if given (falling back to the raw question otherwise), then fetches their observations. Still returns raw data only. Accepts the same limit/tags/excludeTags as search_economic_series.

list_series_tags

Given a topic phrase, returns the FRED tags that actually exist among matching series with their series counts — the discovery step for using tags/excludeTags above, since FRED's tag vocabulary usually can't be guessed reliably.


Development

The following is only relevant if you want to modify this server or contribute to it — not needed to use it (see Install above for that).

  • mcp/: the MCP server. src/tools/ are the exposed tools; src/services/ and src/clients/ hold the FRED search and data-fetch logic; evals/ has the MCP-level eval suite (tool contract + retrieval recall).

Prerequisites: Node.js 20 or newer, a FRED API key.

bash
git clone https://github.com/ravi-p-k-1/InsightIQ.gitcd InsightIQ/mcpnpm install

Create mcp/.env from mcp/.env.template:

bash
FRED_API_KEY=your_fred_api_key_here

Run it directly to confirm it starts:

bash
npm start

The repository root has a project-scoped .mcp.json that points Claude Code at your local checkout (picked up automatically when opened at the repository root, with your approval on first use) — useful for testing changes before publishing a new version.

Validation

GitHub Actions runs CI on pushes to main and on pull requests: installs dependencies and checks syntax, without calling FRED.

bash
cd mcpfind src evals -name "*.js" -print0 | xargs -0 -n1 node --check

There is no separate unit-test suite — correctness and quality are verified through MCP-level evals that connect a real client to the real server in-process and drive it exactly the way an agent would. These call the live FRED API, so they're run manually rather than in CI:

bash
cd mcpnpm run eval:contract          # tool inventory, schema/error-path, happy-path checksnpm run eval:retrieval         # retrieval recall floor (single raw question)npm run eval:retrieval:smart   # retrieval recall ceiling (curated query plans)

eval:retrieval measures the no-query-intelligence floor (45.3% on the current question set); eval:retrieval:smart replays a checked-in set of per-question search phrases/tags chosen the way a competent agent would (62.4%), without needing a live LLM call at eval time. See mcp/README.md for what each eval checks.

來源:README.md,提交 1108bfd

工具

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

版本歷史

1
  1. v1.0.2最新Sep 18, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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