Metal Price MCP Server
An MCP server that provides current and historical gold/precious metal prices via the GoldAPI.io service.
Features
- Get current prices for gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD)
- Support for multiple currencies (USD, EUR, etc.)
- Optional historical price lookup by date
Requirements
- Python 3.7+
- Packages:
mcp>=1.0.0
requests>=2.31.0
Setup
- Clone this repository
- Install dependencies:Copy
- Set your GoldAPI.io API key as an environment variable:(Windows users: useCopy
set
instead ofexport
)
Usage
The server provides one MCP tool:
Installation
This server is designed to be installed manually by adding its configuration to the cline_mcp_settings.json
file.
- Add the following entry to the
mcpServers
object in yourcline_mcp_settings.json
file:
get_gold_price
Get current or historical metal prices.
Parameters:
currency
(string, default: "USD"): Currency code (ISO 4217 format)metal
(string, default: "XAU"): Metal symbol (XAU, XAG, XPT, XPD)date
(string, optional): Historical date in YYYYMMDD format
Example Usage:
Running the Server
Start the server with:
Using with MCP Clients
Once the server is running, you can connect to it from MCP clients like Cline or Claude.
Connecting to the Server
The server runs on stdio by default. In your MCP client, you can connect using:
Using the get_gold_price Tool
Example tool usage in Cline/Claude:
Response Format
The server returns price data in JSON format:
License
This project is licensed under the terms of the MIT license. See LICENSE file for details.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An 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.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.Last updated -37923TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates with Hyperliquid exchange, providing access to crypto market data including mid prices, historical candles, and L2 order books.Last updated -3145TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3Last updated -327TypeScriptMIT License
- -securityAlicense-qualityAn MCP server providing a range of cryptocurrency technical analysis indicators and strategies.Last updated -64JavaScriptMIT License