Skip to main content

aurastream-mcp

An MCP server for AuraStream, the unified historical data API. It lets Claude Desktop, Claude Code, ChatGPT and other MCP clients pull OHLCV bars (and, for some sources, funding rates, trades, quotes, order books and earnings) from crypto exchanges, Yahoo Finance, Oanda, Alpaca, Polygon and others, plus macro, positioning and trade-flow data such as FRED, CFTC Commitments of Traders, FINRA short interest, SEC insider trades and UK/EU/US/Hong Kong metals trade, through one tool.

Ask "plot BTC daily closes for Q1 from Binance", "compare SPY and QQQ drawdowns this year" or "how have hedge funds positioned in gold futures since 2020?" and the model calls AuraStream for the data.

Tools

Tool What it does
list_sources() Sources, asset classes, ticker formats, intervals, supported dtypes and source-specific parameters, and whether provider credentials are needed and configured. No API call.
get_timeseries(source, tickers, start, end, interval="1d", dtype="bars", price_type=None, instrument=None, assetclass=None, category=None, feed=None, frequency=None, dataset=None, report=None, options=None, as_of=None, concepts=None, period=None, mode=None, reporter=None, max_rows=100) Calls POST /timeseries. Returns one CSV block per ticker (timestamp,Open,High,Low,Close,Volume for market bars, the source's own fields otherwise), capped at the most recent max_rows rows (max 1000) with the total row count noted.
get_latest(source, tickers, interval="1d", bars=10) The most recent N bars per ticker, without picking dates.

Each get_timeseries / get_latest call is one AuraStream API call.

Sources exposed:

Group Sources
Market data binance, bybit, kraken, yahoo, firstrate; with your own account: oanda, alpaca, polygon
Macro and energy treasury, worldbank; with a free key: fred, eia
Fundamentals edgar (insider trades, reported financials); with your own key: finnhub
Positioning and flows cftc (Commitments of Traders), finra (short interest), hmrc, comext, hktrade; with a free key: uscensus
Crypto fundamentals and news defillama, gdelt

Dates are YYYY-MM-DD. Intervals follow the API: upper-case M is minutes, lower-case m is months (15M = 15 minutes, 1m = one month). The server checks intervals, dtypes and parameters against each source's documented values before calling the API.

Install

Requires Python 3.10+.

pip install "git+https://github.com/UnbiasedAlpha/aurastream-mcp"

A PyPI release (pip install aurastream-mcp / uvx aurastream-mcp) is planned; the snippets below work the same either way.

This installs an aurastream-mcp command. Check it with aurastream-mcp --help.

Configuration

All secrets come from environment variables. Provider credentials are never tool arguments, so they never pass through the chat or the model.

Variable Needed for
AURASTREAM_API_KEY Everything. Get a free key from the dashboard.
OANDA_ACCOUNT_ID, OANDA_TOKEN oanda
OANDA_ENVIRONMENT oanda, optional: practice (default) or live
ALPACA_API_KEY, ALPACA_SECRET_KEY alpaca
POLYGON_API_KEY polygon
FRED_API_KEY fred
FINNHUB_API_KEY finnhub
EIA_API_KEY eia (free at eia.gov)
CENSUS_API_KEY uscensus (free at census.gov)
EDGAR_USER_AGENT edgar: your name and contact email, e.g. Your Company contact@yourcompany.com. The SEC requires it; no registration.

Set only the ones you use. list_sources tells the model which sources are configured.

Claude Desktop

Edit claude_desktop_config.json (Settings > Developer > Edit Config):

{
  "mcpServers": {
    "aurastream": {
      "command": "aurastream-mcp",
      "env": {
        "AURASTREAM_API_KEY": "your-aurastream-key",
        "OANDA_ACCOUNT_ID": "101-004-12345678-001",
        "OANDA_TOKEN": "your-oanda-token"
      }
    }
  }
}

If Claude Desktop can't find the command, use the full path (e.g. C:\\Users\\you\\venv\\Scripts\\aurastream-mcp.exe or /Users/you/venv/bin/aurastream-mcp). Restart Claude Desktop afterwards.

Claude Code

claude mcp add aurastream -e AURASTREAM_API_KEY=your-aurastream-key -- aurastream-mcp

Add -e FRED_API_KEY=... etc. for credentialed sources, and --scope user to make it available in every project.

ChatGPT (remote connector)

ChatGPT only talks to remote MCP servers over HTTPS, so run the server in HTTP mode somewhere reachable and register the URL as a connector (Settings > Connectors, developer mode).

AURASTREAM_API_KEY=your-key aurastream-mcp --http --host 127.0.0.1 --port 8000
# endpoint: http://127.0.0.1:8000/mcp

Put it behind something that gives you a public HTTPS URL (a reverse proxy with TLS, or a tunnel such as Cloudflare Tunnel or ngrok), then tell the server which public host name to accept:

aurastream-mcp --http --port 8000 --allowed-host mcp.example.com

and add https://mcp.example.com/mcp in ChatGPT. Requests with any other Host header are rejected (DNS-rebinding protection).

How the API key works in HTTP mode. If the client sends x-api-key: <key> or Authorization: Bearer <key>, that key is used. Otherwise the server falls back to AURASTREAM_API_KEY. The fallback is what makes ChatGPT work today, but it also means anyone who knows the URL spends your allowance and uses your provider credentials. Treat the HTTP mode as single-user self-hosting: keep the URL private, or put it behind your own auth. For clients that can send headers, start with --require-client-key to disable the fallback. Provider credentials always come from the server's environment.

Other options

aurastream-mcp [--http] [--host HOST] [--port PORT] [--path /mcp]
               [--allowed-host HOST ...] [--require-client-key]

AURASTREAM_API_URL overrides the endpoint (useful for testing).

Example prompts

  • "What sources does AuraStream have for forex?"
  • "Get daily BTCUSDT and ETHUSDT from Binance for 2025 and compute their 30-day rolling correlation."
  • "Show the last 20 hourly bars of EUR_USD from Oanda."
  • "Pull UNRATE and DFF from FRED since 2015 and describe how they moved together."
  • "Show Binance BTCUSDT perpetual funding rates for June 2025."
  • "How has managed-money positioning in gold futures (CFTC) changed since 2020?"
  • "Which AAPL insiders bought or sold shares in 2024?"
  • "Show monthly UK gold exports to Switzerland since 2020."
  • "Fetch SPY and QQQ daily from Yahoo for the last 6 months and compare max drawdowns."

Limits

  • Historical data, not a real-time feed. The last bar may still be forming.
  • Every data call counts against your monthly AuraStream allowance (free plan: 500 calls/month). When it runs out the tool says so; it resets on the 1st at 00:00 UTC. The free plan also allows about 1 request per second.
  • Results are capped per ticker (default 100 rows, max 1000) to keep the model's context manageable. For long, fine-grained histories use the REST API or the Python client directly.
  • The API times out after 120 seconds; split very large requests.
  • Interval support varies by source (see the docs).

Known issues

  • Credential field names. The API docs name the provider credential fields api_key (Polygon, FRED, Finnhub) and api_key / secret_key (Alpaca), while the AuraStream backend library reads key (and secret for Alpaca). Until that is settled, the server sends each value under both names, e.g. {"api_key": k, "key": k}. This has not been tested against the live API yet.
  • FirstRate has no docs page; its ticker format and intervals are not documented, so the server only applies the general interval list.
  • Non-bar data (funding, order book, trades, quotes, earnings, Finnhub financials and the macro, positioning and trade sources) is rendered generically as a table and has not been checked against live responses.
  • Several sources are stamped at the period they describe but published later (EIA, FINRA short interest, the trade sources). list_sources notes the lag; shift the data before backtesting.
  • GDELT search queries are throttled by GDELT itself; keep ranges short. dataset="themes" is not throttled.

Development

python -m venv .venv
.venv/Scripts/activate        # or: source .venv/bin/activate
pip install -e ".[test]"
pytest

The tests mock all HTTP calls; no API key is needed.

License

MIT. See LICENSE.

Metadata

Release files for aurastream-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aurastream-mcp 0.1.0
File Size Uploaded Provenance
aurastream_mcp-0.1.0.tar.gz 22.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aurastream-mcp 0.1.0
File Interpreter ABI Platform
aurastream_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 44.4 kB

Release files / aurastream_mcp-0.1.0.tar.gz

Download URL aurastream_mcp-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
08dccf300cd29ee17e0d7c8597f3a74f3c9e1ce24f4bbdc8e164807bf9e56fa3
BLAKE2b-256 checksum
How to use checksums
6bf24a9e15916c41326e912cb359fbf7daf384f6900a7771b4fa202cbccc0d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / aurastream_mcp-0.1.0-py3-none-any.whl

Download URL aurastream_mcp-0.1.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32ef34bfed83c8c757267a1c59f016b01df9c4061e4f4a6ea97fe2e93ffdd3ce
BLAKE2b-256 checksum
How to use checksums
9796e8b4b979ffc3dfddd798f1131e5e20ca6a719fe04f3fc44bd573c7a9d4a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for aurastream-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aurastream_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page