MCP & AI Agent Integration

Alpaca
automation.

8 AI agent actions for Alpaca — callable from any MCP-compatible runtime, Claude, Cursor, or Cerebral OS workflow. Use Alpaca to process payments, generate invoices, and manage financial workflows without human intervention. Full governance, audit trail, and dry-run safety on every execution.

No credit card required
Live in production environments
<200ms median execution
Dry-run before production
Execution trace
live
8
actions
100%
governed
<200ms
latency
8
AI agent actions
3
Read operations
5
Write operations
4
High-risk actions (approval gated)
Finance & Payments Alpaca is a Finance & Payments integration — use it to automate payments, invoicing, and financial operations from any AI agent or MCP-compatible runtime.
Actions

What you can do
with Alpaca.

Every action below is available as an MCP tool and a verb in Cerebral OS — callable from any AI agent, Claude, Cursor, Windsurf, or your own runtime via the BYOA API. All executions are governed, audited, and dry-run safe.

Get Account Info
alpaca:get_account_info
Returns the account info, See the docs
Read Low risk
List Orders
alpaca:list_orders
Retrieves a list of orders for the account, filtered by the supplied query parameters, if no filter given all will be returned, See the docs
Read Low risk
List Positions
alpaca:list_positions
Retrieves a list of the account’s open positions, See the docs
Read Low risk
Cancel All Orders
alpaca:cancel_all_orders
Attempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server reject the request, See the docs
Write High risk
Cancel Order
alpaca:cancel_order
Attempts to cancel an open order. If the order is no longer cancelable (example: status=`filled`), the server will reject the request, See the docs
Write High risk
Close All Positions
alpaca:close_all_positions
Closes (liquidates) all of the account’s open long and short positions. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server will reject the request, See the docs
Write High risk
Close Position
alpaca:close_position
Closes (liquidates) the account’s open position. Works for both long and short positions, See the docs
Write High risk
Place Order
alpaca:place_order
Places a new order for the given account. An order request may be rejected if the account is not authorized for trading, or if the tradable balance is insufficient to fill the order, See the docs
Write Medium risk
MCP & Runtime API

Call Alpaca
from any AI agent.

Any AI agent — Claude, Cursor, LangChain, AutoGen, or your own — can call Alpaca actions through the Cerebral OS Runtime API. Governance, credentials, and audit trail fire automatically.

alpaca:get_account_info READ
# Call via Runtime API
curl
-X POST \
  "https://api.cerebralos.com/v1/runtime/actions/run"
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "verb": "alpaca:get_account_info",
    "args": {},
    "execution_id": "agent-001"
  }'
alpaca:cancel_all_orders WRITE
# Dry-run first — no production risk
curl
-X POST \
  "https://api.cerebralos.com/v1/runtime/actions/run"
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "verb": "alpaca:cancel_all_orders",
    "args": {},
    "execution_id": "agent-001",
    "metadata": {"dryRun": true}
  }'
Get your Runtime API key at app.cerebralos.com/signup — 1,000 free executions, no credit card required.
AI agent examples

What your AI agent
can do with Alpaca.

Real patterns your AI agent can execute via MCP or the Runtime API. Every action governed, dry-run safe, and fully audited.

Trigger
AI agent needs Alpaca data
Call alpaca:get_account_info via MCP or Runtime API
AI processes result and takes next action
Full execution logged to audit trail automatically
Trigger
Workflow needs to write to Alpaca
Dry-run validates alpaca:cancel_all_orders before execution
Approval gate fires if risk level is high
Action executes with full governance — logged, audited, reversible
Trigger
Payment or billing event
Sync to accounting system
Generate invoice
Alert finance team
How it works

Every Alpaca action
governed end-to-end.

Cerebral OS isn't a connector. It's the execution layer that sits in front of Alpaca — adding governance, dry-run safety, and a full audit trail to every operation.

Governance first
Every verb carries a risk classification. High-risk writes require explicit approval gates before they execute in production.
Dry-run safe
Simulate any Alpaca action before it touches production. See exactly what would happen before a single real call is made.
Immutable audit trail
Every Alpaca action is logged — what ran, what changed, who approved it, when it happened. Full history on every verb, forever.
Connect with

Alpaca works best
alongside these.

Build multi-step workflows that connect Alpaca to the rest of your stack. All governed. All audited.

Alpaca integration

Start free.
No credit card required.

Start free with 1,000 runs — no credit card required. Connect Alpaca in minutes, dry-run every action before it touches production, full audit trail on everything.

Start free — 1,000 runs Browse all integrations →