Skip to main content
Glama
Silver Price MCP Server

Silver Price MCP Server

by bhavuk1409

Silver Price MCP Server

A Model Context Protocol (MCP) server that fetches live MCX India silver prices — plus a chart image — straight from Groww.in. No API key required; the data is scraped in real time and handed to any MCP-compatible client as structured JSON and a PNG chart.

python scraping data license


What it does

  • Live silver price — current price, open, previous close, and % / ₹ change, pulled straight from MCX India via Groww.in.

  • 52-week range — high/low over the trailing year.

  • Volume & open interest — lot size and OI lots included.

  • Trend detection — flags the move as UP or DOWN.

  • Chart image included — a full-page screenshot of the price chart, returned as a base64-encoded PNG alongside the JSON.

  • No API key needed — works out of the box; the data comes from a headless Chrome scrape, not a paid feed.


Related MCP server: India Market MCP

Repository layout

├── src/                  # MCP server implementation (tool + scraper)
├── requirements.txt      # Python dependencies
├── pyproject.toml        # Project configuration
└── README.md             # This file

Requirements

  • Python 3.10+

  • Chrome browser (runs headless via Selenium)

  • Dependencies: mcp, selenium, webdriver-manager


Quickstart

1. Install

git clone https://github.com/bhavuk1409/silver-mcx-mcp-server.git
cd silver-mcx-mcp-server

pip install -r requirements.txt

2. Test it directly

python test.py

3. Connect to Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "silver-price": {
      "command": "python",
      "args": ["-m", "mcp_metal_price"],
      "cwd": "/path/to/silver-mcx-mcp-server"
    }
  }
}

Restart Claude Desktop and ask: "Get the current silver price."


Tool

Name

Parameters

Returns

get_silver_price

none

JSON price metrics + a base64-encoded PNG chart

Example response:

{
  "metal": "Silver",
  "symbol": "XAG",
  "currency": "INR",
  "current_price": "2,42,798.00",
  "price_formatted": "₹2,42,798.00",
  "open": "2,42,775.00",
  "previous_close": "2,40,277.00",
  "52w_low": "1,09,741.00",
  "52w_high": "2,59,692.00",
  "oi_lots": "12,394",
  "lot_size": "30",
  "change": "+2521.00",
  "percent_change": "+1.05%",
  "trend": "UP"
}

How it works

  1. Opens the Groww.in silver page in a headless Chrome instance via Selenium.

  2. Waits ~8 seconds for the page content to fully load.

  3. Extracts price data from the page using regex.

  4. Captures a full-page screenshot of the chart.

  5. Returns the parsed JSON plus the chart image to the MCP client.


Notes

  • Scraping takes roughly 8–10 seconds per call.

  • Chrome runs headless — no visible window.

  • Chart image is PNG format, base64-encoded.

  • Data source is MCX India via Groww.in and can change format if the site changes its layout.


License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with the Groww trading platform to fetch portfolio data, get live stock quotes and historical market data, and place, modify, or cancel stock orders through natural language commands.
      19 npm
      9
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Comprehensive MCP server for Indian stock market with 60 tools covering NSE/BSE, derivatives, mutual funds, technicals, and more, requiring no API keys. Enables users to access live market data, analyze indicators, and manage investments through natural language.
      60
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables users to fetch TradingView chart images for specified tickers and intervals through MCP tools, returning snapshot URLs or base64 image data. It supports browser pooling for concurrent performance, configurable intervals, TradingView authentication, and performance statistics.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to fetch TradingView chart images for any ticker and interval (from 1-minute to weekly), returning snapshot image URLs or base64 data. Uses Selenium browser pooling to handle up to four concurrent requests with authentication and built-in performance statistics.
      -