MCP Trader Server
MCP Trader Server
A Model Context Protocol (MCP) server for stock traders.
Features
Tools
The server provides one tool (more to come):
- analyze-stock: Performs technical analysis on a given stock symbol
- Required argument:
symbol
(string, e.g. "NVDA") - Returns comprehensive technical analysis including:
- Moving average trends (20, 50, 200 SMA)
- Momentum indicators (RSI, MACD)
- Volatility metrics (ATR, ADRP)
- Volume analysis
- Required argument:
Setup
Prerequisites
- Python 3.11+
- uv
- ta-lib
- Tiingo API Key
Environment Variables
Create a .env
file:
Installation
Configuration
Claude Desktop App
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Development Configuration:
Development
Build and Run
Debugging
Use the MCP Inspector for debugging:
Example Usage
In Claude Desktop:
The server will return a technical analysis summary including trend status, momentum indicators, and key metrics.
Dependencies
See pyproject.toml for full dependency list:
Further Reading
Learn more about this project through these detailed blog posts:
- Building a Stock Analysis Server with MCP, Part 1 - Initial setup, architecture, and core technical analysis features
The MCP Trader Server conducts comprehensive technical analysis on stocks, offering insights into trends, momentum indicators, volatility metrics, and volume analysis to support stock trading decisions.