drio
Open app

Alpaca MCP Server

Source

Model Context Protocol (MCP) server for Alpaca trading API

Catalog onlyCatalog onlySTDIO

Overview

Alpaca MCP Server is a Model Context Protocol (MCP) server designed for the Alpaca trading API, enabling interaction with trading functionalities through natural language.

To use the server, clone the repository, install the required packages, set up your Alpaca API credentials in a .env file, and run the server using Python. Configure your MCP client (like Claude for Desktop) to connect to the server.

  • 📊 Real-time market data and historical price information - 💵 Access to account balances and buying power - 📈 Management of current positions and their performance - 🛒 Natural language order placement for market and limit orders - 📋 Order management capabilities including tracking and cancellation
  1. Checking account balances and trading power
  2. Managing stock positions and performance tracking
  3. Placing and managing trades using natural language queries

Add to your AI client

Use these steps to connect Alpaca MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "alpaca-mcp-server-tedlikeskix": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-alpaca-mcp-server-tedlikeskix"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "alpaca-mcp-server-tedlikeskix": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-alpaca-mcp-server-tedlikeskix"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "alpaca-mcp-server-tedlikeskix": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-alpaca-mcp-server-tedlikeskix"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "alpaca-mcp-server-tedlikeskix": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-alpaca-mcp-server-tedlikeskix"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "alpaca-mcp-server-tedlikeskix": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-alpaca-mcp-server-tedlikeskix"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "alpaca-mcp-server-tedlikeskix": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-alpaca-mcp-server-tedlikeskix"
      ]
    }
  }
}

FAQ

Can I use Alpaca MCP Server for real trading?

Yes, but ensure to change the configuration from paper trading to real trading in the server settings.

What programming language is used?

The server is built using Python.

Is there a license for this project?

Yes, it is licensed under the MIT license.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1746,"uuid":"0b9577e5-9f5d-4b02-970f-ccb8a79c5fb7","name":"alpaca-mcp-server","title":"Alpaca MCP Server","description":"Model Context Protocol (MCP) server for Alpaca trading API","avatar_url":"https://avatars.githubusercontent.com/u/12807771?v=4","created_at":"2025-03-05T05:09:20.508Z","updated_at":"2025-03-12T10:20:31.634Z","status":"created","author_name":"tedlikeskix","author_avatar_url":"https://avatars.githubusercontent.com/u/12807771?v=4","tags":"alpaca,trading,api,mcp,server","category":"finance","is_featured":false,"sort":1,"url":"https://github.com/tedlikeskix/alpaca-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-04 12:59:45\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]