Alpaca MCP Split
Splits the Alpaca trading MCP server into two smaller servers (data and orders) to bypass Claude's tool limit, providing access to all 39 tools for account queries, market data, and order execution.
README
Alpaca MCP Split Server
Two MCP servers for Alpaca trading — split by purpose to work within Claude's tool limits.
The Problem
Claude Desktop (and claude.ai) has a hard limit on how many MCP tools it will load per conversation. When a single MCP server exposes 40+ tools, Claude silently drops many of them. You end up with a powerful server that only partially works — often missing the exact tools you need most (like order placement or options chains).
There's no error message. Tools just don't appear. You might have get_account_info, get_positions, place_stock_order, get_option_chain, and 35 other tools in your server — but Claude only loads ~12-15 of them, seemingly at random.
The Solution
Split one large server into two smaller ones organized by purpose:
| Server | Tools | Purpose |
|---|---|---|
| alpaca-trading-data | 30 | All read operations: quotes, positions, options chains, news, watchlists, market data |
| alpaca-trading-orders | 9 | All execution: place orders, cancel orders, close positions, exercise options |
Claude loads tools from all connected MCP servers into one flat pool. Two servers with 30 and 9 tools each both stay under the limit, giving you access to all 39 tools in every conversation.
Both servers connect to the same Alpaca account using the same API keys. There's no state isolation — they're just two entry points to the same brokerage account.
What Was Removed
All crypto trading tools (9 tools) were removed from the original monolith to further reduce tool count. If you need crypto, you can add them back to the data server from the original source.
Setup
1. Clone and install dependencies
git clone https://github.com/Schmoll86/alpaca-mcp-split.git
cd alpaca-mcp-split
# Create a shared virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
2. Configure API keys
Copy the example env file into both server directories:
cp alpaca-trading-data/.env.example alpaca-trading-data/.env
cp alpaca-trading-orders/.env.example alpaca-trading-orders/.env
Edit both .env files with your Alpaca API credentials. You can get these from Alpaca Dashboard.
3. Configure Claude Desktop
Add both servers to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"alpaca-trading-data": {
"command": "/path/to/alpaca-mcp-split/venv/bin/python",
"args": [
"/path/to/alpaca-mcp-split/alpaca-trading-data/alpaca_trading_data.py"
],
"env": {
"PYTHONUNBUFFERED": "1"
}
},
"alpaca-trading-orders": {
"command": "/path/to/alpaca-mcp-split/venv/bin/python",
"args": [
"/path/to/alpaca-mcp-split/alpaca-trading-orders/alpaca_trading_orders.py"
],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}
Replace /path/to/alpaca-mcp-split/ with your actual clone path.
4. Restart Claude Desktop
Quit and relaunch. Both servers will start automatically. In a new conversation, you should have access to all 39 tools.
Tool Inventory
Data Server (30 tools)
Account & Positions: get_account_info, get_positions, get_open_position
Stock Data: get_stock_quote, get_stock_bars, get_stock_trades, get_stock_latest_trade, get_stock_latest_bar, get_stock_snapshot, get_stock_quotes
Options Data: get_option_contracts, get_option_latest_quote, get_option_snapshot, get_option_chain
News: get_news, get_latest_news
Market: get_market_clock, get_market_calendar
Watchlists: create_watchlist, get_watchlists, update_watchlist, get_watchlist_by_id, add_asset_to_watchlist_by_id, remove_asset_from_watchlist_by_id, delete_watchlist_by_id
Other: get_asset_info, get_all_assets, get_portfolio_history, get_corporate_announcements, get_session_state
Orders Server (9 tools)
Stock Orders: place_stock_order, get_orders, cancel_all_orders, cancel_order_by_id
Position Management: close_position, close_all_positions, exercise_options_position
Options Orders: place_option_market_order
Session: record_decision
How It Works
┌─────────────────────────────────────────────┐
│ Claude Desktop │
│ │
│ Tools from ALL connected MCPs appear as │
│ one flat pool. Claude picks the right │
│ tool regardless of which server owns it. │
└──────────┬──────────────┬────────────────────┘
│ │
┌──────▼──────┐ ┌─────▼───────┐
│ Data MCP │ │ Orders MCP │
│ (30 tools) │ │ (9 tools) │
└──────┬──────┘ └─────┬───────┘
│ │
└──────┬───────┘
│
┌────────▼────────┐
│ Alpaca API │
│ (Same account, │
│ same keys) │
└─────────────────┘
Adapting This Pattern
This same split strategy works for any MCP server hitting Claude's tool limit:
- Count your tools — if you have 30+, you're probably getting silently truncated
- Split by read vs. write — safest separation, no functional dependencies
- Share the venv — symlink or use the same virtual environment for both
- Same .env — both servers use identical credentials
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。