metalsmarket-bot
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., "@metalsmarket-botwhat is the current price of gold?"
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.
MetalsMarket Bot
A self-hosted toolkit that collects metal & commodity price data from metalsmarket.net and serves it to any MCP-capable LLM client (Claude Desktop, Cursor, or an HTTP MCP host) through a small Model Context Protocol server.
Responsible use. This tool automates login and data collection against a third-party commercial site. Use only your own account, respect metalsmarket.net's Terms of Service and rate limits, and do not redistribute the scraped price data. It is provided for educational and personal use, with no warranty. You are responsible for how you use it.
What it does
There are two independent data paths plus an MCP server that reads their output (the MCP server never talks to the site directly):
Component | File | Produces | Runs |
Live collector |
|
| Continuous loop, random 40–60 min interval (+ on-demand) |
Historical factory |
|
| One-shot backfill |
MCP server |
| 3 tools over stdio or Streamable HTTP | Reads the files above |
MCP tools
metalsmarket_canli_fiyat— live/last price for a metal or instrument (Turkish/English aliases: altın→gold, çinko→zinc, bakır→copper, …).metalsmarket_gecmis_fiyat— historical price for a single date or a date range/trend, from the backfill workbook.metalsmarket_veri_durumu— freshness/health of the collected data.
Related MCP server: Metal Price MCP Server
Key features
Single POST per round pulls the entire dashboard (~580 cells).
Randomized polling (no fixed period) to avoid a predictable request cadence.
On-demand refresh — a live query older than ~2 minutes triggers a single, coalesced, throttled refresh through the collector's session.
Resilient login — on a session kick it re-logs in automatically; backs off only on HTTP 429 (5/15/30 min escalating) to stay rate-limit friendly.
Two MCP transports — stdio (Claude Desktop) and Streamable HTTP (URL-based hosts). Optional JWT auth + localhost-only binding for access control.
Requirements
Python 3.11+
A valid metalsmarket.net account
pip install -r requirements.txt
Setup
# 1. install dependencies
python -m pip install -r requirements.txt
# 2. configure credentials
cp .env.example .env # then edit .env with your username/password
# 3. (first run only) build the cell-name metadata + run the collector
# Windows:
start.bat # installs deps, builds metadata, starts the loopindex.html (the site's Historical symbol dropdown, included as the instrument
catalogue) is required by the collector and the historical factory.
Usage
# Live collector — continuous loop (random 40-60 min, refreshes on demand)
python collector.py
python collector.py --once # single round then exit
# Historical backfill — one-shot scrape into the .xlsx workbook
python metals_master_factory.py
python metals_master_factory.py --debug-one <symbol_id> # verify the parser first
# MCP server
python mcp_server.py # stdio (Claude Desktop / Cursor)
python mcp_server.py --http --port 3011 # Streamable HTTP at /mcpConnecting an HTTP MCP host
The HTTP server binds to 127.0.0.1 by default, so only the local machine (and
Docker Desktop containers via host.docker.internal) can reach it — the LAN and
the public internet cannot. Point your MCP host at:
http://host.docker.internal:3011/mcp # from a Docker container
http://127.0.0.1:3011/mcp # from the hostFor token-based access control, set MCP_JWT_SECRET in .env; the endpoint then
requires Authorization: Bearer <HS256 JWT> and rejects everything else with 401.
Project layout
collector.py live collector loop (+ on-demand refresh)
metalsmarket_bot.py login + single-POST dashboard fetch + resilience
csv_writer.py snapshot.json / history.csv writers
mcp_server.py MCP server (stdio + Streamable HTTP, 3 tools)
metals_master_factory.py one-shot historical backfill -> .xlsx
cell_metadata_factory.py builds cell-id -> name metadata (setup, HTTP)
cell_metadata_pw.py Playwright supplement for JS-only widgets (setup)
index.html instrument catalogue (site symbol dropdown)
start.bat / factory.bat / mcp_http.bat Windows launchersScraped data (data/, *.xlsx, scraped_ids.txt, debug_pages/) and .env
are git-ignored and never published.
This server cannot be deployed
Maintenance
Related MCP Connectors
Metals API MCP — wraps Metals-API (metals-api.com)
Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.
Market Data App MCP — wraps the Market Data App API (marketdata.app)
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- AlicenseDqualityDmaintenanceMCP server that exposes Alpaca Market Data & Broker API as tools, enabling access to financial data like stock bars, assets, market days, and news through the Message Control Protocol.413 npm2ISC
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides current and historical gold/precious metal prices (gold, silver, platinum, and palladium) via the GoldAPI.io service with support for multiple currencies.1MIT
- AlicenseNot gradedqualityDmaintenanceLive LLM pricing as an MCP server. Ask Claude or any MCP client 'how much does this prompt cost?' and get real numbers from a hand-checked pricing table for every major LLM.MIT

siftingio-mcpofficial
AlicenseAqualityCmaintenanceMCP server that provides access to SiftingIO market data, including live prices, SEC filings, OHLCV bars, 13F holdings, market status, and economic calendar tools for AI assistants.3627 npm1MIT