Installation¶
yfinance-agent-mcp is a Python package on PyPI.
The simplest way to run it is uvx, which downloads the package into a cached environment
and starts it. MCP clients start the server themselves; you only tell them the command.
Requirements¶
- uv, which provides
uvx. uv also downloads a suitable Python (3.11 or newer) if your system has none. - Network access to Yahoo Finance (
*.finance.yahoo.com,fc.yahoo.comand thestreamer.finance.yahoo.comwebsocket for live prices).
Install uv if you do not have it:
Check that it runs¶
This prints yfinance-agent-mcp and the version. Without --version the server waits for
an MCP client on stdin and stdout; stop it with Ctrl+C. Nothing else is printed on
stdout, because stdout carries the protocol; logs go to stderr.
Pin a version¶
Clients run whatever uvx resolves. To get the same server every time, pin it:
In a client configuration, put the pinned form into args:
Upgrade¶
uvx caches the environment it built. Ask for the latest release explicitly:
and use yfinance-agent-mcp@latest in your client configuration, or bump your pinned
version. The changelog lists what changed.
Other ways to install¶
Installs a persistent yfinance-agent-mcp command:
Configure clients with "command": "yfinance-agent-mcp" and no arguments.
python -m venv .venv
.venv/bin/pip install yfinance-agent-mcp # Windows: .venv\Scripts\pip
.venv/bin/yfinance-agent-mcp --version
Configure clients with the full path to .venv/bin/yfinance-agent-mcp.
The plugin starts the server with uvx and adds a market-research skill:
See the plugin and skill.
Try it without a chat client¶
The MCP Inspector lists the tools and lets you call them from a browser:
Next¶
- Quickstart: connect a client and make a first call.
- Configuration: rate limits, cache times, locale and proxy.