Claude & ChatGPT (MCP)¶
The Aurastream MCP server lets AI assistants that support the Model Context Protocol (Claude Desktop, Claude Code, ChatGPT and others) fetch data from Aurastream themselves. You ask in plain language; the assistant picks the source, calls the /timeseries endpoint and works with the result.
Tools¶
| Tool | Description |
|---|---|
list_sources |
Sources, asset classes, ticker formats, intervals, data types, and whether provider credentials are configured. Does not use your allowance. |
get_timeseries |
Calls /timeseries and returns a compact table per ticker: the most recent rows, 100 by default, up to 1000. |
get_latest |
The most recent N bars per ticker, without picking dates. |
These sources from Data Sources are available (version 0.1.2 or later):
| Group | Sources |
|---|---|
| Crypto | Binance, Bybit, Kraken, Deribit, KuCoin, dYdX, Hyperliquid, Derive; with your own key: CoinAPI; with a Nemeton subscription: Nemeton |
| Equities, FX, futures, CFDs | Yahoo Finance; with your own account: Oanda, Alpaca, Polygon, FirstRate, TradeStation, City Index |
| Macro and energy | US Treasury, World Bank, SDMX; with a free key: FRED, EIA; with your own key: Trading Economics, Nasdaq Data Link |
| Fundamentals | SEC EDGAR; with your own key: Finnhub |
| Positioning and flows | CFTC, UK Trade, EU Trade, Hong Kong Trade; with a free key: US Trade |
| Crypto fundamentals and news | DefiLlama, GDELT; with a free key: CoinGecko |
| Weather | Open-Meteo; with your own key: Visual Crossing |
The server is open source (MIT): github.com/UnbiasedAlpha/aurastream-mcp.
1. Install¶
Requires Python 3.10+.
This installs the aurastream-mcp command. Check it with aurastream-mcp --help.
2. Configure your keys¶
The server reads every key from environment variables. Provider credentials are never typed into the chat and never pass through the model.
| Variable | Used for |
|---|---|
AURASTREAM_API_KEY |
Required. Your Aurastream 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 |
FIRSTRATE_USER_ID |
FirstRate: the user ID FirstRate Data gives you for API downloads |
EIA_API_KEY |
EIA |
CENSUS_API_KEY |
US Trade |
EDGAR_USER_AGENT |
SEC EDGAR: your name and contact email, e.g. Your Company contact@yourcompany.com |
NEMETON_API_KEY |
Nemeton: the key from your Nemeton subscription |
COINAPI_KEY |
CoinAPI |
COINGECKO_API_KEY or COINGECKO_DEMO_API_KEY |
CoinGecko: a Pro key, or a free Demo key (last 365 days only) |
NASDAQ_DATA_LINK_API_KEY |
Nasdaq Data Link |
TRADINGECONOMICS_API_KEY |
Trading Economics |
TRADESTATION_CLIENT_ID, TRADESTATION_CLIENT_SECRET, TRADESTATION_REFRESH_TOKEN |
TradeStation |
CITYINDEX_USERNAME, CITYINDEX_PASSWORD, CITYINDEX_APP_KEY |
City Index |
VISUALCROSSING_API_KEY |
Visual Crossing |
OPENMETEO_API_KEY |
Open-Meteo, optional |
The server turns these into the credentials object described in Credentials. Set only the ones you need.
3. Connect your assistant¶
Open Settings > Developer > Edit Config and add to claude_desktop_config.json:
{
"mcpServers": {
"aurastream": {
"command": "aurastream-mcp",
"env": {
"AURASTREAM_API_KEY": "YOUR_AURASTREAM_API_KEY"
}
}
}
}
Restart Claude Desktop. If the command is not found, use its full path.
Add -e FRED_API_KEY=... and similar for sources that need credentials.
ChatGPT connects to remote MCP servers over HTTPS. Run the server in HTTP mode:
AURASTREAM_API_KEY=YOUR_AURASTREAM_API_KEY aurastream-mcp --http --port 8000 --allowed-host mcp.example.com
Expose it at a public HTTPS address (a reverse proxy with TLS, or a tunnel such as Cloudflare Tunnel or ngrok) and add https://mcp.example.com/mcp as a connector in ChatGPT.
HTTP mode is for single-user self-hosting
A client that sends an x-api-key or Authorization: Bearer header uses its own key. Without one, the server falls back to AURASTREAM_API_KEY, so anyone with the URL uses your allowance and your provider credentials. Keep the URL private, or start the server with --require-client-key.
4. Ask for data¶
Some prompts to try:
- "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."
- "Show Binance BTCUSDT perpetual funding rates for June 2025."
- "How has managed-money positioning in gold futures changed since 2020?"
- "Show monthly UK gold exports to Switzerland since 2020."
Limits¶
- Historical data, not a real-time feed.
- Each data request is one API call and counts against your monthly allowance (free plan: 500 calls per month, see Plans & Limits). When the allowance runs out the assistant is told so; it resets on the 1st.
- Responses are capped per ticker so they fit in the assistant's context. For long, fine-grained histories, call the API directly.