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.
相關伺服器
SentinelGate
Open-source MCP proxy for AI agent access control. CEL policies, RBAC, full audit trail, content scanning, Admin UI.
RateAPI MCP Server
Real interest rates from 1,400+ US credit unions across 50 states. Covers mortgages, auto loans, HELOCs, personal loans, and credit cards. Rates ranked by APR with zero affiliate bias. Works with Claude Desktop and ChatGPT. Free tier available.
LIFX
Control LIFX smart lights through the LIFX HTTP API.
Smithsonian Open Access
An MCP server to interact with the Smithsonian’s Open Access collection.
Pelaris
Connect Pelaris to any MCP-compatible AI assistant for personalised fitness coaching. Plan training programs, log workouts, track benchmarks, manage goals, and get data-driven coaching insights.
Fabric MCP Server
The Fabric MCP server exposes the following MCP tools that allow AI assistants to interact with your Equinix Fabric resources. Each tool corresponds to a specific Fabric API endpoint.
VMS Integration
Connects to a CCTV recording program (VMS) to retrieve recorded and live video streams and control the VMS software.
Discode (Code Mode MCP)
Code Mode enabled MCP server - save 90% of token usage for any MCP-compatible agent
ContrastAPI
Security intelligence MCP server — 20 tools: CVE lookup (EPSS/KEV), domain recon, SSL, IP reputation, IOC, exploit search, code security. Free, no API key.
Shioaji MCP Server
Access the Shioaji trading API for financial data and trading operations, requiring a SinoPac Securities account.