QuantGist

io.github.QuantGist-Technologies由 GitHub 帳號 QuantGist-Technologies 發布v0.5.4更新於 Oct 24, 2026

Macro events, earnings & market data from QuantGist for Claude and other AI agents.

概覽

AI 產生的概覽

讓助理查詢 QuantGist 的總體經濟事件行事曆、財報資料與收盤行情,並管理帳戶的 webhook 與 API 金鑰。

可以做什麼
註冊 22 個工具,涵蓋總體經濟事件(未來事件、日期區間事件、每日經濟行事曆、事件詳情)、財報(即將發布的報告、單一股票代號的歷史、優於/不如預期彙總、最大 EPS 意外、財報季彙總),以及收盤行情概覽。探索類工具說明定價、方案額度、端點建議、服務狀態與用量成本估算。帳戶類工具可讀取訂閱與 webhook,並可建立或刪除 webhook、建立 API 金鑰,以及為方案升級建立 Stripe 結帳工作階段。
適用情境
當助理需要在對話中取得已排定的總體資料發布、財報日期與優於預期紀錄,或主要指數與大宗商品報價時適用,例如交易前檢查事件接近程度,或查看某檔股票的財報歷史。若希望由代理註冊 webhook 端點或為自己的工具簽發限定範圍的 API 金鑰,也有用。
執行需求
透過 PyPI 套件 quantgist-mcp 以 stdio 在本機執行(需要 Python 3.10+,可用 uvx 或 pip),也可連線託管 HTTP 端點。需要 QuantGist API 金鑰,透過環境變數 QUANTGIST_API_KEY 提供,託管伺服器則使用 X-API-Key 標頭。需要存取 QuantGist API 的網路;免費方案每天 100 次呼叫。
安裝前請注意
API 金鑰(QUANTGIST_API_KEY)屬於機密;README 指出把金鑰放在 URL 查詢字串中可能被代理或伺服器日誌記錄,因此優先使用標頭。寫入類工具(create_webhook、delete_webhook、create_api_key、create_checkout_session)需要 confirm: true,否則只回傳預覽;delete_webhook 具破壞性,會刪除投遞歷史。新建的 API 金鑰與 webhook 簽章金鑰只顯示一次。create_checkout_session 不會扣款,但會回傳需由人工完成的 Stripe 連結。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

QuantGist MCP Server

[smithery badge]

Exposes QuantGist macro-economic event data as Model Context Protocol (MCP) tools so Claude and other AI agents can query calendars, check event proximity, and assess trade safety — all within a conversation.

What it does

The server registers 22 tools that any MCP-compatible client (Claude Desktop, Claude Code, custom agents) can call:

Macro economic events

ToolDescription
get_upcoming_eventsEvents scheduled in the next N hours, filtered by impact
get_events_rangeEvents in a date range with optional country/symbol/impact filters
get_economic_calendarFull day macro calendar from /calendar, grouped by time, with coverage/warnings metadata
get_event_detailFull details for one event by ID (actual, forecast, previous, symbols)

Earnings

ToolDescription
get_earnings_upcomingNext upcoming earnings reports across all tickers, with EPS/revenue estimates
get_earnings_for_tickerEarnings history for one ticker (estimate vs actual, beat/miss, EDGAR links)
get_earnings_summaryBeat / miss / in-line counts and overall beat rate for a ticker
get_earnings_surprisesLargest EPS surprises across the market in the latest reports
get_earnings_season_summaryIndex-level summary of the current earnings season

Markets

ToolDescription
get_markets_overviewEnd-of-day quotes for major indices and instruments (S&P 500, Nasdaq, gold, oil…)

Discovery & help (read-only, no API key required)

ToolDescription
get_pricingPlans, prices, and feature gates (free → enterprise) + the Bot Usage Add-On
get_limitsPer-plan caps: request quotas, history window, data delay, WS, watchlists, rate limiting
recommend_endpointMap a natural-language use case to the best REST endpoint + MCP tool
get_statusCheck API reachability and link the public status page
estimate_usage_costEstimate which plan fits a request volume + overage / Bot Usage Add-On notes

Account (webhooks, API keys, billing)

ToolDescription
get_subscriptionCurrent plan, status, and billing period (read-only)
list_webhooksRegistered webhook endpoints (read-only; Pro plan)
create_webhookRegister an HTTPS webhook endpoint — confirm-gated; signing secret shown once
delete_webhookPermanently delete a webhook endpoint — confirm-gated, destructive
test_webhookSend a signed synthetic test delivery to verify your consumer
create_api_keyCreate a (optionally scoped) API key — confirm-gated; key shown once
create_checkout_sessionCreate a Stripe Checkout session for a plan upgrade — confirm-gated; never charges

Write tools & consent model

Mutating tools follow an explicit human-in-the-loop pattern:

  • confirm: true required. Called without it, a mutating tool makes no API call and returns a preview of exactly what would happen, so the agent can get the user's approval first.
  • Billing mandate. create_checkout_session never charges anything — it returns a Stripe-hosted checkout URL that a human must open in a browser and complete. No card data ever passes through the tool or QuantGist's API. The plan upgrades automatically after payment.
  • Once-only secrets. New API keys and webhook signing secrets are returned exactly once, with a warning to store them in an env var or secrets manager — never in committed files.
  • Server-side enforcement stands. Plan gates (webhooks require Pro) and key scopes are enforced by the QuantGist API itself; the tools surface actionable hints on 403s rather than bypassing anything.

Requirements

  • Python 3.10+ (for the local/stdio install — not needed for the hosted server)
  • A QuantGist API key — get one at quantgist.com (free tier: 100 calls/day)

Connect to the hosted server (no install)

The MCP server is hosted over HTTP at https://api.quantgist.com/mcp — no install, no Python. Any client that supports the streamable-HTTP transport can connect by sending your QuantGist key in an X-API-Key header (multi-tenant: billed to your own quota).

Claude Code, in one command:

bash
claude mcp add --transport http quantgist https://api.quantgist.com/mcp \  --header "X-API-Key: qg_live_YOUR_KEY"

Any streamable-HTTP MCP client:

json
{  "mcpServers": {    "quantgist": {      "type": "streamable-http",      "url": "https://api.quantgist.com/mcp",      "headers": { "X-API-Key": "qg_live_YOUR_KEY" }    }  }}

Connectors that only accept a URL (e.g. ChatGPT): if you can't set a custom header, put the key in the URL instead — https://api.quantgist.com/mcp?apiKey=qg_live_YOUR_KEY (also accepts Authorization: Bearer <key>). The header is preferred where possible, since a key in the URL can be recorded in proxy/server logs.

Prefer to run it yourself? Install locally (below) or self-host the HTTP server — see DEPLOY.md.

Installation

Option A — install from the package (recommended)

bash
pip install quantgist-mcp# or with uv:uv pip install quantgist-mcp

Option B — install from source (development)

bash
git clone https://github.com/QuantGist-Technologies/QuantGist_MCPcd QuantGist_MCPuv sync          # installs all dependencies into a venvuv run quantgist-mcp   # start the server

Claude Desktop configuration

Locate your Claude Desktop config file:

PlatformPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

Add the quantgist server block (see claude_desktop_config_example.json):

json
{  "mcpServers": {    "quantgist": {      "command": "quantgist-mcp",      "env": {        "QUANTGIST_API_KEY": "qg_live_YOUR_KEY_HERE"      }    }  }}

Restart Claude Desktop after saving. The tools will appear in the tool list.

Using uv run instead of a global install

If you prefer not to install globally, point Claude Desktop at uv run:

json
{  "mcpServers": {    "quantgist": {      "command": "uv",      "args": ["run", "--directory", "/absolute/path/to/Quangist_MCP", "quantgist-mcp"],      "env": {        "QUANTGIST_API_KEY": "qg_live_YOUR_KEY_HERE"      }    }  }}

Claude Code configuration

Add to .claude/mcp_settings.json in your project (or the global ~/.claude/mcp_settings.json):

json
{  "mcpServers": {    "quantgist": {      "command": "quantgist-mcp",      "env": {        "QUANTGIST_API_KEY": "qg_live_YOUR_KEY_HERE"      }    }  }}

Self-hosting (HTTP transport)

Besides the stdio transport above, the server can run as a hosted HTTP service via the quantgist-mcp-http entry point (GET /health, MCP at /mcp). It accepts a per-request X-API-Key header (multi-tenant) or a server-side QUANTGIST_API_KEY env var.

bash
docker build -t quantgist-mcp .docker run -p 8000:8000 -e QUANTGIST_API_KEY=qg_live_YOUR_KEY quantgist-mcpcurl http://localhost:8000/health

See DEPLOY.md for Docker, Docker Compose, and Coolify deployment.

Tool reference

get_upcoming_events

Returns events in the next N hours.

ParameterTypeDefaultDescription
hoursinteger (1–168)24Look-ahead window in hours
impacthigh | medium | low | allhighImpact filter

get_events_range

Returns events in a date range.

ParameterTypeRequiredDescription
from_dateISO stringYesStart date/datetime
to_dateISO stringYesEnd date/datetime
countrystringNo2-letter country code (e.g. "US")
impactenumNohigh | medium | low | all
symbolstringNoTrading symbol (e.g. "XAUUSD")

get_economic_calendar

Returns the day's macro calendar grouped by release time. This tool calls GET /v1/calendar?envelope=true, not the broad /events feed, so general financial-news headlines are not mixed into scheduled macro releases.

The structured output preserves the backend envelope:

  • events / count / returned_count
  • total_count
  • coverage
  • warnings
  • truncated
  • schema_version

If the backend response is partial, stale, truncated by the MCP safety cap, or missing the required calendar envelope, the tool surfaces that in warnings and does not fall back to /events.

ParameterTypeDefaultDescription
dateISO datetoday (UTC)Date to fetch
impactenumhighImpact filter

get_event_detail

Returns full detail for one event.

ParameterTypeRequiredDescription
event_idstringYesEvent ID from any other tool

get_earnings_upcoming

Returns the next upcoming earnings reports across all tickers, ordered by report date.

ParameterTypeDefaultDescription
limitinteger (1–100)20Number of upcoming reports to return

get_earnings_for_ticker

Returns earnings history for a single ticker (EPS estimate vs actual, revenue, beat/miss, EDGAR links).

ParameterTypeDefaultDescription
tickerstringrequiredStock ticker, e.g. "AAPL"
limitinteger (1–50)10Number of historical reports to return

get_earnings_summary

Returns beat / miss / in-line counts and overall beat rate for a ticker.

ParameterTypeRequiredDescription
tickerstringYesStock ticker, e.g. "AAPL"

get_earnings_surprises

Returns the largest EPS surprises across the market in the most recent reports.

ParameterTypeDefaultDescription
limitinteger (1–50)20Number of top surprises to return

get_earnings_season_summary

Returns the index-level summary of the current earnings season (total reports, overall beat rate, average EPS surprise, season label). No parameters.

get_markets_overview

Returns end-of-day quotes for major market indices and instruments (S&P 500, Nasdaq, Dow Jones, gold, oil, etc.). No parameters.

get_subscription

Returns the authenticated account's plan, status, and billing period. No parameters. Read-only.

list_webhooks

Lists the account's registered webhook endpoints. No parameters. Read-only; webhooks require the Pro plan.

create_webhook

Registers an HTTPS webhook endpoint (Pro plan). Confirm-gated: without confirm: true it returns a preview and makes no API call. The signing secret is returned once only.

ParameterTypeDefaultDescription
urlstring (required)—HTTPS URL that will receive event POSTs
eventsstring[]["*"]Event types: economic_release, earnings, earnings.scheduled, earnings.confirmed, earnings.reported, earnings.surprise, news.radar.breaking, or *
impact_filterstring[]—Only deliver events with these impact levels, e.g. ["high"]
confirmbooleanfalseMust be true to actually create

delete_webhook

Permanently deletes a webhook endpoint and its delivery history. Confirm-gated and destructive.

ParameterTypeDefaultDescription
webhook_idstring (required)—Endpoint ID from list_webhooks
confirmbooleanfalseMust be true to actually delete

test_webhook

Sends a signed synthetic test event to a webhook endpoint so you can verify reachability and X-QuantGist-Signature verification.

ParameterTypeDefaultDescription
webhook_idstring (required)—Endpoint ID from list_webhooks

create_api_key

Creates a new API key, optionally scoped. Confirm-gated. The full key is returned once only — store it securely.

ParameterTypeDefaultDescription
namestring"Agent key"Human-readable label
environmentlive | testliveProduction data vs sandbox
scopesstring[]["*"]Prefer least privilege: events:read, calendar:read, webhooks:manage, usage:read, watchlists:manage
confirmbooleanfalseMust be true to actually create

create_checkout_session

Creates a Stripe Checkout session for a plan upgrade. Never charges — returns a Stripe-hosted checkout URL a human must open and complete. Confirm-gated.

ParameterTypeDefaultDescription
planstarter | pro | team (required)—Target plan
confirmbooleanfalseMust be true, and only after the user explicitly approved the upgrade

Example prompts

These prompts work out of the box once the server is connected:

  • "What high-impact events are in the next 4 hours?"
  • "Show me today's full economic calendar"
  • "Show me this week's high-impact USD events"
  • "What macro events affect EURUSD this Friday?"
  • "Get me details on event ID abc123"
  • "Which companies report earnings soon?"
  • "Show me AAPL's earnings beat rate"
  • "What were the biggest EPS surprises this season?"
  • "Give me a quick market overview"
  • "What plan am I on?"
  • "Set up a webhook to https://my-bot.example.com/hooks for high-impact USD events"
  • "Create a read-only test API key for my backtester"
  • "I want to upgrade to Pro" (the agent hands you a Stripe checkout link — payment always stays with you)

Environment variables

VariableRequiredDescription
QUANTGIST_API_KEYYesYour QuantGist API key (qg_live_... or qg_test_...)

Development

bash
uv syncuv run quantgist-mcp          # run the MCP serveruv run pytest                 # run tests (if present)uv run ruff check src/        # lintuv run ruff format src/       # format

API rate limits

The free tier allows 100 API calls/day with up to 365 days of event history. Each tool invocation makes 1–2 API calls. Upgrade at quantgist.com/pricing for higher limits.

License

MIT

來源:README.md,提交 69206cc

工具

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

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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