T
tedlikeskix/alpaca-mcp-server
Trading through the Alpaca API
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Alpaca MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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.
## Features
📊 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
## Prerequisites
Python 3.10+
Alpaca API keys
Claude for Desktop or another MCP client
## Installation
1. Clone this repository:
bash
git clone https://github.com/YOURUSERNAME/alpaca-mcp.git
cd alpaca-mcp
2. Install the required packages:
bash
pip install mcp alpaca-py python-dotenv
3. Create a .env file with your Alpaca API credentials:
APIKEYID=youralpacaapikey
APISECRETKEY=youralpacasecretkey
## Usage
### Running the server
Start the server by running:
bash
python alpacamcpserver.py
### Configuring Claude for Desktop
1. Open Claude for Desktop
2. Go to Settings
3. Click on "Developer" and then "Edit Config"
4. Add the server configuration to claudedesktopconfig.json:
json
"mcpServers": {
"alpaca": {
"command": "python",
"args": [
"/path/to/alpacamcpserver.py"
],
"env": {
"APIKEYID": "youralpacaapikey",
"APISECRETKEY": "youralpacasecretkey"
5. Save and restart Claude for Desktop
### Available Tools
The server exposes the following tools:
getaccountinfo() - Get account balances and status
getpositions() - List all current positions in the portfolio
getstockquote(symbol) - Get the latest quote for a stock
getstockbars(symbol, days) - Get historical price bars for a stock
getorders(status, limit) - List orders with specified status
placemarketorder(symbol, side, quantity) - Place a market order
placelimitorder(symbol, side, quantity, limitprice) - Place a limit order
cancelallorders() - Cancel all open orders
closeallpositions(cancelorders) - Close all open positions
## Example Queries
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"
## Features
📊 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
## Prerequisites
Python 3.10+
Alpaca API keys
Claude for Desktop or another MCP client
## Installation
1. Clone this repository:
bash
git clone https://github.com/YOURUSERNAME/alpaca-mcp.git
cd alpaca-mcp
2. Install the required packages:
bash
pip install mcp alpaca-py python-dotenv
3. Create a .env file with your Alpaca API credentials:
APIKEYID=youralpacaapikey
APISECRETKEY=youralpacasecretkey
## Usage
### Running the server
Start the server by running:
bash
python alpacamcpserver.py
### Configuring Claude for Desktop
1. Open Claude for Desktop
2. Go to Settings
3. Click on "Developer" and then "Edit Config"
4. Add the server configuration to claudedesktopconfig.json:
json
"mcpServers": {
"alpaca": {
"command": "python",
"args": [
"/path/to/alpacamcpserver.py"
],
"env": {
"APIKEYID": "youralpacaapikey",
"APISECRETKEY": "youralpacasecretkey"
5. Save and restart Claude for Desktop
### Available Tools
The server exposes the following tools:
getaccountinfo() - Get account balances and status
getpositions() - List all current positions in the portfolio
getstockquote(symbol) - Get the latest quote for a stock
getstockbars(symbol, days) - Get historical price bars for a stock
getorders(status, limit) - List orders with specified status
placemarketorder(symbol, side, quantity) - Place a market order
placelimitorder(symbol, side, quantity, limitprice) - Place a limit order
cancelallorders() - Cancel all open orders
closeallpositions(cancelorders) - Close all open positions
## Example Queries
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"
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/tedlikeskix-alpaca-mcp-server/)
- 来源
- awesome · https://github.com/tedlikeskix/alpaca-mcp-server
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。