What is the Alpaca MCP Server?
The Alpaca MCP Server is a Model Context Protocol (MCP) server that allows Large Language Models (LLMs) like Claude to interact with the Alpaca trading API. It enables trading stocks, checking positions, fetching market data, and managing your account through natural language.
What are the prerequisites for using the Alpaca MCP Server?
You need Python 3.10+, Alpaca API keys, and an MCP client like Claude for Desktop.
How do I install the Alpaca MCP Server?
- Clone the repository:
git clone https://github.com/YOUR_USERNAME/alpaca-mcp.git - Install the required packages:
pip install mcp alpaca-py python-dotenv - Create a
.envfile with your Alpaca API credentials.
How do I configure Claude for Desktop to use the Alpaca MCP Server?
- Open Claude for Desktop and go to Settings.
- Click on “Developer” and then “Edit Config”.
- Add the server configuration to
claude_desktop_config.jsonwith your API keys and server path. - Save and restart Claude for Desktop.
What tools are available through the Alpaca MCP Server?
The server exposes tools like get_account_info(), get_positions(), get_stock_quote(symbol), get_stock_bars(symbol, days), get_orders(status, limit), place_market_order(symbol, side, quantity), place_limit_order(symbol, side, quantity, limit_price), cancel_all_orders(), and close_all_positions(cancel_orders).
Can I use real money for trading with this server?
Yes, but by default, it uses Alpaca’s paper trading. To use real money, change paper=True to paper=False in the TradingClient initialization.
Is the Alpaca MCP Server secure?
This server will have access to your Alpaca account and can place real trades. Always review what Claude is suggesting before approving any trades. Protect your API keys and monitor your account activity.
What is UBOS?
UBOS is a full-stack AI Agent Development Platform focused on bringing AI Agents to every business department. Our platform helps you orchestrate AI Agents, connect them with your enterprise data, build custom AI Agents with your LLM model and Multi-Agent Systems.
How does the Alpaca MCP Server relate to UBOS?
The Alpaca MCP Server is an asset available on the UBOS Asset Marketplace, showcasing how UBOS enables developers to build and deploy AI-driven solutions. UBOS provides the platform and tools to manage and integrate this server into larger AI agent workflows.
What can I do with the Alpaca MCP Server on UBOS?
You can integrate it with other AI agents, automate trading strategies, connect it to your enterprise data for informed decisions, and build personalized trading assistants.
Alpaca MCP Server
Project Details
- miguelyad26/alpaca-mcp-server
- MIT License
- Last Updated: 4/1/2025
Recomended MCP Servers
Tools for updating dependencies in Azure DevOps repositories using https://dependabot.com
MCP Server implementation for the Model Context Protocol (MCP) enabling AI tool usage - Realtime Flight Search
A simple note-taking MCP server for recording and managing notes with AI models.
MCP Server for Worldpay APIs
Get started using GitHub in less than an hour.
A Model Context Protocol (MCP) server for converting files between different formats
Model Context Protocol (MCP) server for the Zotero API, in Python
A project that uses an MCP to create the Incept program.
A Model Context Protocol (MCP) server that provides secure, read-only access to BigQuery datasets. Enables Large Language Models...





