Lunatic — stock tools for your own agent

Deterministic stock-investigation tools and review pages that run on your persistent agent VM, with your data subscription and your AI agent. Nothing runs on our servers — there is no “our servers” in the loop.

What is it?

Lunatic is an open-source toolkit your coding agent (Meta Muse, Claude, or any MCP host) installs and runs locally:

How do I use it with Muse?

  1. Paste the repo link — https://github.com/Dmytroportianka/lunatic — into your Muse session on your persistent VM and say “install this.” Your agent clones it, installs dependencies, and starts the local servers.
  2. Set your own provider key in the VM environment (for example FMP_API_KEY from your own FMP subscription), outside the chat. Never paste a key into a conversation.
  3. Do the short onboarding. On your first session your agent will offer to learn your provider, the stocks you follow, how you want to track them, and what you want to measure. It will also help you come up with a strategy — proposing plain-language candidates, testing the one you choose, and saving it only if you approve. It's skippable, your answers stay on your VM, and you're only asked once; they become your agent's defaults afterwards.
  4. Just ask about stocks you're interested in — “how is NVDA”, “screen these tickers for FCF inflection”, “build me a strategy that buys oversold quality names”. Your agent calls the tools, gives you a short factual summary, and links to the consistent review page (ticker page with charts, screen, signals, strategy builder) showing the same numbers.
  5. Review on the pages, decide yourself. The chat is prose; the pages are the record — same layout, same numbers, every model version.
git clone git@github.com:Dmytroportianka/lunatic.git
cd lunatic && bun install
export FMP_API_KEY="your-own-subscription-key"   # outside any chat
bun run mcp &   # tools  → http://127.0.0.1:3007/mcp
bun run start & # pages  → http://127.0.0.1:3008

See it in a Muse session

Imaginary example. This is an invented conversation to show the workflow — not a real user, recommendation, or market call. Names, prices, and headlines below are illustrative only.

Real pages, not mock-ups

The screenshots on this page are captured from the actual Lunatic UI and widgets running locally, against real market history for MU (Micron Technology) — price history via Yahoo Finance, annual FCF/share derived from Nasdaq statement tables and SEC EDGAR share counts, captured 2026-11-27. A volatile cyclical was chosen on purpose: the run-up, the halving, the losing trades and the drawdown are all real. Historical data only — not a recommendation.

Real screenshot of the Lunatic ticker page for MU showing a price chart below its moving averages and an FCF per share chart
Ticker review page: price chart, FCF-per-share chart, and the computed indicator panel — the same deterministic rendering the agent links to in chat.

What it is not

Your responsibility — read this

You, the user, are solely responsible for how you use this software and for every decision you make with it. By installing and running Lunatic you accept that:

If you do not accept this, do not install or use the software.

Privacy

Everything runs on your VM: your provider key, your saved strategies, your questions. Lunatic phones home to nobody. The only outbound calls are to the market-data provider you configured, with your key.