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.
Related Servers
SentinelGate
Open-source MCP proxy for AI agent access control. CEL policies, RBAC, full audit trail, content scanning, Admin UI.
FRITZ!Box MCP Server
Control AVM FRITZ!Box routers - manage devices, WiFi, network settings, parental controls, and schedule time-delayed actions
LIFX
Control LIFX smart lights through the LIFX HTTP API.
Taiwan-Health-MCP
A Model Context Protocol (MCP) server exposing Taiwan healthcare datasets such as ICD-10 and drug information for AI agents.
Vibe Ads
I-powered Google Ads manager for local service businesses. 37 categories. 5-minute setup. $20/mo.
ImageMagick
An MCP server for image conversion using ImageMagick and darktable.
EruditePay Blockchain Intelligence
168 MCP tools for blockchain analytics across Base, Tron, Bitcoin, XRP, Kaspa. Token prices, whale tracking, DeFi, wallet profiling, security scoring. x402 pay-per-call.
sbb-mcp
Swiss Federal Railways (SBB/CFF/FFS) MCP server โ real-time train schedules, ticket prices with Half-Fare/GA support, and direct purchase links via official SBB SMAPI
AgentPay
x402 payment gateway for AI agents โ 12 crypto data tools (price, whale activity, gas, TVL, Fear & Greed, Dune queries) paid per-call in USDC on Stellar or Base. No API keys, no subscriptions.
Crypto Trader
Provides real-time cryptocurrency market data using the CoinGecko API.