Black-Scholes MCP Server

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

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

特徴

  • ヨーロピアンコールオプションとプットオプションのブラックショールズ価格を計算する
  • オプション ギリシャ文字と高階ギリシャ文字を計算します。
    • デルタ
    • ベガ
    • シータ
    • ガンマ
    • ロー
    • ラムダ
    • イプシロン
    • ヴァンナ
    • 魅力
    • ヴォンマ
    • ヴェタ
    • スピード
    • ゾンマ
    • ウルティマ
    • ベラ

使用法

インストールと使用方法

  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ライセンスの下でライセンスされています。詳細はライセンスをご覧ください。

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

モデル コンテキスト プロトコル実装を通じて、ブラックショールズ モデルを使用してヨーロピアン オプションの価格とギリシャ文字 (デルタ、ベガ、シータなど) を計算できます。

  1. 特徴
    1. 使用法
      1. インストールと使用方法
    2. テストの実行
      1. 謝辞
        1. ライセンス

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server providing real-time stock data and options analysis through Yahoo Finance, enabling LLMs to access market data, analyze stocks, and evaluate options strategies.
            Last updated -
            4
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.
            Last updated -
            4
            Python
            MIT License
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.
            Last updated -
            13
            2
            TypeScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.
            Last updated -
            1
            48
            Python
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          ID: zj4v0zkiut