Serveur MCP Alpaca - MCP Server sécurisé par ALMC Security 2025

Serveur MCP Alpaca

Voir sur GitHub

Serveur MCP Alpaca

smithery badge

Expose les données de marché et l'API du courtier Alpaca en tant qu'outils MCP.

Installation

Installation via Smithery

Pour installer Alpaca Market Data Server pour Claude Desktop automatiquement via Smithery:

npx -y @smithery/cli install @cesarvarela/alpaca-mcp --client claude

Installation manuelle

npm install alpaca-mcp

Développement local

git clone <repo-url> cd alpaca-mcp npm install

Variables d'environnement

Créez un fichier .env à la racine du projet avec :

ALPACA_ENDPOINT=https://data.alpaca.markets ALPACA_BROKER_ENDPOINT=https://broker-api.alpaca.markets ALPACA_API_KEY=VOTRE_ALPACA_API_KEY ALPACA_SECRET_KEY=VOTRE_ALPACA_SECRET_KEY

Commandes

  • start (dev) : npm start (exécute npx tsx index.ts)
  • build: npm run build (compile dans dist/)
  • exécuter compilé: node dist/index.js

Utilisation

Une fois lancé, le serveur MCP écoute sur stdin/stdout. Utilisez n'importe quel client MCP ou le CLI :

npm link # optional alpaca-mcp # démarre le serveur globalement

Outils disponibles

  • get-assets{ assetClass? : "us_equity" | "crypto" }
  • get-stock-bars{ symbols : string[] ; start : string ; end : string ; timeframe : string }
  • get-market-days{ start : string ; end : string }
  • get-news{ start : string ; end : string ; symbols : string[] }

Chacune renvoie du JSON dans content[0].text ou une erreur.

Configuration du client MCP

Pour l'intégration via mcp.config.json, ajoutez ce qui suit sous la clé mcpServers:

{ "mcpServers" : { "alpaca-mcp" : { "command" : "npx", "args" : [ "-y", "alpaca-mcp" ], "env" : { "ALPACA_ENDPOINT" : "https://data.alpaca.markets", "ALPACA_BROKER_ENDPOINT" : "https://broker-api.alpaca.markets", "ALPACA_API_KEY" : "<VOTRE_CLÉ_API>", "ALPACA_SECRET_KEY" : "<YOUR_SECRET_KEY>" } } } ## Publishing ```bash npm publish

Licence

ISC

Liés dans Service en nuage - MCP Servers sécurisés

ServeurRésuméActions
JupiterOne MCP ServerUn serveur Model Context Protocol (MCP) qui fournit un accès aux outils JupiterOne. Ce serveur perme...Voir
Salesforce Einstein par CDataServeur Model Context Protocol (MCP) de CData pour Salesforce EinsteinVoir
Amazon VPC LatticeUn serveur Model Context Protocol (MCP) pour le référencement des sources, fournissant des outils po...Voir
AWS-IReveal-MCPAWS-IReveal-MCP est un serveur Model Context Protocol (MCP) conçu pour offrir aux équipes de sécurit...Voir
MCP en nid d'abeilleUn serveur Model Context Protocol pour interagir avec les données d'observabilité Honeycomb. Ce serv...Voir
OpenAIInterroger les modèles OpenAI directement à partir de Claude en utilisant le protocole MCP.Voir