
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.
概览
让助手查询 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 次调用。
安装
在 SourceWeft 中
- 打开 控制台中的 QuantGist,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
QuantGist MCP Server
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
Earnings
Markets
Discovery & help (read-only, no API key required)
Account (webhooks, API keys, billing)
Write tools & consent model
Mutating tools follow an explicit human-in-the-loop pattern:
confirm: truerequired. 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_sessionnever 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:
Any streamable-HTTP MCP client:
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)
Option B — install from source (development)
Claude Desktop configuration
Locate your Claude Desktop config file:
Add the quantgist server block (see claude_desktop_config_example.json):
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:
Claude Code configuration
Add to .claude/mcp_settings.json in your project (or the global ~/.claude/mcp_settings.json):
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.
See DEPLOY.md for Docker, Docker Compose, and Coolify deployment.
Tool reference
get_upcoming_events
Returns events in the next N hours.
get_events_range
Returns events in a date range.
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_counttotal_countcoveragewarningstruncatedschema_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.
get_event_detail
Returns full detail for one event.
get_earnings_upcoming
Returns the next upcoming earnings reports across all tickers, ordered by report date.
get_earnings_for_ticker
Returns earnings history for a single ticker (EPS estimate vs actual, revenue, beat/miss, EDGAR links).
get_earnings_summary
Returns beat / miss / in-line counts and overall beat rate for a ticker.
get_earnings_surprises
Returns the largest EPS surprises across the market in the most recent reports.
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.
delete_webhook
Permanently deletes a webhook endpoint and its delivery history. Confirm-gated and destructive.
test_webhook
Sends a signed synthetic test event to a webhook endpoint so you can verify reachability and X-QuantGist-Signature verification.
create_api_key
Creates a new API key, optionally scoped. Confirm-gated. The full key is returned once only — store it securely.
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.
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
Development
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版本历史
1- v0.5.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分