metals-mcp is a compact MCP server for metals-related tools.
The implementation lives under src/metals_mcp/.
The public interface is intended to resemble crypto-mcp closely, while the backend uses Swissquote polling and a local candle store.
The intended analytical shape is simple: clock-aligned 5m candles as the base market view, with gold and silver as the primary focus.
GET / → health + tool listGET /health → health + store statsGET /mcp/sse8515Tool calls are performed via FastMCP’s message transport under /mcp/messages/.
get_price - Fetch live Swissquote quotes for metalsget_ohlcv - Get OHLCV candle data for a symbol and timeframeget_indicator - Calculate technical indicators (SMA, EMA, RSI, ATR, return_pct, volatility)get_market_snapshot - Get comprehensive market analysis for a single symbolget_top_movers - Get top moving symbols by percentage changeget_capabilities - Get server capabilities and available toolsget_regime - Get market regime classificationget_last_candle - Get the most recent completed candleget_snapshot - Get comprehensive multi-timeframe, multi-symbol market snapshot5m00:00–00:05, 00:05–00:10get_price for metals like XAUget_last_candle as a small convenience helperget_market_snapshot and get_regime namesMETALS_CANDLE_RETENTION_DAYS, with periodic pruning in the poller../tests.sh./run.sh./killserver.sh./restart.sh