Skip to main content
Glama
isdaniel

Metal Price MCP Server

by isdaniel

鍛冶屋のバッジ PyPI - ダウンロード PyPI - バージョン

金属価格MCPサーバー

GoldAPI.ioサービスを通じて金/貴金属の現在の価格と過去の価格を提供する MCP サーバー。

特徴

  • 金(XAU)、銀(XAG)、プラチナ(XPT)、パラジウム(XPD)の現在の価格を取得します

  • 複数の通貨(USD、EURなど)のサポート

  • 日付によるオプションの過去価格検索

Related MCP server: Frankfurter Forex MCP

要件

  • Python 3.7以上

  • パッケージ:

    • mcp>=1.0.0

    • requests>=2.31.0

設定

  1. このリポジトリをクローンする

  2. 依存関係をインストールします:

    pip install -r requirements.txt
  3. GoldAPI.io API キーを環境変数として設定します。

    export GOLDAPI_API_KEY="your_api_key_here"

    (Windows ユーザー: exportの代わりにsetを使用してください)

使用法

サーバーは 1 つの MCP ツールを提供します。

インストール

このサーバーは、 cline_mcp_settings.jsonファイルに構成を追加することで手動でインストールできるように設計されています。

  1. 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.py

MCPクライアントでの使用

サーバーが実行される場合は、Cline や Claude などの MCP クライアントからサーバーに接続できます。

サーバーへの接続

サーバーはデフォルトでstdioで動作します。MCPクライアントでは、以下のコマンドで接続できます。

cmd /c python src/server.py

get_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ファイルをご覧ください。

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    C
    quality
    F
    maintenance
    An 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.
    4
    35
  • F
    license
    B
    quality
    D
    maintenance
    An 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
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server providing market data for 15,000+ cryptocurrencies including prices, history, trends, and deep coin metadata via CoinGecko.
    65
    1
    Apache 2.0

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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