crypto-feargreed-mcp

Crypto Fear & Greed Index MCP Serverは、リアルタイムおよび過去の暗号通貨の恐怖と欲望指数データを提供するサーバーです。Alternative.meに基づいており、MCP互換クライアントへの統合が容易です。最新の指数値や過去のデータを取得し、トレンド分析を行うことができます。

GitHubスター

40

ユーザー評価

未評価

お気に入り

0

閲覧数

17

フォーク

14

イシュー

4

インストール方法
難易度
中級
推定所要時間
10-20
必要な環境
Python 3.10以上

インストール方法

インストール方法

前提条件

必要なソフトウェアとバージョンを明記してください。
Node.js: 18.0.0以上
npm: 8.0.0以上
Claude Desktop: 最新版

インストール手順

1. リポジトリのクローン

bash
git clone https://github.com/kukapay/crypto-feargreed-mcp.git
cd crypto-feargreed-mcp

2. Claude Desktop用のインストール

bash
mcp install main.py --name "CryptoFearGreed"

3. 他のクライアント用の設定

claude_desktop_config.jsonを編集してMCPサーバーを追加:
json
{
  "mcpServers": { 
    "crypto-feargreed-mcp": { 
      "command": "uv", 
      "args": [ 
        "--directory", "/your/path/to/crypto-feargreed-mcp", 
        "run", 
        "main.py" 
      ] 
    } 
  }
}

トラブルシューティング

よくある問題

問題: サーバーが起動しない 解決策: Node.jsのバージョンを確認し、依存関係を再インストールしてください。 問題: Claude Desktopで認識されない 解決策: 設定ファイルのパスと構文を確認してください。

設定方法

設定方法

基本設定

Claude Desktop設定

~/.config/claude-desktop/claude_desktop_config.json(macOS/Linux)または %APPDATA%\Claude\claude_desktop_config.json(Windows)を編集:
json
{
  "mcpServers": {
    "crypto-feargreed-mcp": {
      "command": "uv",
      "args": [
        "--directory", "/your/path/to/crypto-feargreed-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

環境変数

必要に応じて以下の環境変数を設定:
bash
export API_KEY="your-api-key"
export DEBUG="true"

詳細設定

セキュリティ設定

APIキーは環境変数または安全な設定ファイルに保存
ファイルアクセス権限の適切な設定
ログレベルの調整

パフォーマンス調整

タイムアウト値の設定
同時実行数の制限
キャッシュ設定

設定例

基本的な設定

json
{
  "mcpServers": {
    "crypto-feargreed-mcp": {
      "command": "uv",
      "args": [
        "--directory", "/your/path/to/crypto-feargreed-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

使用例

使用例

基本的な使用方法

MCPサーバーの基本的な使用方法を以下に示します:

Claude Desktopでの使用

1MCPサーバーの起動確認
Claude Desktopを開き、設定が正しく読み込まれていることを確認してください。
2基本コマンドの実行

   Available tools from this MCP server:
   - get_current_fng_tool: Retrieve the latest Fear & Greed Index value and classification.
   - get_historical_fng_tool: Fetch historical index values for a specified number of days.
   

プログラムでの使用

python

Python例

import requests def call_mcp_tool(tool_name, params): response = requests.post( 'http://localhost:3000/mcp/call', json={ 'tool': tool_name, 'parameters': params } ) return response.json()

使用例

result = call_mcp_tool('get_current_fng_tool', {}) print(result)

使用ケース

現在のCrypto Fear & Greed Indexを取得して、投資判断に役立てる。
過去30日間の指数データを取得し、トレンドを分析する。
特定の指数値を解釈し、暗号市場への影響を評価する。
MCPクライアントでの自動化スクリプトを作成し、定期的にデータを取得する。

追加リソース