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
๐โโ๏ธ Running the Server
Make sure to use the correct Python environment:
Or update your Claude config:
๐งช Example Usage
Ask Claude:
"What's the latest price of AAPL?"
Claude will call the MCP server and respond with the current stock price.