Skip to main content
Glama
Currency Analyze MCP

Currency Analyze MCP

by jey3dayo

🌟 Currency Analyze MCP

Node.js Version License TypeScript Model Context Protocol

USD/JPY為替ペアのリアルタイム分析と高度なテクニカル分析を提供するMCP(Model Context Protocol)サーバー

🌟 特徴

  • ✨ リアルタイム為替レート: Alpha Vantage API連携

  • 📊 テクニカル分析: SMA, EMA, RSI, MACD, ボリンジャーバンド

  • 🎯 トレード相談AI: エントリー/エグジット戦略、リスク管理

  • ⏰ マルチタイムフレーム: 15分/1時間/4時間/日足

  • 💾 メモリキャッシュ: API呼び出しを60-80%削減

  • 🤖 Claude Desktop統合: シームレスなAI連携

Related MCP server: Market Pulse MCP

📦 必要要件

  • Node.js v22.19.0以上

  • pnpm v9.0以上

  • Alpha Vantage APIキー (無料取得)

🚀 クイックスタート

# インストール
git clone https://github.com/jey3dayo/currency-analyze-mcp.git
cd currency-analyze-mcp
pnpm install
pnpm build

# 環境変数設定
cp .env.example .env
echo "ALPHA_VANTAGE_API_KEY=your_api_key" > .env

# Claude Desktop設定
# ~/Library/Application Support/Claude/claude_desktop_config.json を編集
{
  "mcpServers": {
    "currency-analyze": {
      "command": "node",
      "args": ["/path/to/currency-analyze-mcp/dist/index.js"],
      "env": {
        "ALPHA_VANTAGE_API_KEY": "your_api_key"
      }
    }
  }
}

🛠️ 利用可能なツール

ツール

説明

analyze_usdjpy

USD/JPY総合分析とトレード推奨

get_current_rate

現在の為替レート取得

get_technical_indicators

テクニカル指標計算

get_market_summary

市場サマリー取得

get_cache_stats

キャッシュ統計表示

clear_cache

キャッシュクリア

consult_trading

NEW! プロ級トレード相談

使用例

analyze_usdjpy

// リクエスト
{ "timeframe": "1h" }

// レスポンス
{
  "summary": "USD/JPYは149.72円、横ばい傾向。買い推奨。",
  "currentStatus": { "price": "149.72円", "trend": "横ばい" },
  "recommendation": { "action": "買い推奨", "riskLevel": "medium" }
}

consult_trading (NEW!)

// リクエスト
{
  "position": "none",
  "currentPrice": 148.2,
  "riskTolerance": "standard",
  "timeframe": "1h"
}

// レスポンス: エントリー戦略、リスク管理、OCO注文設計を提供

詳細は APIリファレンス を参照してください。

📊 テクニカル指標

  • 移動平均: SMA(20,50), EMA(20)

  • オシレーター: RSI(14)

  • トレンド: MACD(12,26,9)

  • ボラティリティ: ボリンジャーバンド(20,2σ)

💾 キャッシュシステム

graph LR
    Request --> L1[Memory Cache]
    L1 -->|Hit| Response
    L1 -->|Miss| API[Alpha Vantage]
    API --> L1
    API --> Response

詳細: キャッシュシステム

🔧 開発

pnpm dev        # 開発サーバー
pnpm test       # テスト実行
pnpm build      # ビルド
pnpm lint       # リント

📚 ドキュメント

❓ トラブルシューティング

# キャッシュクリア (MCP再起動)
# Claude Desktopを再起動

# ログ確認
tail -f ~/Library/Logs/Claude/mcp-server-currency-analyze.log

詳細: トラブルシューティングガイド

📄 ライセンス

MIT License - LICENSE

📧 サポート


Available Tools

7 tools
analyze_usdjpyC

Analyze USD/JPY forex pair with technical indicators for specified timeframe

Inputs: timeframe (required).

clear_cacheB

Clear all cached data (memory cache only)

Inputs: no named parameters.

consult_tradingC

FXプロコーチによるUSD/JPYトレード相談(エントリー/エグジット戦略、OCO設計、リスク管理)

Inputs: position, timeframe, targetPrice, currentPrice, +2 more.

get_cache_statsA

Get cache statistics including hit rate, API usage, and cost savings

Inputs: no named parameters.

get_current_rateB

Get the current USD/JPY exchange rate

Inputs: no named parameters.

get_market_summaryB

Get market summary for USD/JPY including daily high/low and volume

Inputs: no named parameters.

get_technical_indicatorsC

Calculate technical indicators for USD/JPY

Inputs: timeframe (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 7 tools

    Disambiguation3/5

    Most tools are clearly separable by resource (rate, summary, cache, consultation), but analyze_usdjpy and get_technical_indicators both compute technical indicators for the same pair and their boundary is only loosely implied by the 'specified timeframe' wording. An agent could plausibly pick the wrong one for a simple indicator request.

    Naming Consistency4/5

    All names are snake_case and mostly follow a verb_noun shape (get_current_rate, get_market_summary, clear_cache). Minor deviations: analyze_usdjpy embeds the pair name where others don't, and consult_trading uses an inconsistent verb style, but the pattern is still readable and predictable.

    Tool Count4/5

    Seven tools is a well-scoped size for a single-pair FX analysis server, and each tool maps to a recognizable function. The two cache-management tools are auxiliary but justifiable given the mentions of API cost savings.

    Completeness3/5

    Core workflows (rate, analysis, indicators, summary, consultation) are covered, but the surface is hard-coded to USD/JPY with no historical candle/timeframe data fetch and no way to target other pairs, which limits real analysis use. Cache tools exist but there's no visibility into configuration or data freshness beyond stats.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Integrates bitbank's cryptocurrency market data with Claude to provide advanced technical analysis, pattern detection, and SVG chart generation. It enables users to perform complex market evaluations using real-time pricing, volatility metrics, and flow analysis through natural language interactions.
      32
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude to access real-time crypto prices, forex rates, and market sentiment data through free public APIs with no keys required.
      5
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides real-time stock quotes, market indices, historical data, and financial visualizations from Yahoo Finance without API keys, enabling users to analyze and visualize market data through Claude.
      3
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Provides 32 trading analysis tools for AI-powered market analysis, including real-time data, technical indicators, options Greeks, scanners, and Interactive Brokers portfolio management, all accessible via natural language in Claude Desktop.
      36
      420
      MIT