Black-Scholes MCP Server

블랙-숄즈 MCP 서버

이 프로젝트에서는 블랙-숄즈 모델을 사용하여 유럽식 옵션의 가격과 그릭스를 계산하기 위한 모델 컨텍스트 프로토콜(MCP) 서버를 제공합니다.

특징

  • 유럽 콜 및 풋 옵션의 Black-Scholes 가격을 계산하세요.
  • 옵션 그리스어와 더 높은 순서의 그리스어를 계산합니다.
    • 델타
    • 베가
    • 세타
    • 감마
    • 람다
    • 엡실론
    • 바나
    • 매력
    • 보마
    • 베타
    • 속도
    • 좀마
    • 색상
    • 마지막 음절
    • 베라

용법

설치 및 사용

  1. 종속성 설치( uv 사용하는 경우):지엑스피1또는 선호하는 Python 패키지 관리자를 사용하세요.
  2. Claude에 이 MCP 서버를 설치하세요:
    uv run mcp install main.py
    이 명령은 claude_desktop_config.json 에 구성을 추가하여 Claude가 이 MCP 서버를 사용할 수 있도록 합니다.
  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.

모델 컨텍스트 프로토콜 구현을 통해 Black-Scholes 모델을 사용하여 유럽 옵션 가격과 델타, 베가, 세타와 같은 그리스 값을 계산할 수 있습니다.

  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