Back to MCP Servers
Black-Scholes MCP Server

Black-Scholes MCP Server

Public
walkingshamrock/black-scholes-mcp

Model Context Protocol server for calculating European option prices and comprehensive Greeks using the Black-Scholes model, supporting advanced risk metrics for call and put options.

python
0 tools
May 29, 2025
Updated Jun 4, 2025

Supercharge Your AI with Black-Scholes MCP Server

MCP Server

Unlock the full potential of Black-Scholes MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

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

  1. Install dependencies (if using uv):

    uv pip install -r requirements.txt

    Or use your preferred Python package manager.

  2. Install this MCP server to Claude:

    uv run mcp install main.py

    This command will add the configuration to claude_desktop_config.json so that Claude can use this MCP server.

  3. (Optional) Run the MCP server directly:

    python main.py
  4. Use the MCP tools to calculate option prices and Greeks by providing the following arguments:

    • S: Spot price
    • K: Strike price
    • T: 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:

  1. Install the package in development mode:

    pip install -e .
  2. Run tests using unittest:

    python -m unittest discover -s tests

    Or with pytest (after installing pytest from requirements.txt):

    python -m pytest
  3. To run specific test modules:

    python -m unittest tests.calculators.test_black_scholes_price

    Or with pytest:

    python -m pytest tests/calculators/test_black_scholes_price.py

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.

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • Vertex AI MCP Server

    Provides a Model Context Protocol server enabling advanced interaction with Google Cloud's Vertex AI...

    20 tools
    Added May 30, 2025
  • Linear MCP Server

    Model Context Protocol server integrating with the Linear API to enable advanced project, initiative...

    Added May 30, 2025
  • Flight Planner MCP Server

    Model Context Protocol server that generates travel agent-level flight plans using fast-flights API,...

    Added May 30, 2025
  • MCP Pokemon Server

    An MCP server implementation enabling interaction with the PokeAPI to fetch dynamic Pokémon data and...

    Added May 30, 2025
  • Gemini MCP Image Generation Server

    Provides image generation capabilities via Google's Gemini 2 API using the Model Context Protocol, e...

    1 tools
    Added May 30, 2025