Ask Claude about your stock portfolio with an MCP server

By Simone Ruggiero ·

AI assistants are good at answering questions like "which of my holdings dragged the portfolio down today?", but only if they can see the holdings. Pasting a spreadsheet into a chat every morning gets old fast. The Model Context Protocol (MCP) solves this: a small local program, the MCP server, gives the assistant a few tools it can call when it needs data.

StockDock 1.10 and later is also an MCP server. If you already track your portfolio in it, Claude and other MCP clients can read it directly.

What the assistant can see

Three read-only tools:

  • get_portfolio: holdings with live value, cost, total P&L and today's change, per portfolio and combined
  • get_watchlist: live quotes for your watchlist
  • get_quote: a live quote for any Yahoo Finance ticker, including crypto (BTC-USD) and currency pairs (EURUSD=X)

Nothing is written or changed: the assistant can't add, edit or delete holdings, and it can't place orders.

Connect Claude Code

One command in the terminal:

claude mcp add stockdock -- /Applications/StockDock.app/Contents/MacOS/StockDock --mcp

Connect Claude Desktop, Cursor and other clients

Add StockDock to the client's MCP configuration. In Claude Desktop it's under Settings → Developer → Edit Config; in Cursor, ~/.cursor/mcp.json:

{
  "mcpServers": {
    "stockdock": {
      "command": "/Applications/StockDock.app/Contents/MacOS/StockDock",
      "args": ["--mcp"]
    }
  }
}

Restart the client. The menu bar app doesn't need to be open: the client starts StockDock in the background with --mcp, without a window or a menu bar icon.

Questions worth asking

  • "How is my portfolio doing today, and which three holdings moved it most?"
  • "Which of my positions are below my average price?"
  • "What share of my portfolio is in US tech stocks?"
  • "What's the price of NVDA and BTC right now?"
  • "Compare today's move of my watchlist with the S&P 500."

The assistant combines the tools on its own: it reads the portfolio, asks for the quotes it's missing and does the arithmetic.

What leaves your Mac

StockDock reads your portfolios and watchlist from its local file and fetches quotes from Yahoo Finance, as the app always does. What the assistant asks for, though, is sent to the AI service you're using, holdings included. Connect StockDock only to an assistant you trust with that information, and remember that its answers are not investment advice.

Frequently asked questions

What is an MCP server?

A small program that exposes tools to AI assistants through the Model Context Protocol, an open standard. The assistant decides when to call a tool, and the server returns the data.

Do I need an API key or a paid plan for StockDock?

No. StockDock is free and its MCP server needs no key. You only need an MCP-capable client such as Claude Code, Claude Desktop or Cursor.

Can the assistant change my portfolio?

No. All three tools are read-only: StockDock never saves anything during an MCP session.

Read next