Black-Scholes MCP Server
This project provides a Model Context Protocol (MCP) server for calculating the price and Greeks of European options using the Black-Scholes model.
Features
- Calculate the Black-Scholes price for European call and put options
- Compute option Greeks and higher-order Greeks:
- Delta
- Vega
- Theta
- Gamma
- Rho
- Lambda
- Epsilon
- Vanna
- Charm
- Vomma
- Veta
- Speed
- Zomma
- Color
- Ultima
- Vera
Usage
Installation and Usage
- Install dependencies (if using
uv
):Or use your preferred Python package manager. - Install this MCP server to Claude:This command will add the configuration to
claude_desktop_config.json
so that Claude can use this MCP server. - (Optional) Run the MCP server directly:
- Use the MCP tools to calculate option prices and Greeks by providing the following arguments:
S
: Spot priceK
: Strike priceT
: Time to maturity (in years)r
: Risk-free rate (annual, decimal)q
: Dividend yield (annual, decimal)vol
: Volatility (annual, decimal)type
: "call" or "put"
Running Tests
To run the tests for this project:
- Install the package in development mode:
- Run tests using unittest:Or with pytest (after installing pytest from requirements.txt):
- To run specific test modules:Or with pytest:
Acknowledgements
This project uses the modelcontextprotocol/python-sdk for MCP server implementation.
License
This project is licensed under the MIT License. See LICENSE for details.
This server cannot be installed
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.
Позволяет рассчитывать европейские цены опционов и «греки» (такие как Delta, Vega, Theta) с использованием модели Блэка-Шоулза посредством реализации протокола контекста модели.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.Last updated -13PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.Last updated -1104PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol tool that retrieves daily stock market data for any stock symbol using the Alpha Vantage API.Last updated -721TypeScriptApache 2.0
- -securityFlicense-qualityA cryptocurrency price query service based on Model Context Protocol that provides tools for retrieving virtual currency prices, market trends, detailed information, and K-line data.Last updated -2Python