forex-predict-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@forex-predict-mcp predict EURUSD direction with current features"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
forex-predict-mcp
A FastMCP server that exposes XGBoost directional predictions for EURUSD=X and GBPUSD=X as MCP tools. Packaged as a Docker stdio image — no env vars required.
Designed to run alongside the oanda-mcp-server as a tool for a Claude trading agent.
Tools
get_market_features(ticker)
Fetches ~1 year of daily OHLCV data from Yahoo Finance plus cross-asset data (DXY, VIX, EURUSD), computes the full feature vector, and returns it for inspection.
Parameters:
ticker—"EURUSD=X"or"GBPUSD=X"
Response:
{
"ticker": "EURUSD=X",
"as_of": "2026-06-19",
"features": {
"return_5d": 0.0124,
"return_10d": 0.0231,
"return_20d": -0.0052,
"rsi_14": 58.3,
"atr_14": 0.00234,
"macd_hist": 0.00012,
"sma50_ratio": 1.003,
"dxy_return_5d": -0.0081,
"dxy_return_20d": -0.0152,
"vix_return_5d": 0.122,
"vix_vs_sma20": -0.048
}
}GBPUSD=X additionally includes eurusd_return_5d and eurusd_return_20d.
get_forex_signal(ticker, features)
Runs the baked-in XGBoost model against pre-computed features and returns a directional signal.
Parameters:
ticker—"EURUSD=X"or"GBPUSD=X"features— thefeaturesdict fromget_market_features()
Response:
{
"ticker": "EURUSD=X",
"as_of": "2026-06-19",
"signal": "UP",
"prob_up": 0.773,
"confidence": 0.773
}Related MCP server: curistat-mcp
Typical agent workflow
1. get_market_features("EURUSD=X") → inspect RSI, DXY, VIX values
2. get_forex_signal("EURUSD=X", features) → UP 77.3%
3. cross-reference with Oanda live price and open positions
4. place or skip order.mcp.json configuration
Add the following entry to your .mcp.json (typically at the project root or ~/.claude/.mcp.json):
{
"mcpServers": {
"forex-predict-mcp": {
"type": "stdio",
"command": "docker",
"args": ["run", "--rm", "-i", "sleepingtalent/forex-predict-mcp:latest"]
}
}
}If you already have other servers (e.g. oanda-mcp-server), add forex-predict-mcp alongside them:
{
"mcpServers": {
"oanda-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "--rm", "-i", "-e", "OANDA_API_KEY", "-e", "OANDA_ACCOUNT_ID", "-e", "OANDA_ENVIRONMENT", "sleepingtalent/oanda-mcp-server:latest"]
},
"forex-predict-mcp": {
"type": "stdio",
"command": "docker",
"args": ["run", "--rm", "-i", "sleepingtalent/forex-predict-mcp:latest"]
}
}
}Models
XGBoost binary classifiers trained on 5 years of daily data:
Ticker | Features | Test accuracy |
EURUSD=X | 11 (returns, RSI, ATR, MACD, SMA50, DXY, VIX) | 68.80% |
GBPUSD=X | 13 (same + EURUSD cross-asset returns) | 67.60% |
Models are baked into the Docker image at build time. To update: retrain in weights-biases-example, run uv run task export_models, copy the JSON files into src/forex_predict_mcp/models/, and push — CI publishes a new tagged image automatically.
Available Tools
2 toolsget_forex_signalA
Run the XGBoost model with pre-computed features from get_market_features.
ticker: 'EURUSD=X' or 'GBPUSD=X' features: the features dict returned by get_market_features()
Returns {ticker, as_of, signal (UP/DOWN), prob_up, confidence} on success, or {error: reason} if features are missing or the ticker is unsupported.
Inputs: ticker (required), features (required). Returns: object
get_market_featuresA
Fetch and compute the feature vector for a forex pair.
ticker: 'EURUSD=X' or 'GBPUSD=X'
Returns {ticker, as_of, features: {feature_name: value}} on success, or {error: reason} if the ticker is unsupported or data cannot be fetched. Call this first, inspect the features, then pass them to get_forex_signal.
Inputs: ticker (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct roles: one fetches and computes market features, the other consumes those features to produce a signal. There is no ambiguity about which tool to call for a given step.
Both tools follow the same verb_noun pattern (get_market_features, get_forex_signal), making the naming predictable and consistent.
With only two tools, the set is minimal but appropriate for a focused prediction pipeline. It feels thin for a broader domain, but for the stated purpose of feature extraction plus signal generation, it is acceptable.
The tools cover the core workflow: fetch features, then run the model. There is no missing operation for the primary use case, though additional tools like backtesting or historical data retrieval would enhance completeness.
Maintenance
Related MCP Connectors
Live LinReg fan charts, 64-setup playbook, 11-section MTF TA. Remote MCP, no API key.
Trend and order-flow signals for OKX USDT perpetual swaps, over MCP. Pay per call.
Financial Datasets AI MCP — wraps financialdatasets.ai
US stock signals, screeners and options analysis over MCP. Not investment advice.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables algorithmic stock trading analysis by combining ARIMA, ARIMA-GARCH, and XGBoost models to generate buy/sell/hold signals with risk management, portfolio comparison, and volatility analysis for various market sectors.1-
- AlicenseAqualityDmaintenanceFutures volatility intelligence MCP server for ES, NQ, and related products. Provides forecasts, regime detection, rare signals, and research tools for AI trading agents.101MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI-powered trading analytics and coaching by analyzing historical trades to identify strategies, emotional patterns, and behavioral mistakes via MCP tools.1MIT
- AlicenseBqualityDmaintenanceAI-powered trading toolkit with backtesting, live sentiment, Yahoo Finance, and 30+ technical analysis tools for MCP clients.277MIT