S
StockBud Docs

Welcome to StockBud

AI-powered stock trading and portfolio management via Model Context Protocol

Welcome to StockBud.io

StockBud is an AI-powered trading platform that connects to your brokerage accounts through the Model Context Protocol (MCP), providing intelligent portfolio management, market analysis, and trading assistance.

New to StockBud? Start with our Quick Start Guide to get up and running in 5 minutes.

What is StockBud?

StockBud acts as a bridge between AI assistants (like Claude or ChatGPT) and your brokerage accounts. Ask questions in natural language and get intelligent responses backed by real market data.

Example conversation:

You: "What's my portfolio performance today?"

StockBud: Your portfolio is up $1,234.56 (+0.99%) today.
         Top performer: NVDA +3.2%
         Risk score: 6.5/10 (Moderate)
         
         πŸ’‘ Recommendation: Consider taking profits on NVDA 
         as it's up 45% from your entry.

Key Features

FeatureDescription
πŸ€– AI-Powered AnalysisGet intelligent insights on your portfolio and market conditions
πŸ“Š Real-Time DataLive market data from Alpaca, Yahoo Finance, and more
πŸ”Œ MCP IntegrationConnect to Claude Desktop, ChatGPT, or any MCP-compatible AI
πŸ›‘οΈ Risk ManagementAutomated risk assessment, position sizing, and rebalancing

Quick Start

1. Install StockBud

git clone https://github.com/neverpeak/mcp-server-stockbud.io
cd mcp-server-stockbud.io
uv venv && uv pip install -r requirements.txt

2. Configure Environment

cp env.v2.sample .env
# Add your ALPACA_API_KEY and ALPACA_SECRET_KEY

3. Start the Server

uv run python scripts/start/stockbud_main.py

4. Connect to Claude Desktop

Add StockBud to your MCP configuration and start asking questions!

Architecture

StockBud follows the Model Context Protocol specification, exposing tools, resources, and prompts that AI assistants can use:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     β”‚     β”‚                     β”‚     β”‚                     β”‚
β”‚   AI Assistant      │────▢│   StockBud MCP      │────▢│   Brokerages        β”‚
β”‚   (Claude/GPT)      β”‚     β”‚   Server            β”‚     β”‚   (Alpaca, etc)     β”‚
β”‚                     β”‚     β”‚                     β”‚     β”‚                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                     β”‚
                                     β–Ό
                            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                            β”‚                     β”‚
                            β”‚   Market Data       β”‚
                            β”‚   (Yahoo, etc)      β”‚
                            β”‚                     β”‚
                            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Available Tools

ToolDescription
get_portfolioGet current portfolio with all positions
analyze_stockDeep analysis of a specific stock
place_orderPlace a buy/sell order
get_market_sentimentGet overall market sentiment

View all tools β†’

Data Schemas

All data structures are defined with JSON Schema for type safety:

SchemaDescription
PortfolioPositions, insights, and targets
TradingOrders, trades, and strategies
Market DataQuotes, bars, and news
MCP ServerTool definitions and responses

View all schemas β†’

Need Help?

⚠️ Paper Trading First: We recommend starting with Alpaca's paper trading account to test your strategies before using real money.

On this page