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, computed analytics, and deterministic financial calculators.

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.
  • get_analyst_data — sell-side analyst consensus: price targets, consensus recommendation, and the recent rating trend (analyst counts over the last four months).
  • search_symbols — resolve a company or instrument name to ticker symbol(s), best match first, across all instrument types (equity, ETF, crypto, …).
  • get_news — recent news headlines for a ticker, newest first: title, publisher, link, publish time, and a short summary (no news returns an empty list, not an error).

Analytics

  • get_key_metrics — valuation/profitability/leverage ratios (P/E, EV/EBITDA, margins, ROE, debt/equity, FCF, EPS, …) as reported by Yahoo; units noted per field.
  • analyze_performance — total & annualized return, annualized volatility, max drawdown, and 50/200-day SMAs computed from the daily price series.

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 and analytics tools fetch live data (briefly cached) and surface source errors clearly. All tools return typed, structured results and report invalid inputs as clear errors.

Prompts

MCP prompts — reusable analysis templates the client exposes for you to invoke (Claude Code shows them as slash commands; other clients surface them their own way).

  • analyze_stock (arguments: ticker, optional horizon, default 12mo) — single-stock deep-dive: fundamentals, growth-adjusted peer valuation, performance, analyst view, and news catalysts → bull/bear cases and a fair-value range with a horizon-framed verdict, citing the data behind each claim.

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.2.0.tar.gz (144.8 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.2.0-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_finance-0.2.0.tar.gz
  • Upload date:
  • Size: 144.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","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.2.0.tar.gz
Algorithm Hash digest
SHA256 021328887180d2cee6df739aea2969ba4f96b880eb466906c33c6414e4d74768
MD5 6fbbd0e20ab79a975d45693618f7c4ff
BLAKE2b-256 b01fc381bdbbf1b5d6f89d3c31c9afbb86ba46af8ebd5e0b426ff823dec08b33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_finance-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2fd631b57f7f82f2ab5d0bbba37c2243a43aef2d46fdbeaf4cf0186bf598101
MD5 31351a6a741ae170df86bb79983ec983
BLAKE2b-256 aacc6a508f5834199b70718f788ab51fbc196283ee50c51fbba5e5c9825e984c

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