Claude Code¶
Add the server¶
Options you may want:
--scope usermakes the server available in every project;--scope projectwrites it to the project's.mcp.jsonso your team gets it too.-e NAME=valuesets an environment variable, for example-e YFINANCE_AGENT_MCP_RATE_LIMIT=1(all settings).- Pin a version with
uvx yfinance-agent-mcp@0.1.0.
claude mcp add yfinance --scope user -e YFINANCE_AGENT_MCP_LOG_LEVEL=INFO -- uvx yfinance-agent-mcp@0.1.0
Or install the plugin¶
The plugin adds the same server plus a market-research skill that walks the agent from news to a decision record:
On Claude Code 2.1.275 or later, one step is enough:
/plugin install yfinance --marketplace n-kostadinov/yfinance-agent-mcp.
The skill runs as /yfinance:market-research. See plugin and skill.
Verify¶
- Inside Claude Code, run
/mcp:yfinanceshould be connected with 13 tools. - In a terminal,
claude mcp listshows its status. - Ask: "Is the US market open right now?" The agent should call
get_market_overview.
Tool names and permissions¶
Claude Code names the tools mcp__yfinance__<tool>, for example
mcp__yfinance__get_quotes (with the plugin: mcp__plugin_yfinance_yfinance__get_quotes).
All tools are read-only and annotated as such, so you can pre-approve them, for example in
.claude/settings.json:
Troubleshooting¶
uvxnot found: Claude Code inherits your shell'sPATH. Install uv and restart the terminal, or use the full path fromwhich uvx(where uvxon Windows).- The server shows as failed: run
uvx yfinance-agent-mcp --versionin a terminal to see the error. More in troubleshooting.