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