Trading MCP Server
An intelligent trading assistant that fetches live stock prices using the Yahoo Finance API.
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
uvfor dependency management - ⚙️ Supports modular expansion to include trading signals, historical analysis, and more
🧠 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
uvfor 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.
Máy chủ liên quan
Quiz MCP
MCP server for interactive quizzes
Stock Market Tracker
MCP server for advanced financial analysis, stock monitoring, and real-time market intelligence to support buy/sell decisions
Trayd
Trade Robinhood with natural language in Claude Code
Google Ads MCP Server
Connect Google Ads to Claude or ChatGPT via Two Minute Reports MCP and get accurate answers about campaigns, creatives, and spend.
Zcash MCP
MCP server for Zcash with 22 tools for shielded transactions, attestation verification, and wallet management
Sitecore MCP server
MCP server for work with Sitecore
diagrams-mcp-server
MCP server for generating cloud architecture diagrams, flowcharts, sequence diagrams, and more — powered by mingrammer/diagrams, Mermaid, and PlantUML.
LGTM Dog MCP
Generates dog images with an LGTM (Looks Good To Me) overlay using the Dog CEO API.
Learning Hub
AI learning assistant that manages game time rewards based on school grades, homework, and bonus tasks
Fewsats
Enable AI Agents to purchase anything in a secure way using Fewsats