Opening a sprawling Google Sheet just to update overseas stock holdings gets old fast: manual entry is tedious, and sheet-side price formulas break constantly. firma moves personal portfolio tracking into the terminal instead.

Keeping Financial Records in Local SQLite

Portfolio holdings are sensitive data. Instead of syncing balances to a third-party cloud service, firma stores every record locally inside ~/.firma/firma.db, eliminating external data-leak worries.

Market quotes pull directly from the Finnhub API with no middleman service in between. Running firma show portfolio prints current unrealized P&L and position weights right in the terminal.

Buys, sells, dividends, and tax entries all log through firma add txn. As transaction history accumulates, monthly net-worth curves and cash-flow breakdowns sharpen automatically, and firma report renders quick visual summaries.

Turning the CLI into an AI Portfolio Assistant via MCP

Registering firma as an MCP server in Claude Desktop turns the tracker into a conversational portfolio analyst. A single firma mcp install command handles wiring, letting you ask about sector weights in plain language or cross-check holdings against recent ticker news.

Because the model queries your local SQLite database directly, asking why cash outflows spiked this month returns a concrete month-over-month breakdown. Logging new trades works through natural conversation too, removing friction from day-to-day bookkeeping.

Scriptable JSON Output and Lean Setup

Every read command supports a --json flag, making it easy to pipe output into custom price alerts or personal dashboards, while firma show earnings parses company financial metrics cleanly.

API keys configure in one line via firma config set, and minimal runtime dependencies keep installation light for developers who live in the terminal.

Summary

  • Stores all holdings and transactions in a local SQLite file (~/.firma/firma.db) to keep financial data private.
  • Uses MCP (Model Context Protocol) to standardize the interface between the CLI tracker and desktop LLMs.
  • Supports both natural-language portfolio queries and conversational trade logging through Claude.