Alpaca
About
Interact with the Alpaca trading API for stock trading, market data, and account management.
Details
- Author
- miguelyad26
- Categories
- Cloud Service, Other, Finance, API
Jump to
Setup
Install Alpaca in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/miguelyad26/alpaca-mcp-server
Follow the installation instructions in the repository README, then restart your MCP client.
This is a Model Context Protocol (MCP) server for Alpaca, allowing LLMs like Claude to interact with the Alpaca trading API. It enables trading stocks, checking positions, fetching market data, and managing your account - all through natural language.
- πAlpaca Documentation- Access Alpaca SDK documentation to build
- πMarket Data- Get real-time stock quotes and historical price data
- π΅Account Information- Check your balances, buying power, and status
- πPosition Management- View current positions and their performance
- πOrder Placement- Place market and limit orders through natural language
- πOrder Management- List, track, and cancel orders
- Python 3.10+
- Alpaca API keys
- Claude for Desktop or another MCP client
git clone https://github.com/YOUR_USERNAME/alpaca-mcp.git cd alpaca-mcp
Create a.envfile with your Alpaca API credentials:
API_KEY_ID=your_alpaca_api_key API_SECRET_KEY=your_alpaca_secret_key
- Open Claude for Desktop
- Go to Settings
- Click on "Developer" and then "Edit Config"
- Add the server configuration toclaude_desktop_config.json:
{ "mcpServers": { "alpaca": { "command": "python", "args": [ "/path/to/alpaca_mcp_server.py" ], "env": { "API_KEY_ID": "your_alpaca_api_key", "API_SECRET_KEY": "your_alpaca_secret_key" } } } }
- get_account_info()- Get account balances and status
- get_positions()- List all current positions in the portfolio
- get_stock_quote(symbol)- Get the latest quote for a stock
- get_stock_bars(symbol, days)- Get historical price bars for a stock
- get_orders(status, limit)- List orders with specified status
- place_market_order(symbol, side, quantity)- Place a market order
- place_limit_order(symbol, side, quantity, limit_price)- Place a limit order
- cancel_all_orders()- Cancel all open orders
- close_all_positions(cancel_orders)- Close all open positions
Once the server is connected to Claude, you can ask questions like:
- "What's my current account balance and buying power?"
- "Show me my current positions"
- "Get the latest quote for AAPL"
- "Show me the price history for TSLA over the last 10 days"
- "Buy 5 shares of MSFT at market price"
- "Sell 10 shares of AMZN with a limit price of $130"
- "Cancel all my open orders"
This server uses Alpaca's paper trading by default. To use real money trading, changepaper=Truetopaper=Falsein theTradingClientinitialization.
This MCP server will have access to your Alpaca account and can place real trades. Always review what Claude is suggesting before approving any trades.
A server for interacting with the Alpaca trading API. Requires API credentials via environment variables.
Interact with Alpaca's Trading API for stock trading, portfolio management, and real-time market data.
Provides seamless access to the Binance exchange API. Requires Binance API credentials to be configured.
Interact with the Binance API to view portfolios, convert tokens, and execute trades with minimal market impact.
Access the Binance Futures API for trading, account management, and market data.
Interact with the Invertir Online (IOL) API to manage investments and access market data.
An MCP server for interacting with the T-Invest API, providing access to investment and financial data.
MCP server for Tradernet/Freedom24 trading API β portfolio, orders, quotes, alerts and more
The Capital.com MCP Server lets your AI assistant talk to your trading account directly. Market data, position checks, trade previews β all in plain language, without leaving your AI tool.
US/HK markets β 110 tools: real-time quotes, options, orders, fundamentals, alerts, DCA & portfolio
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




