Skip to content
MCP server

yfinance agent MCP

Read-only Yahoo Finance data server giving AI research agents quotes, history and news

Runs locally

yfinance agent MCP is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add yfinance-agent-mcp -- uvx yfinance-agent-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "yfinance-agent-mcp": {
      "command": "uvx",
      "args": [
        "yfinance-agent-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "yfinance-agent-mcp": {
      "command": "uvx",
      "args": [
        "yfinance-agent-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "yfinance-agent-mcp": {
      "command": "uvx",
      "args": [
        "yfinance-agent-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "yfinance-agent-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "yfinance-agent-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add yfinance-agent-mcp -- uvx yfinance-agent-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.yfinance-agent-mcp]
command = "uvx"
args = ["yfinance-agent-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "yfinance-agent-mcp": {
      "command": "uvx",
      "args": [
        "yfinance-agent-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user yfinance-agent-mcp uvx -- yfinance-agent-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "yfinance-agent-mcp": {
          "command": "uvx",
          "args": [
            "yfinance-agent-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About yfinance agent MCP

Gives an AI assistant a set of read-only market data tools backed by Yahoo Finance through the yfinance library. Instead of one tool per library method, the 13 tools are shaped around what an agent needs: symbol lookup, quotes, price history with indicators, news, screeners, earnings calendars, fundamentals, analyst views, options and live prices.

Answers are kept compact so they fit in a model's context window. Price history arrives with returns, moving averages, RSI, ATR and the 52-week range rather than thousands of raw bars. Every response carries a timestamp, and quote responses add market state and delay information, since many exchanges report prices with a delay.

Failures are returned as specific error types such as rate limiting with a wait time, or invalid arguments with the accepted values, so an agent can recover on its own. Publisher text in news results is flagged as untrusted, and the server has no order placement capability.

Tools this server provides (13)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 12 of 13 tools read data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

search_symbolsName suggests: reads
Find Yahoo symbols for a company name or asset.
get_quotesName suggests: reads
Price, change, day range, volume and freshness for up to 25 symbols.
get_market_overviewName suggests: reads
Market open status and index performance.
get_price_historyName suggests: reads
Indicators and latest bars for a symbol.
get_newsName suggests: reads
Latest news for symbols or a topic.
screen_securities
Candidates from predefined screens or a custom query.
get_sector_industryName suggests: reads
Leaders, ETFs and industries of a sector or industry.
get_eventsName suggests: reads
Earnings, IPO, economic and split calendars.
get_fundamentalsName suggests: reads
Financial statements, valuation history and key ratios.
get_analyst_viewName suggests: reads
Price targets, ratings and estimates.
get_optionsName suggests: reads
Calls and puts around the current price.
get_ticker_datasetName suggests: reads
Holders, insider trades, dividends, splits, filings and fund holdings.
get_live_quotesName suggests: reads
Current price from Yahoo's streaming feed.

What it does

Thirteen market data tools
Covers symbol search, quotes, fundamentals, options, news, screeners and calendars in one server.
Indicator-ready price history
Returns returns, moving averages, RSI, ATR and 52-week range alongside recent bars.
Timestamped freshness fields
Each answer includes an as-of time, and quotes include market state and delay.
Actionable error responses
Rate limit, invalid argument, not found and upstream errors each explain what to do next.
Rate limiting and caching
Shared session, process-wide rate limit and per-category cache expiry to limit load on Yahoo.
Read-only by design
The server cannot place trades, and news text is marked untrusted for agents.

Good for

  • Pulling quotes and recent news for a watchlist before a research session
  • Screening stocks for analyst upgrades or unusual volume inside an agent workflow
  • Comparing valuation and growth metrics across several tickers
  • Checking whether the market is open and how major indices are moving
  • Building a research agent that writes a decision record from news and price data

Pricing

Open source

Free and open source under MIT.

Prices change. Check n-kostadinov.github.io before you buy.

yfinance agent MCP FAQ

Does the server place trades?

No. It is read-only and cannot place orders; trading would need a separate tool that the user controls.

How do I install yfinance agent MCP?

Run it with uvx yfinance-agent-mcp, or add the command to an MCP client such as Claude Desktop, Cursor, VS Code or Windsurf.

Is the market data real-time?

Quotes include market_state, quote_source and delay_min fields, because many exchanges are delayed by 15 minutes or more.

Which license applies?

The server is released under the MIT license. The underlying yfinance library is Apache 2.0 licensed.

Is yfinance agent MCP free?

Yes. yfinance agent MCP is open source, so you can use and self-host it for free.

How do I add yfinance agent MCP to Claude Code?

Run this command in your terminal: claude mcp add yfinance-agent-mcp -- uvx yfinance-agent-mcp

What are the best alternatives to yfinance agent MCP?

The closest alternatives to yfinance agent MCP are Yahoo Finance, Yahoo Finance MCP Server, Yahoo Finance (stocks, options, financials), yfinance-ai: Yahoo Finance and Yahoo Finance Scraper.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers