Metal Price MCP Server
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., "@Metal Price MCP Serverwhat's the current price of gold in euros?"
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.
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
Related MCP server: Frankfurter Forex MCP
Requirements
Python 3.7+
Packages:
mcp>=1.0.0requests>=2.31.0
Setup
Clone this repository
Install dependencies:
pip install -r requirements.txtSet your GoldAPI.io API key as an environment variable:
export GOLDAPI_API_KEY="your_api_key_here"(Windows users: use
setinstead 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
mcpServersobject in yourcline_mcp_settings.jsonfile:
"mcp_metal_price": {
"args": [
"/c",
"python",
"-m",
"mcp_metal_price"
],
"env": {
"GOLDAPI_API_KEY": "Your GOLDAPI_API_KEY"
}
}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:
{
"currency": "EUR",
"metal": "XAU"
}Running the Server
Start the server with:
python src/server.pyUsing 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:
cmd /c python src/server.pyUsing the get_gold_price Tool
Example tool usage in Cline/Claude:
<use_mcp_tool>
<server_name>gold-price</server_name>
<tool_name>get_gold_price</tool_name>
<arguments>
{
"currency": "USD",
"metal": "XAU"
}
</arguments>
</use_mcp_tool>Response Format
The server returns price data in JSON format:
{
"timestamp": 1713600000,
"metal": "XAU",
"currency": "USD",
"price": 2345.67,
"unit": "per troy ounce"
}License
This project is licensed under the terms of the MIT license. See LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Metals API MCP — wraps Metals-API (metals-api.com)
A MCP server for the Frankfurter API for currency exchange rates.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Related MCP Servers
- FlicenseCqualityFmaintenanceAn MCP server providing real-time currency conversion and exchange rate data through the Frankfurter API, enabling users to convert currencies, fetch latest or historical rates, and list available currencies.436-
- FlicenseBqualityDmaintenanceAn MCP server that provides currency rates, conversions, and historical exchange-rate data using the Frankfurter API. It enables users to retrieve latest rates, convert amounts between currencies, and access time-series data for currency pairs.3-
- AlicenseAqualityDmaintenanceMCP server for interacting with RuneScape and Old School RuneScape data, including item prices, player hiscores, and more.611 npm13Apache 2.0
- AlicenseNot gradedqualityAmaintenanceMCP server providing market data for 15,000+ cryptocurrencies including prices, history, trends, and deep coin metadata via CoinGecko.43 npm1Apache 2.0