
MCP Server
MCP-Mirror
public
cesarvarela_alpaca mcp
Mirror of https://github.com/cesarvarela/alpaca-mcp
Repository Info
0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License
About This Server
Mirror of https://github.com/cesarvarela/alpaca-mcp
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
# Alpaca MCP Server
Expose Alpaca Market Data & Broker API as MCP tools.
## Installation
```bash
npm install alpaca-mcp
```
## Local Development
```bash
git clone <repo-url>
cd alpaca-mcp
npm install
```
## Environment Variables
Create a `.env` at project root with:
```env
ALPACA_ENDPOINT=https://data.alpaca.markets
ALPACA_BROKER_ENDPOINT=https://broker-api.alpaca.markets
ALPACA_API_KEY=YOUR_ALPACA_API_KEY
ALPACA_SECRET_KEY=YOUR_ALPACA_SECRET_KEY
```
## Commands
- **start** (dev): `npm start` (runs `npx tsx index.ts`)
- **build**: `npm run build` (compiles to `dist/`)
- **run compiled**: `node dist/index.js`
## Usage
Once running, the MCP server listens on stdin/stdout. Use any MCP client or the CLI:
```bash
npm link # optional
alpaca-mcp # starts server globally
```
### Available Tools
- **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[] }`
Each returns JSON in `content[0].text` or an error.
## MCP Client Configuration
To integrate via `mcp.config.json`, add the following under the `mcpServers` key:
```json
{
"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": "<YOUR_API_KEY>",
"ALPACA_SECRET_KEY": "<YOUR_SECRET_KEY>"
}
}
}
}
## Publishing
```bash
npm publish
```
## License
ISC
Quick Start
1
Clone the repository
git clone https://github.com/MCP-Mirror/cesarvarela_alpaca-mcp2
Install dependencies
cd cesarvarela_alpaca-mcp
npm install3
Follow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
OwnerMCP-Mirror
Repocesarvarela_alpaca-mcp
Language
TypeScript
License-
Last fetched8/8/2025
Recommended MCP Servers
💬
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
integrationsdiscordchat
🔗
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
integrationsautomationsaas
🕷️
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
apifycrawlerdata
🌐
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
testingqabrowsers
⚡
Zapier MCP
A Zapier server that provides automation capabilities for various apps.
zapierautomation