Metal Price MCP Server
金属価格MCPサーバー
GoldAPI.ioサービスを通じて金/貴金属の現在の価格と過去の価格を提供する MCP サーバー。
特徴
金(XAU)、銀(XAG)、プラチナ(XPT)、パラジウム(XPD)の現在の価格を取得します
複数の通貨(USD、EURなど)のサポート
日付によるオプションの過去価格検索
Related MCP server: Frankfurter Forex MCP
要件
Python 3.7以上
パッケージ:
mcp>=1.0.0requests>=2.31.0
設定
このリポジトリをクローンする
依存関係をインストールします:
pip install -r requirements.txtGoldAPI.io API キーを環境変数として設定します。
export GOLDAPI_API_KEY="your_api_key_here"(Windows ユーザー:
exportの代わりにsetを使用してください)
使用法
サーバーは 1 つの MCP ツールを提供します。
インストール
このサーバーは、 cline_mcp_settings.jsonファイルに構成を追加することで手動でインストールできるように設計されています。
cline_mcp_settings.jsonファイルのmcpServersオブジェクトに次のエントリを追加します。
"mcp_metal_price": {
"args": [
"/c",
"python",
"-m",
"mcp_metal_price"
],
"env": {
"GOLDAPI_API_KEY": "Your GOLDAPI_API_KEY"
}
}金価格を取得する
現在の金属価格または過去の金属価格を取得します。
パラメータ:
currency(文字列、デフォルト:"USD"):通貨コード(ISO 4217形式)metal(文字列、デフォルト:"XAU"):金属記号(XAU、XAG、XPT、XPD)date(文字列、オプション): YYYYMMDD形式の履歴日付
使用例:
{
"currency": "EUR",
"metal": "XAU"
}サーバーの実行
次のコマンドでサーバーを起動します。
python src/server.pyMCPクライアントでの使用
サーバーが実行される場合は、Cline や Claude などの MCP クライアントからサーバーに接続できます。
サーバーへの接続
サーバーはデフォルトでstdioで動作します。MCPクライアントでは、以下のコマンドで接続できます。
cmd /c python src/server.pyget_gold_priceツールの使用
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>応答フォーマット
サーバーは価格データを JSON 形式で返します。
{
"timestamp": 1713600000,
"metal": "XAU",
"currency": "USD",
"price": 2345.67,
"unit": "per troy ounce"
}ライセンス
このプロジェクトはMITライセンスの条件に基づいてライセンスされています。詳細はLICENSEファイルをご覧ください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.435
- 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.61813Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server providing market data for 15,000+ cryptocurrencies including prices, history, trends, and deep coin metadata via CoinGecko.651Apache 2.0
Related MCP Connectors
Metals API MCP — wraps Metals-API (metals-api.com)
A MCP server for the Frankfurter API for currency exchange rates.
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/isdaniel/mcp-metal-price'
If you have feedback or need assistance with the MCP directory API, please join our Discord server