
laukikk/alpaca-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
laukikk/alpaca-mcp는 https://github.com/laukikk/alpaca-mcp.]에서 수입된 MCP 서버 후보입니다
개요
laukikk/alpaca-mcp는 https://github.com/laukikk/alpaca-mcp.]에서 수입된 MCP 서버 후보입니다
개요(AI 번역)
Alpaca 거래 API에 인터페이스를 제공하는 모델 Context Protocol (MCP) 서버는 재고 및 암호화 포트폴리오를 관리하고 거래, 액세스 시장 데이터를 제공합니다.
특징
- Account Management: 계정 세부 사항 보기, 잔액 및 포트폴리오 상태
- Trading: 시장, 제한, 정지 및 정지 제한 주문
- Portfolio Management: 위치, 계산 성능, 닫기 위치
- Market Data: 실시간 견적 및 과거 가격 데이터 접근
- Asset Information: 트래블 자산에 대한 세부 정보를 얻으십시오.
설치
Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 MCP Server를 자동으로 설치하려면:
수동 설치
- Clone 이 저장소
- 의존성 설치:
또는 uv를 사용하여:
구성
-
.env.example] 파일 복사.env: -
Alpaca Paper Trading API 자격 증명을
.env파일에 추가하십시오:
Alpaca 계정 만들기로 이러한 자격 증명을 얻을 수 있습니다.
사용법
MCP 서버 실행:
서버가 시작되며 MCP 클라이언트가 연결할 수 있습니다.
데스크탑용 Claude 테스트
윤곽:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Alpaca Trading MCP Server
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.
Features
- 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
Installation
Installing via Smithery
To install Alpaca Trading MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @laukikk/alpaca-mcp --client claude
Manual Installation
- Clone this repository
- Install dependencies:
pip install -e .
Or using uv:
uv pip install -e .
Configuration
- Copy the
.env.examplefile to.env:
cp .env.example .env
- 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 at Alpaca.
Usage
Run the MCP server:
python src/server.py
The server will start and be available for MCP clients to connect to.
Testing with Claude for Desktop
Configuration:
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"
]
}
}
}
MCP For Server Developers: Quickstart
Available Resources
The server provides the following resources:
account://info- Get current account informationpositions://all- Get all current positionspositions://{symbol}- Get position details for a specific symbolorders://recent/{limit}- Get most recent orders with specified limitmarket://{symbol}/quote- Get current market quote for a specific symbolmarket://{symbol}/bars/{timeframe}- Get historical price bars for a symbol with specified timeframeassets://list- List tradable assets available on Alpacaassets://{symbol}- Get detailed asset information by symbol
Available Tools
설치
npx -y @smithery/cli install @laukikk/alpaca-mcp --client claude설정
{
"mcpServers": {
"alpaca": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/alpaca-mcp-server",
"run",
"src/server.py"
]
}
}
}