Skip to main content

An MCP server providing finance tools: a yfinance wrapper, computed analytics, and financial calculators.

Project description

Finance MCP

An MCP server of finance tools: a yfinance market-data wrapper plus deterministic financial calculators. (Computed analytics and analysis prompts are planned.)

Immediate roadmap:

  1. Additional yfinance wrappers - financial statements, news, etc.
  • get_analyst_data (recommendations, price targets, estimates)
  • search_symbols (resolve a company name to a ticker)
  1. Computed analytics
  • get_key_metrics (P/E, EV/EBITDA, margins, ROE, FCF yield from financials+quote)
  • analyze_performance (return, volatility, max drawdown from price history)
  1. analyze_stock + compare_stocks — user-invoked slash commands that orchestrate the existing 14 tools into a methodology
  2. Public free data requiring keys - add optional extensions for fed data for interest rates, etc.
  3. Portfolio tools - add tools for portfolio analysis to extend specific stock functionality

Tools

Market data (yfinance)

  • get_quote — current price snapshot for one or more tickers: price, change, day/52-week ranges, market cap (batched; cached briefly).
  • get_price_history — OHLCV bars plus a computed summary for a ticker, by period and interval (long windows are truncated; the summary covers the full window).
  • get_financials — income statement, balance sheet, or cash flow (annual or quarterly) as line items by period; values in the company's reporting currency, with an optional line-item filter.
  • get_company_profile — sector, industry, market cap, P/E, beta, business summary, plus recent dividends and stock splits.

Time value & loans

  • time_value_of_money — solve any one of present/future value, payment, rate, or periods (compound interest, annuities, CAGR); supports begin-of-period (annuity-due).
  • loan_schedule — monthly payment, total interest, and optional amortization schedule for a fixed-rate loan/mortgage (nominal APR compounded monthly).

Cashflow valuation

  • npv — net present value of equally-spaced cashflows (cashflow[0] at t=0).
  • irr — internal rate of return; returns all real roots and flags non-uniqueness.
  • mirr — modified IRR; single-valued given finance and reinvestment rates.
  • xnpv / xirr — NPV/IRR of cashflows on actual calendar dates (Actual/365).

Rates & fixed income

  • convert_rate — nominal ↔ effective annual rate (discrete or continuous compounding).
  • bond_price — price plus Macaulay/modified duration and convexity at a given yield (priced on a coupon date).
  • bond_ytm — yield to maturity from a bond's market price.

The calculators are pure and deterministic; the market-data tools fetch live data (briefly cached) and surface source errors clearly. All tools return typed, structured results and report invalid inputs as clear errors.

Run

uv run mcp-finance        # stdio MCP server

Add to an MCP client (e.g. Claude) as:

{ "mcpServers": { "finance": { "command": "uvx", "args": ["mcp-finance"] } } }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_finance-0.1.1.tar.gz (123.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_finance-0.1.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_finance-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_finance-0.1.1.tar.gz
  • Upload date:
  • Size: 123.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mcp_finance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a424db3c3af432e1ba02e8bd91a841e136bd38c45ef01b95ee5d27d4b516d22f
MD5 a5e9a30885a2a90f66ff380a261c8d61
BLAKE2b-256 4eb6a5a6c8bf0e4cd5272099eb654f98c280876bac75da6de52d21f57207881a

See more details on using hashes here.

File details

Details for the file mcp_finance-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_finance-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mcp_finance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3366a7f3f6db0cbcaaa213630e0d0dc7c61f950dd23dce40ac021187e1dfed4
MD5 3c94a164a74c61a7fcefe4cb60130b97
BLAKE2b-256 de9b72b8b5d7852fa5bc7be51e163937d241933249880ee6dbddc7d993f37205

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page