Skip to main content

MCP server — exposes QuantGist macro event tools to Claude and AI agents

Project description

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 ten tools that any MCP-compatible client (Claude Desktop, Claude Code, custom agents) can call:

Macro economic events

Tool Description
get_upcoming_events Events scheduled in the next N hours, filtered by impact
get_events_range Events in a date range with optional country/symbol/impact filters
get_economic_calendar Full day calendar grouped by time, formatted as a schedule
get_event_detail Full details for one event by ID (actual, forecast, previous, symbols)

Earnings

Tool Description
get_earnings_upcoming Next upcoming earnings reports across all tickers, with EPS/revenue estimates
get_earnings_for_ticker Earnings history for one ticker (estimate vs actual, beat/miss, EDGAR links)
get_earnings_summary Beat / miss / in-line counts and overall beat rate for a ticker
get_earnings_surprises Largest EPS surprises across the market in the latest reports
get_earnings_season_summary Index-level summary of the current earnings season

Markets

Tool Description
get_markets_overview End-of-day quotes for major indices and instruments (S&P 500, Nasdaq, gold, oil…)

Requirements

  • Python 3.10+
  • A QuantGist API key — get one at quantgist.com (free tier: 100 calls/day)

Installation

Option A — install from the package (recommended)

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

Option B — install from source (development)

git clone https://github.com/QuantGist-Technologies/QuantGist_MCP
cd QuantGist_MCP
uv sync          # installs all dependencies into a venv
uv run quantgist-mcp   # start the server

Claude Desktop configuration

Locate your Claude Desktop config file:

Platform Path
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):

{
  "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:

{
  "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):

{
  "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.

docker build -t quantgist-mcp .
docker run -p 8000:8000 -e QUANTGIST_API_KEY=qg_live_YOUR_KEY quantgist-mcp
curl 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.

Parameter Type Default Description
hours integer (1–168) 24 Look-ahead window in hours
impact high | medium | low | all high Impact filter

get_events_range

Returns events in a date range.

Parameter Type Required Description
from_date ISO string Yes Start date/datetime
to_date ISO string Yes End date/datetime
country string No 2-letter country code (e.g. "US")
impact enum No high | medium | low | all
symbol string No Trading symbol (e.g. "XAUUSD")

get_economic_calendar

Returns the day's calendar grouped by release time.

Parameter Type Default Description
date ISO date today (UTC) Date to fetch
impact enum high Impact filter

get_event_detail

Returns full detail for one event.

Parameter Type Required Description
event_id string Yes Event ID from any other tool

get_earnings_upcoming

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

Parameter Type Default Description
limit integer (1–100) 20 Number 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).

Parameter Type Default Description
ticker string required Stock ticker, e.g. "AAPL"
limit integer (1–50) 10 Number of historical reports to return

get_earnings_summary

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

Parameter Type Required Description
ticker string Yes Stock ticker, e.g. "AAPL"

get_earnings_surprises

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

Parameter Type Default Description
limit integer (1–50) 20 Number 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.

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"

Environment variables

Variable Required Description
QUANTGIST_API_KEY Yes Your QuantGist API key (qg_live_... or qg_test_...)

Development

uv sync
uv run quantgist-mcp          # run the MCP server
uv run pytest                 # run tests (if present)
uv run ruff check src/        # lint
uv 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantgist_mcp-0.3.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantgist_mcp-0.3.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file quantgist_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: quantgist_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantgist_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bd974a224d257432cd63b42ad2d49eba0331812e84728d7085190f9d3c223359
MD5 1d6f06ab6ec73423539b0fa1893a3049
BLAKE2b-256 16e191b95dc48a60e6fe28bfc412a568db916e2402217f2495432ae4c5abea2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantgist_mcp-0.3.0.tar.gz:

Publisher: ci.yml on QuantGist-Technologies/QuantGist_MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quantgist_mcp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: quantgist_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantgist_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d33b051ac04cb72179c4aaf790e6e7ed2319434907f2f4a1b0d8b8e0c516912
MD5 5eb8974148186f5858a154b90fc27a8d
BLAKE2b-256 80aeb05f0864aebf81212ddafd7708664a86c5c2ee3099c769aa3b57d9a2373d

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantgist_mcp-0.3.0-py3-none-any.whl:

Publisher: ci.yml on QuantGist-Technologies/QuantGist_MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page