pe_ratio
Price to earnings (P/E)
Price to earnings ratio from a share price and earnings per share.
epsrequiredpricerequired
io.github.boffincodersPublished by GitHub account boffincodersv0.1.0Updated Nov 5, 2026
Read-only fundamental analysis: P/E, DCF, Graham, Altman Z, Piotroski and margins, with formulas
Local MCP server of read-only fundamental analysis calculators: P/E, DCF, Graham Number, Altman Z, Piotroski F-Score, margins and ratios.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
An MCP server that gives an AI assistant the calculators from fundamental-analysis: P/E, DCF, Graham Number, Altman Z-Score, Piotroski F-Score, return on equity, profit margins, and liquidity and debt ratios, plus one tool that runs every ratio your figures allow in a single call.
Every result returns four things: the value, the formula that produced it, the inputs it used and the caveats you need before acting on it. The assistant brings the figures. The server fetches nothing, needs no API key and has no dependencies.
Every tool is read-only: it computes and answers, and changes nothing.
Claude Code:
Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):
Ask: "Graham Number for EPS 4 and book value 25 a share, price 40?" The graham_number tool answers:
server.json describes the server for the official MCP registry as io.github.boffincoders/fundamental-analysis-mcp,
and mcpName in package.json carries the same name so the registry can check the npm package. Publish to npm first,
then run mcp-publisher publish from this folder.
MIT. Maintained by Boffin Coders.
Source: mcp/README.md at commit 41ea4a8
Price to earnings (P/E)
Price to earnings ratio from a share price and earnings per share.
epsrequiredpricerequiredDiscounted cash flow (DCF)
Present value of projected free cash flows plus a Gordon-growth terminal value. Optionally converts enterprise value to an implied share price.
cashtotalDebtdiscountRaterequiredprojectedFCFrequiredsharesOutstandingterminalGrowthRaterequiredGraham Number
Benjamin Graham's ceiling price for a defensive investor, from EPS and book value per share.
epsrequiredpricebookValuePerSharerequiredAltman Z-Score
Bankruptcy risk score. The original model (1968) is for US public manufacturers; the Z'' model is for non-manufacturers, private and non-US companies.
ebitrequiredmodelrequiredsalesbookEquitytotalAssetsrequiredworkingCapitalrequiredretainedEarningsrequiredtotalLiabilitiesrequiredmarketValueEquityReturn on equity (ROE)
Net income as a share of shareholders' equity.
equityrequirednetIncomerequiredPiotroski F-Score
Nine pass or fail accounting signals (profitability, leverage and liquidity, efficiency) added into a 0 to 9 score. Signals that compare two years are scored only when both years are given.
netIncomerequiredtotalAssetsrequiredlongTermDebtpriorNetIncomegrossMarginValuepriorTotalAssetscurrentRatioValueoperatingCashFlowrequiredpriorLongTermDebtsharesOutstandingassetTurnoverValuepriorGrossMarginValue+3 moreProfit margin (gross, operating, net, FCF)
One margin as a share of revenue: gross, operating, net or free cash flow.
kindrequiredrevenuerequirednetIncomefreeCashFlowcostOfRevenueoperatingIncomeLiquidity ratio (current, quick)
Whether short-term assets cover short-term liabilities: the current ratio, or the quick ratio that leaves out inventory.
kindrequiredinventorycurrentAssetsrequiredcurrentLiabilitiesrequiredLeverage ratio (debt to equity, interest coverage)
How much debt a company carries against its equity, or how many times its operating profit covers its interest.
ebitkindrequiredtotalDebttotalEquityinterestExpenseCompany analysis (every ratio at once)
Every ratio the figures allow, in one call: valuation, profitability, liquidity, solvency, efficiency, risk (Altman Z, Z'', Piotroski) and quality. Every figure is optional; a metric whose figures are missing comes back null and is named. With withInsights, each metric also gets a status and a one-line reading.
epsebitpriceebitdastdDevreturnstaxRateriskFreeinventorymarketCapnetIncometotalDebt+24 more90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
claude mcp add fundamental-analysis -- npx -y fundamental-analysis-mcp{ "mcpServers": { "fundamental-analysis": { "command": "npx", "args": ["-y", "fundamental-analysis-mcp"] } }}{ "value": 47.43, "priceVsGraham": 0.84, "formula": "Graham Number = sqrt(22.5 * EPS * book value per share)", "inputs": { "eps": 4, "bookValuePerShare": 25, "price": 40 }, "caveats": ["22.5 is 15 times earnings by 1.5 times book, Graham's limits for a defensive investor. It ignores growth, so it is strict on growth companies and on asset-light businesses."]}npm run build # one file, dist/server.js, with the library bundled innpx vitest run mcp # from the repository root