金属価格MCPサーバー
GoldAPI.ioサービスを通じて金/貴金属の現在の価格と過去の価格を提供する MCP サーバー。
特徴
- 金(XAU)、銀(XAG)、プラチナ(XPT)、パラジウム(XPD)の現在の価格を取得します
- 複数の通貨(USD、EURなど)のサポート
- 日付によるオプションの過去価格検索
要件
- Python 3.7以上
- パッケージ:
mcp>=1.0.0
requests>=2.31.0
設定
- このリポジトリをクローンする
- 依存関係をインストールします:
- GoldAPI.io API キーを環境変数として設定します。(Windows ユーザー:
export
の代わりにset
を使用してください)
使用法
サーバーは 1 つの MCP ツールを提供します。
インストール
このサーバーは、 cline_mcp_settings.json
ファイルに構成を追加することで手動でインストールできるように設計されています。
cline_mcp_settings.json
ファイルのmcpServers
オブジェクトに次のエントリを追加します。
金価格を取得する
現在の金属価格または過去の金属価格を取得します。
パラメータ:
currency
(文字列、デフォルト:"USD"):通貨コード(ISO 4217形式)metal
(文字列、デフォルト:"XAU"):金属記号(XAU、XAG、XPT、XPD)date
(文字列、オプション): YYYYMMDD形式の履歴日付
使用例:
サーバーの実行
次のコマンドでサーバーを起動します。
MCPクライアントでの使用
サーバーが実行される場合は、Cline や Claude などの MCP クライアントからサーバーに接続できます。
サーバーへの接続
サーバーはデフォルトでstdioで動作します。MCPクライアントでは、以下のコマンドで接続できます。
get_gold_priceツールの使用
Cline/Claude でのツールの使用例:
応答フォーマット
サーバーは価格データを JSON 形式で返します。
ライセンス
このプロジェクトはMITライセンスの条件に基づいてライセンスされています。詳細はLICENSEファイルをご覧ください。
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.
複数の通貨をサポートする GoldAPI.io サービスを介して、金/貴金属 (金、銀、プラチナ、パラジウム) の現在および過去の価格を提供する MCP サーバー。
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 -310428TypeScriptMIT 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 -329TypeScriptMIT License
- -securityAlicense-qualityAn MCP server providing a range of cryptocurrency technical analysis indicators and strategies.Last updated -64JavaScriptMIT License
- AsecurityFlicenseAqualityAn MCP server that provides real-time financial data integration with Alpha Vantage's API, enabling access to stock market data, cryptocurrency prices, forex rates, and technical indicators.Last updated -72JavaScript