Skip to main content
Glama
walkingshamrock

Black-Scholes MCP Server

ブラック・ショールズMCPサーバー

このプロジェクトは、ブラック・ショールズ・モデルを使用してヨーロピアン・オプションの価格とギリシャ文字を計算するためのモデル・コンテキスト・プロトコル (MCP) サーバーを提供します。

特徴

  • ヨーロピアンコールオプションとプットオプションのブラックショールズ価格を計算する

  • オプション ギリシャ文字と高階ギリシャ文字を計算します。

    • デルタ

    • ベガ

    • シータ

    • ガンマ

    • ロー

    • ラムダ

    • イプシロン

    • ヴァンナ

    • 魅力

    • ヴォンマ

    • ヴェタ

    • スピード

    • ゾンマ

    • 色

    • ウルティマ

    • ベラ

Related MCP server: MCP Yahoo Finance

使用法

インストールと使用方法

  1. 依存関係をインストールします( uvを使用する場合):

    uv pip install -r requirements.txt

    または、お好みの Python パッケージ マネージャーを使用します。

  2. この MCP サーバーを Claude にインストールします。

    uv run mcp install main.py

    このコマンドは、Claude がこの MCP サーバーを使用できるように、 claude_desktop_config.jsonに構成を追加します。

  3. (オプション) MCP サーバーを直接実行します。

    python main.py
  4. MCP ツールを使用して、次の引数を指定してオプション価格とギリシャ文字を計算します。

    • S : スポット価格

    • K : 行使価格

    • T : 満期までの期間(年)

    • r : 無リスク金利(年率、小数)

    • q : 配当利回り(年率、小数)

    • vol : ボラティリティ(年率、小数点)

    • type :「コール」または「プット」

テストの実行

このプロジェクトのテストを実行するには:

  1. 開発モードでパッケージをインストールします。

    pip install -e .
  2. unittest を使用してテストを実行します。

    python -m unittest discover -s tests

    または、pytest を使用する場合 (requirements.txt から pytest をインストールした後):

    python -m pytest
  3. 特定のテスト モジュールを実行するには:

    python -m unittest tests.calculators.test_black_scholes_price

    またはpytestの場合:

    python -m pytest tests/calculators/test_black_scholes_price.py

謝辞

このプロジェクトでは、MCP サーバーの実装にmodelcontextprotocol/python-sdkを使用します。

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。詳細はライセンスをご覧ください。

Related MCP Connectors

  • Deterministic company valuation and corporate finance tools for AI agents — IRR, NPV, MOIC, DCF, WACC, enterprise value, EV multiples, CAPM, beta and sensitivity analysis via Model Context Protocol. Useful for financial analysis, equity analysis, quantitative analysis, financial projections, financial formulas and financial modeling.

  • Options analytics: 17 pricing models, 17 Greeks, GEX, IV, 23 screeners, unusual, dark pool, max pain

  • Deterministic time-value-of-money and fund-performance tools for AI agents — future value, present value, CAGR, annuities, perpetuities, loan payments, payback, discounted payback, DPI, RVPI and TVPI via Model Context Protocol. Useful for corporate finance, financial projections, financial analysis, quantitative analysis, financial formulas and financial modeling.

  • Deterministic profitability and market-value analysis tools for AI agents — margins, ROA, ROE, ROCE, ROIC, EPS, P/E, P/B, dividend yield and payout ratio via Model Context Protocol. Useful for corporate finance, equity analysis, financial analysis, quantitative analysis, financial formulas and financial modeling.

Related MCP Servers

  • A
    license
    B
    quality
    B
    maintenance
    A Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.
    1
    40
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Provides tools to get financial data (stock prices, company information) and generate financial visualizations through the Model Context Protocol.
    10
    11
    -
  • F
    license
    A
    quality
    D
    maintenance
    Enables programmatic access to Bitpanda cryptocurrency exchange features including trades, wallets, and transactions via the Model Context Protocol.
    8
    1
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time options analytics, pricing with Greeks, Monte Carlo simulations, volatility analysis, strategy backtesting, and risk metrics using actual market data from Yahoo Finance and Polygon.io.
    1
    -