Alpaca Trading
A

Alpaca Trading

The Alpaca MCP Server is a protocol service that connects LLMs such as Claude with the Alpaca trading API, supporting stock trading, account management, and market data query through natural language.
2.5 points
8.2K

What is the Alpaca MCP Server?

The Alpaca MCP Server is an application based on the Model Context Protocol (MCP) that allows you to interact with the Alpaca stock trading API through natural language. You can easily view account information, manage your portfolio, obtain market data, and execute buy and sell operations.

How to use the Alpaca MCP Server?

First, ensure that Python 3.10 or a higher version is installed and the Alpaca API key is configured. Then start the server and connect to it via Claude for Desktop. You can complete complex trading tasks with simple natural language instructions.

Applicable Scenarios

Suitable for professional traders and retail investors who need automated trading, real - time market monitoring, or quick response to investment opportunities.

Main Features

Get Account Information
Check your account balance, available funds, and account status.
View Portfolio
Understand your currently held stocks and their performance.
Get Stock Quote
Get the latest price of a stock in real - time.
Historical Price Data
Obtain the price change trend of a stock over a past period.
Place Market Orders
Immediately buy or sell a specified number of stocks at the current market price.
Place Limit Orders
Set a specific price to buy or sell stocks.
Cancel Orders
Cancel all or part of the unexecuted orders.
Close Positions
Close all open positions.
Advantages
Simplify the complex investment decision - making process through natural language.
Support real - time market data updates.
Reduce the risk of errors caused by manual operations.
Limitations
Depend on the services provided by the Alpaca API.
It may take some time for beginners to get familiar with the operations.
Use with caution when dealing with real - money transactions.

How to Use

Clone the Project Repository
Download the Alpaca MCP Server code on your local computer.
Install Dependencies
Install the Python libraries required to run the server.
Configure Environment Variables
Create a.env file and add your Alpaca API key.
Start the Server
Execute the startup script to run the Alpaca MCP Server.

Usage Examples

Query Account Balance
Send a request to the server to get the current account's fund status.
Execute Market Orders
Enter natural language instructions to place orders.
Get Historical Data
Request the historical price records of a stock.

Frequently Asked Questions

Can multiple trading requests be processed simultaneously?
How to switch to the real - money trading mode?
What if I forget my API key?

Related Resources

Official Documentation
The complete official documentation of the Alpaca platform.
GitHub Repository
The source code address of the project.
Video Tutorial
A quick - start guide.

Installation

Copy the following command to your Client for configuration
{
  "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"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
10.0K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
7.7K
5 points
M
Maverick MCP
MaverickMCP is a personal stock analysis server based on FastMCP 2.0, providing professional level financial data analysis, technical indicator calculation, and investment portfolio optimization tools for MCP clients such as Claude Desktop. It comes pre-set with 520 S&P 500 stock data, supports multiple technical analysis strategies and parallel processing, and can run locally without complex authentication.
Python
10.5K
4 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
9.2K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
19.0K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
8.7K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
22.6K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
32.2K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
18.8K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
64.4K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
28.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
59.3K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
19.6K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
42.8K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase