Alpaca Trading MCP Server
About
MCP for the Alpaca trading API to manage stock and crypto portfolios, place trades, and access market data
Details
- Author
- laukikk
- GitHub stars
- 35
- Downloads
- 448
- Categories
- Other, Finance, API
Jump to
- Account Management: view account details, balances, and portfolio status.
- Trading: place market, limit, stop, and stop-limit orders.
- Portfolio Management: view positions, calculate performance, close positions.
- Market Data: access real-time quotes and historical price data.
- Asset Information:
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Alpaca Trading MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install the server via Smithery using npx -y @smithery/cli install @laukikk/alpaca-mcp --client claude or manually by cloning the repository and installing dependencies with pip install -e . or uv pip install -e .. Configure your Alpaca Paper Trading API key and secret in a .env file, then run python src/server.py to start the server. For Claude Desktop, add the server configuration to claude_desktop_config.json.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"alpaca trading mcp server": {
"alpaca-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@laukikk/alpaca-mcp",
"--client",
"claude"
]
}
}
}
}
McpServers
{
"alpaca-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@laukikk/alpaca-mcp",
"--client",
"claude"
]
}
}
A Model Context Protocol (MCP) server that provides an interface to the Alpaca trading API, allowing you to manage your stock and crypto portfolio, place trades, and access market data.
- Account Management: View account details, balances, and portfolio status
- Trading: Place market, limit, stop, and stop-limit orders
- Portfolio Management: View positions, calculate performance, and close positions
- Market Data: Access real-time quotes and historical price data
- Asset Information: Get details about tradable assets
To install Alpaca Trading MCP Server for Claude Desktop automatically viaSmithery:
npx -y @smithery/cli install @laukikk/alpaca-mcp --client claude
- Clone this repository
- Install dependencies:
- Add your Alpaca Paper Trading API credentials to the.envfile:
ALPACA_PAPER_API_KEY = "your-api-key" ALPACA_PAPER_API_SECRET = "your-api-secret"
You can obtain these credentials by creating an account atAlpaca.
The server will start and be available for MCP clients to connect to.
Open your Claude for Desktop App configuration in a text editor. Create the file if it doesn't exist.
- Windows:%APPDATA%\Claude\claude_desktop_config.json
- Mac:~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the Alpaca MCP server configuration:
{ "mcpServers": { "alpaca": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/alpaca-mcp-server", "run", "src/server.py" ] } } }
The server provides the following resources:
- account://info- Get current account information
- positions://all- Get all current positions
- positions://{symbol}- Get position details for a specific symbol
- orders://recent/{limit}- Get most recent orders with specified limit
- market://{symbol}/quote- Get current market quote for a specific symbol
- market://{symbol}/bars/{timeframe}- Get historical price bars for a symbol with specified timeframe
- assets://list- List tradable assets available on Alpaca
- assets://{symbol}- Get detailed asset information by symbol
The server provides the following tools:
- get_account_info_tool- Get current account information
- place_market_order- Place a market order to buy or sell a stock
- place_limit_order- Place a limit order to buy or sell a stock at a specified price
- place_stop_order- Place a stop order to buy or sell a stock when it reaches a specified price
- place_stop_limit_order- Place a stop-limit order combining stop and limit order features
- cancel_order- Cancel an open order by its ID
- close_position- Close an open position for a specific symbol
- get_portfolio_summary- Get a comprehensive summary of the portfolio
WunderTrading MCP connects AI agents to live crypto trading execution on 20+ supported exchanges through a single MCP integration. Use it to turn AI-driven signals, market analysis, sentiment, screenshots, and custom strategy logic into real trades on exchanges including Binance, Bybit, Coinbase, Bitget, OKX, KuCoin, Hyperliquid, and BingX. Supports MCP and REST API workflows for order execution, trade management, and AI-powered automation.
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 over 100 cryptocurrency exchange APIs using the CCXT library.
Access prediction market data from the PolyMarket API.
Access market data, manage accounts, and execute trades on the Upbit Cryptocurrency Exchange via its OpenAPI.
Real-time and historical FX/crypto signal API for AI agents. Pay-per-call via x402 protocol on Base. No subscription, no API key. Correlation, regime, momentum, volatility across 10 instruments.
Manage Uniswap and Aerodrome liquidity positions with automated rebalancing and leverage.
EUR settlement for AI agents. USDC/EURC to EUR via SEPA Instant. Trust scoring (KYA 0-100), market data, crypto analytics, AI tools.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




