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.
関連サーバー
Sweeppea MCP
Manage sweepstakes, participants, and winner drawings with legal compliance in the US and Canada directly from your AI agent. Access requires an active Sweeppea subscription and API Key.
Apigene MCP Gateway
Apigene MCP Gateway is the runtime layer that connects AI agents to APIs and MCP servers via Model Context Protocol.
VFX MCP
A powerful video editing server using ffmpeg-python to process external video files.
DICOM MCP Server
Enables AI assistants to query, read, and move data on DICOM servers like PACS and VNA.
Bazi
An MCP server for accessing Bazi (Chinese astrology) data, requiring an API key.
Gaggiuino MCP
An MCP server for the Gaggiuino open-source espresso machine, providing real-time local network access to machine status and shot data.
Korea Investment & Securities (KIS) REST API
Provides stock trading and market data using the Korea Investment & Securities (KIS) REST API.
Compliance Intelligence
Access 692+ compliance frameworks, 13,700+ controls, and 280,000+ cross-framework mappings via MCP. Query ISO 27001, NIST CSF, GDPR, SOC 2, HIPAA, PCI DSS and more.
Polymarket
An MCP tool for interacting with the Polymarket prediction market platform.
Time MCP Server
Enables time awareness for large language models.