Skip to main content
Glama
VaishnaviK23

Trading MCP Server

by VaishnaviK23

Trading-MCP-Server

An intelligent trading assistant that integrates with the Claude AI MCP (Model Context Protocol) platform. This tool fetches live stock prices using Yahoo Finance and enables seamless command-based interaction with the market via Claude's agent interface.

πŸš€ Features

  • πŸ”„ Fetches real-time (or near real-time) stock prices using Yahoo Finance

  • πŸ€– Connects to Claude MCP as a server with custom trading commands

  • πŸ›  Built using Python with support for virtual environments and uv for dependency management

  • βš™οΈ Supports modular expansion to include trading signals, historical analysis, and more

Related MCP server: Yahoo Finance MCP Server

🧠 Architecture

  • Claude AI MCP Integration: Uses mcp[cli] to expose a server interface to Claude.

  • Yahoo Finance API: For retrieving stock data (via yfinance).

  • Virtual Environment: Managed using uv for fast and deterministic builds.

πŸ“¦ Setup

# Install uv if not already installed
brew install uv

# Navigate to the project directory
cd MCPtrading

# Install dependencies
uv pip install -r requirements.txt

# (Optional) Add packages
uv add yfinance

πŸƒβ€β™€οΈ Running the Server

Make sure to use the correct Python environment:

uv run --python .venv/bin/python --with "mcp[cli]" mcp run trader_tools.py

Or update your Claude config:

{
  "mcpServers": {
    "Trading": {
      "command": "/Users/yourname/.local/bin/uv",
      "args": [
        "run",
        "--python",
        "/full/path/to/.venv/bin/python",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "trader_tools.py"
      ]
    }
  }
}

πŸ§ͺ Example Usage

Ask Claude:

"What's the latest price of AAPL?"

Claude will call the MCP server and respond with the current stock price.

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables LLMs to retrieve stock market data and financial information from Yahoo Finance using the yfinance Python library. Supports querying stock prices, historical data, and other financial metrics through natural language.
    Last updated
    MIT
  • A
    license
    -
    quality
    -
    maintenance
    Integrates Yahoo Finance data with Claude to provide real-time and historical financial information, including stock prices, financial statements, and options data. It enables comprehensive market research and investment analysis through natural language interactions.
    Last updated
  • A
    license
    -
    quality
    D
    maintenance
    Provides real-time stock quotes, market indices, historical data, and financial visualizations from Yahoo Finance without API keys, enabling users to analyze and visualize market data through Claude.
    Last updated
    19
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Global stock research, ML forecasts, valuation signals, screeners & portfolio tracking in Claude

  • Trade Robinhood through natural language in Claude Code.

  • Look up the latest stock prices by ticker symbol across global markets. Get current price and esse…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VaishnaviK23/Trading-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server