pe_ratio
Price to earnings (P/E)
Price to earnings ratio from a share price and earnings per share.
eps必填price必填
io.github.boffincoders由 GitHub 账号 boffincoders 发布v0.1.0更新于 Nov 5, 2026
Read-only fundamental analysis: P/E, DCF, Graham, Altman Z, Piotroski and margins, with formulas
本地 MCP 服务器,提供只读的基本面分析计算器:市盈率、DCF、格雷厄姆数字、Altman Z、Piotroski F 分数、利润率与各类比率。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
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.
来源:mcp/README.md,提交 41ea4a8
Price to earnings (P/E)
Price to earnings ratio from a share price and earnings per share.
eps必填price必填Discounted 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.
cashtotalDebtdiscountRate必填projectedFCF必填sharesOutstandingterminalGrowthRate必填Graham Number
Benjamin Graham's ceiling price for a defensive investor, from EPS and book value per share.
eps必填pricebookValuePerShare必填Altman 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.
ebit必填model必填salesbookEquitytotalAssets必填workingCapital必填retainedEarnings必填totalLiabilities必填marketValueEquityReturn on equity (ROE)
Net income as a share of shareholders' equity.
equity必填netIncome必填Piotroski 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.
netIncome必填totalAssets必填longTermDebtpriorNetIncomegrossMarginValuepriorTotalAssetscurrentRatioValueoperatingCashFlow必填priorLongTermDebtsharesOutstandingassetTurnoverValuepriorGrossMarginValue另有 3 个Profit margin (gross, operating, net, FCF)
One margin as a share of revenue: gross, operating, net or free cash flow.
kind必填revenue必填netIncomefreeCashFlowcostOfRevenueoperatingIncomeLiquidity ratio (current, quick)
Whether short-term assets cover short-term liabilities: the current ratio, or the quick ratio that leaves out inventory.
kind必填inventorycurrentAssets必填currentLiabilities必填Leverage 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.
ebitkind必填totalDebttotalEquityinterestExpenseCompany 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 个已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
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