wshobson/maverick-mcp
Stock market MCP server for Yahoo Finance data, technical analysis, portfolio tracking, and Python backtesting. Runs locally with no API key for core tools.
3c97ada5dc53maverick-mcp-server1.2.1 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- In 37 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 6 of 20 tools, prompts and resources could not be followed through the code
Top risks in plain words
- HIGH3 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
dnspython2.9.2 or later,opentelemetry-api1.45.2 or later,soupsieve4.0.0 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 16 tools, 3 prompts, 1 resource. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (20: 16 tools, 3 prompts, 1 resource)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
analyze_stockprompt Full technical + screening workflow for one ticker.
Full technical + screening workflow for one ticker.
review_portfolioprompt Portfolio + risk review workflow.
Portfolio + risk review workflow.
run_backtest_workflowprompt Strategy backtesting workflow (registered only with the `[backtesting]` extra).
Strategy backtesting workflow (registered only with the `[backtesting]` extra).
_my_holdings_resourceresource `portfolio://my-holdings`: the default portfolio's live-priced
`portfolio://my-holdings`: the default portfolio's live-priced
snapshot, for AI context rather than direct user invocation.clear_market_cachetool Clear the cached quote for `ticker`, or every quote plus the market
Clear the cached quote for `ticker`, or every quote plus the market
overview cache when `ticker` is omitted.fntool
No description.
fntool
No description.
fntool
No description.
fntool
No description.
fntool
No description.
fntool
No description.
portfolio_add_positiontool Add (or average into) a position in `portfolio_name`.
Add (or average into) a position in `portfolio_name`.
portfolio_clear_portfoliotool Remove every position from `portfolio_name`. Requires `confirm=True`.
Remove every position from `portfolio_name`. Requires `confirm=True`.
portfolio_journal_add_tradetool Add an open trade to the journal. `entry_date` is an ISO 8601 date or
Add an open trade to the journal. `entry_date` is an ISO 8601 date or
datetime (for example `2026-03-15` or `2026-03-15T14:30:00Z`) for a trade
made earlier; omit it to record the trade as entered now. Naive dates
are UTC. Side is long or short (case-insensitive); prices and shares
must be finite and positive. Unit prices retain subcent precision.portfolio_journal_close_tradetool Close an open trade by entry ID. PnL is computed automatically
Close an open trade by entry ID. PnL is computed automatically
(long: exit-entry, short: entry-exit), multiplied by shares, then
rounded to cents with ROUND_HALF_UP. Exit price must be finite and
positive. Strategy performance is recomputed for every trade tag.portfolio_remove_positiontool Remove `shares` from `ticker` (or the entire position when omitted).
Remove `shares` from `ticker` (or the entire position when omitted).
portfolio_watchlist_addtool Add a ticker symbol to an existing watchlist. Repeat calls for the
Add a ticker symbol to an existing watchlist. Repeat calls for the
same symbol add another entry rather than replacing it.portfolio_watchlist_createtool Create a new named watchlist for tracking ticker symbols. The name
Create a new named watchlist for tracking ticker symbols. The name
must be unique.portfolio_watchlist_removetool Remove a ticker symbol from a watchlist.
Remove a ticker symbol from a watchlist.
screening_run_screenstool Recompute one screen (or all three when `screen` is omitted) and persist it.
Recompute one screen (or all three when `screen` is omitted) and persist it.
Always returns a `screen name -> ScreenRun` mapping under `results`, even
for a single explicit screen, so callers never need to branch on shape.
Screens only symbols already known locally; with none, returns an error
that says how to add them.Text the model reads (20)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
fn tool
fn tool
clear_market_cache tool
Clear the cached quote for `ticker`, or every quote plus the market
overview cache when `ticker` is omitted.fn tool
portfolio_add_position tool
Add (or average into) a position in `portfolio_name`.
portfolio_remove_position tool
Remove `shares` from `ticker` (or the entire position when omitted).
portfolio_clear_portfolio tool
Remove every position from `portfolio_name`. Requires `confirm=True`.
portfolio_watchlist_create tool
Create a new named watchlist for tracking ticker symbols. The name
must be unique.portfolio_watchlist_add tool
Add a ticker symbol to an existing watchlist. Repeat calls for the
same symbol add another entry rather than replacing it.portfolio_watchlist_remove tool
Remove a ticker symbol from a watchlist.
portfolio_journal_add_trade tool
Add an open trade to the journal. `entry_date` is an ISO 8601 date or
datetime (for example `2026-03-15` or `2026-03-15T14:30:00Z`) for a trade
made earlier; omit it to record the trade as entered now. Naive dates
are UTC. Side is long or short (case-insensitive); prices and shares
must be finite and positive. Unit prices retain subcent precision.portfolio_journal_close_trade tool
Close an open trade by entry ID. PnL is computed automatically
(long: exit-entry, short: entry-exit), multiplied by shares, then
rounded to cents with ROUND_HALF_UP. Exit price must be finite and
positive. Strategy performance is recomputed for every trade tag.fn tool
fn tool
screening_run_screens tool
Recompute one screen (or all three when `screen` is omitted) and persist it.
Always returns a `screen name -> ScreenRun` mapping under `results`, even
for a single explicit screen, so callers never need to branch on shape.
Screens only symbols already known locally; with none, returns an error
that says how to add them.fn tool
analyze_stock prompt
Full technical + screening workflow for one ticker.
review_portfolio prompt
Portfolio + risk review workflow.
run_backtest_workflow prompt
Strategy backtesting workflow (registered only with the `[backtesting]` extra).
_my_holdings_resource resource
`portfolio://my-holdings`: the default portfolio's live-priced
snapshot, for AI context rather than direct user invocation.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 14 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 14 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 14 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 14 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 14 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 20 capabilities; 13 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 20 capabilities; 13 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 20 capabilities; 13 more call code the scanner could not follow, where it may happen
Where the code is: 20 handlers in 8 files at commit 3c97ada5dc53
maverick/backtesting/tools.pyfnmaverick/market_data/tools.pyfn, clear_market_cachemaverick/portfolio/tools.pyfn, portfolio_add_position, portfolio_remove_position, portfolio_clear_portfolio, portfolio_watchlist_create, portfolio_watchlist_add, portfolio_watchlist_remove, _my_holdings_resourcemaverick/portfolio/tools_journal.pyportfolio_journal_add_trade, portfolio_journal_close_trademaverick/research/tools.pyfnmaverick/screening/tools.pyfn, screening_run_screensmaverick/server/prompts.pyanalyze_stock, review_portfolio, run_backtest_workflowmaverick/technical/tools.pyfn
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies HIGH3 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionfastmcp >=4.0.3
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 20 capabilities; 13 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (3 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
dnspythonPyPI 2.9.0 HIGH 1 advisory 2.9.2
- HIGHGHSA-vvf4-9x63-8xvv CVE-2026-128089dnspython has excessive memory and CPU use
soupsievePyPI 3.0.3 HIGH 1 advisory 4.0.0
- HIGHGHSA-mmhr-3c5m-f64f CVE-2026-126190Soup Sieve: Polynomial-time denial of service in the descendant combinator
opentelemetry-apiPyPI 1.45.1 MEDIUM 1 advisory 1.45.2
- MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=4.0.3 |
| Servers in the code | 20 (test, large-trades) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-13 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2025-08-24 |
| Topics | ai-agents anthropic backtesting claude fastmcp finance financial-analysis llm mcp mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.