Servidor MCP de Alpaca
Exponer Alpaca Market Data & Broker API como herramientas MCP.
Instalación
Desarrollo local
Variables de entorno
Cree un .env
en la raíz del proyecto con:
Comandos
- inicio (dev):
npm start
(ejecutanpx tsx index.ts
) - compilación :
npm run build
(compila endist/
) - ejecutar compilado :
node dist/index.js
Uso
Una vez en ejecución, el servidor MCP escucha en la entrada/salida estándar. Utilice cualquier cliente MCP o la CLI:
Herramientas disponibles
- obtener-activos
{ assetClass?: "us_equity" | "crypto" }
- get-stock-bars
{ symbols: string[]; start: string; end: string; timeframe: string }
- obtener-días-de-mercado
{ start: string; end: string }
- obtener-noticias
{ start: string; end: string; symbols: string[] }
Cada uno devuelve JSON en content[0].text
o un error.
Configuración del cliente MCP
Para integrar a través de mcp.config.json
, agregue lo siguiente bajo la clave mcpServers
:
Licencia
ISC
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Servidor MCP que expone Alpaca Market Data & Broker API como herramientas, lo que permite el acceso a datos financieros como barras de acciones, activos, días de mercado y noticias a través del Protocolo de Control de Mensajes.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides real-time access to financial market data through the free Alpha Vantage API. This server implements a standardized interface for retrieving stock quotes and company information.Last updated -555PythonMIT License
- AsecurityAlicenseAqualityMCP server that provides AI assistants access to stock market data including financial statements, stock prices, and market news through a Model Context Protocol interface.Last updated -11433PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs like Claude to interact with the Alpaca trading API, allowing for trading stocks, checking positions, fetching market data, and managing accounts through natural language.Last updated -3PythonMIT License
- -securityAlicense-qualityAn MCP server that integrates with the AlphaVantage financial data API, providing access to stock market data, technical indicators, and fundamental financial information.Last updated -PythonMIT License