Black-Scholes MCP Server
Сервер MCP Блэка-Шоулза
Данный проект предоставляет сервер Model Context Protocol (MCP) для расчета цены и «греков» европейских опционов с использованием модели Блэка-Шоулза.
Функции
Рассчитайте цену Блэка-Шоулза для европейских опционов колл и пут
Вычислите греков опций и греков более высокого порядка:
Дельта
Вега
Тета
Гамма
Ро
Лямбда
Эпсилон
Ванна
Очарование
Вомма
Вета
Скорость
Зомма
Цвет
Ультима
Вера
Related MCP server: MCP Yahoo Finance
Использование
Установка и использование
Установка зависимостей (если используется
uv):uv pip install -r requirements.txtИли используйте предпочитаемый вами менеджер пакетов Python.
Установите этот MCP-сервер на Клода:
uv run mcp install main.pyЭта команда добавит конфигурацию в
claude_desktop_config.json, чтобы Клод мог использовать этот сервер MCP.(Необязательно) Запустите сервер MCP напрямую:
python main.pyИспользуйте инструменты MCP для расчета цен опционов и «греков», предоставив следующие аргументы:
S: Спотовая ценаK: Цена исполненияT: Время до погашения (в годах)r: Безрисковая ставка (годовая, десятичная)q: Дивидендная доходность (годовая, десятичная)vol: Волатильность (годовая, десятичная)type: «колл» или «пут»
Проведение тестов
Чтобы запустить тесты для этого проекта:
Установите пакет в режиме разработки:
pip install -e .Запустите тесты с помощью unittest:
python -m unittest discover -s testsИли с помощью pytest (после установки pytest из requirements.txt):
python -m pytestДля запуска определенных тестовых модулей:
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. Подробности см. в разделе ЛИЦЕНЗИЯ .
This server cannot be deployed
Maintenance
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
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.141MIT
- FlicenseBqualityDmaintenanceProvides tools to get financial data (stock prices, company information) and generate financial visualizations through the Model Context Protocol.1011-
- AlicenseAqualityDmaintenanceEnables programmatic access to Bitpanda cryptocurrency exchange features including trades, wallets, and transactions via the Model Context Protocol.81ISC
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to scan markets, build option strategies, track positions, and execute trades on TastyTrade via the Model Context Protocol.3MIT