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
You must be authenticated.
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 -530PythonMIT License
- -securityFlicense-qualityAn MCP server implementation that integrates with Angle One APIs to provide standardized access to financial market data, trading operations, and portfolio management.Last updated -Python
- -securityAlicense-qualityMCP 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 -253PythonMIT 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