
prism-mcp
io.github.SM4527/prism-mcp
Portfolio look-through and insider-buy signals (FolioPrism, SignalPrism). Demo mode on sample data.
Documentation
Prism MCP
Ask an AI assistant about your own portfolio and insider buys. With a local model, nothing leaves your machine.
Prism MCP is a read-only MCP server that connects LM Studio, Claude Desktop or any MCP client to your self-hosted FolioPrism (portfolio look-through) and SignalPrism (SEC Form 4 insider buys). It runs on your machine, talks only to loopback addresses, and returns percentages, not dollar amounts, by default.
One question, one tool call: holdings, insider buys, cluster and valuation for a ticker. Sample data.
All screenshots in this README come from the sample stacks, with Qwen3 4B in LM Studio.
Try it
Needs Node 24+. No other Prism app is needed: --demo answers from bundled sample data.
npx @modelcontextprotocol/inspector npx -y @smnpm1/prism-mcp --demo
In the Inspector, call prism_status, then prism_ticker_overview with AAPL (look-through exposure across funds) and with ACMR (insider buys, cluster, valuation). Every answer starts with a DEMO DATA line.
To run against your own apps, see docs/SETUP.md (FolioPrism's sample stack, or a from-source build).
To use it from a chat app, add it to LM Studio (local, recommended for real data) or Claude Desktop: docs/SETUP.md.
What you can ask
| Ask | Tool the model calls |
|---|---|
| "What do I know about ACMR?" | prism_ticker_overview: your exposure, insider buys, clusters and valuation in one call |
| "How much of my portfolio is in Apple, counting my funds?" | folioprism_stock_exposure |
| "Which stocks do VTI and QQQ both hold?" | folioprism_fund_overlap |
| "Am I inside my own allocation limits?" | folioprism_drift |
| "Any insider buys in the last 30 days?" | signalprism_recent |
| "Are several insiders buying the same stock?" | signalprism_clusters |
13 tools in all. The 11 FolioPrism and SignalPrism tools can each be switched off in the config (SignalPrism is off until you enable it there). Full list, parameters and example answers: docs/TOOLS.md.
More screenshots



Privacy
- Local model, local data: with LM Studio, tool results never leave your machine. With a cloud client such as Claude Desktop, they go to that provider.
- Percent by default: no dollar amounts or portfolio total unless you set
detail: "full"in the config file. The model can't change it. - Read-only and loopback-only: it sends GET requests to
127.0.0.1,localhostor[::1]only, and refuses any other address. - No results in logs: the call log records tool, arguments, size and duration, never results. Full details: docs/PRIVACY.md.
How it works
flowchart LR
FP["FolioPrism :8420"] --> MCP["prism-mcp (stdio)"]
SP["SignalPrism :8500"] --> MCP
MCP --> AI["AI Client (LM Studio / Claude)"]
MCP --> PB["PrismBrief CLI"]
Tech stack: Node 24+, TypeScript 6, the official MCP TypeScript SDK (stdio), zod, decimal.js, Vitest. Tested on Windows on ARM (Snapdragon X) with a local Qwen3 4B. Details: docs/ARCHITECTURE.md.
The Prism suite
| App | What it adds |
|---|---|
| FolioPrism | See your real stock exposure across all your funds. Required. |
| SignalPrism | Insider buys from SEC Form 4 filings, with phone alerts. Optional. |
| PrismBrief | A scheduled weekly Markdown brief built from these same tools. |
Docs
- Setup and configuration: version requirements, config file, LM Studio, Claude Desktop, troubleshooting
- Tools: every tool, the ticker overview, FolioPrism and SignalPrism details, an example answer
- Privacy: detail levels, sample vs personal stacks
- Architecture · Development · Changelog
Disclaimer
Prism MCP is a personal analysis tool, not investment advice. Data comes from your own FolioPrism and SignalPrism instances.
Built with Claude Code
Plan, code and tests written in milestone sessions with Claude Code, each milestone reviewed before commit.
If Prism MCP is useful to you, a ⭐ helps others find it.
License
MIT. See LICENSE.
@smnpm1/prism-mcpnpm install @smnpm1/prism-mcp