Local stock analysis and portfolio tracking assistant via MaverickMCP
From README links · today
Connect an AI assistant to Yahoo Finance for quotes, screening, and portfolio
What they did
They set up MaverickMCP, an open-source stock market MCP server, to give an AI assistant local access to market data and portfolio tools. They cloned the repository, installed Python 3.12+ and uv, ran `uv sync`, and copied `.env.example` to `.env`. They optionally added the backtesting and research extras with `uv sync --extra backtesting --extra research`. Then they registered the server with their MCP client (Claude Desktop, Codex, Cursor, or VS Code) using a `mcpServers` JSON entry that launches `uv run --directory /absolute/path/to/maverick-mcp maverick-mcp --transport stdio`, so the client starts the server itself over STDIO. With the server connected, they used the 38 core tools to pull quotes, historical prices, fundamentals, RSI, MACD, and support/resistance levels; ran bullish, bearish, and supply/demand screens over loaded symbols; and recorded positions, average cost, profit/loss, risk reviews, watchlists, and a trade journal in the local SQLite database. Optionally they enabled the 12 backtesting tools to test strategies on historical data and the 3 research tools to investigate companies and sectors with source citations.
How it went
The setup yields a working local MCP server with no API key needed for core tools, backed by yfinance data and a local SQLite store for portfolio, watchlists, and journal. Core analysis, screening, and portfolio tracking work out of the box; backtesting and LLM/web-search research require the optional extras. Data can be delayed, incomplete, or wrong, and the project is explicitly educational, not advisory.
Worth knowing
The PyPI name `maverick-mcp-server` belongs to an unrelated project, so install from the Git tag or local checkout instead. Daily history only supports US symbols plus `.L`, `.T`, `.TO`, `.AX`, `.HK`, and `.DE` suffixes; other suffixes return calendar errors for history-dependent tools. HTTP mode has no authentication and binds to 127.0.0.1 by default, so keep it local. The `/mcp` endpoint must have no trailing slash or client registration can break. Redis and PostgreSQL are optional; SQLite is the default.
Wiring
1) Install Python 3.12+ and uv; SQLite is bundled, Redis/PostgreSQL optional. 2) `git clone https://github.com/wshobson/maverick-mcp.git && cd maverick-mcp && uv sync && cp .env.example .env`. 3) Optionally `uv sync --extra backtesting --extra research`. 4) For a single local client, add to the client's `mcpServers` JSON: command `uv`, args `["run","--directory","/absolute/path/to/maverick-mcp","maverick-mcp","--transport","stdio"]`. The client spawns the server over STDIO, so no separate process is needed. 5) For shared HTTP clients, run `make dev` and point the client at `http://localhost:8003/mcp` with no trailing slash; `/mcp/` redirects and can break registration. 6) Alternatively run the Docker image `ghcr.io/wshobson/maverick-mcp:1.2.1` with `--env-file .env`, `-p 127.0.0.1:8003:8000`, and a volume mounted at `/data` for persistence. 7) Data flows from yfinance into the server's tools; portfolio, watchlists, and journal persist in the local database.
Try it yourself
Set up MaverickMCP in this repo as a local stock analysis MCP server. Clone https://github.com/wshobson/maverick-mcp, install Python 3.12+ and uv, run `uv sync`, and copy `.env.example` to `.env`. Add the backtesting and research extras if I ask for strategy tests or cited company research. Register the server with my MCP client using a `mcpServers` entry that runs `uv run --directory <absolute-path> maverick-mcp --transport stdio`. Then verify the connection by asking for a quote, a short historical price series, RSI and MACD on a US symbol, and a bullish screen over a small watchlist. Record one sample position in the portfolio and confirm it persists in the local database.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-langgraph-and-maverick-mcpcurl -s https://api.runchr.com/api/recipes/runchr/stack-langgraph-and-maverick-mcp/manifestSystem prompt
You are a local stock analysis and portfolio tracking assistant backed by the MaverickMCP server. Use its tools for quotes, historical prices, fundamentals, technical indicators, screens, and portfolio/watchlist/journal records, and treat all output as educational rather than investment advice.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-langgraph-and-maverick-mcp/manifest.