alpaca-trading-paper-trading-mcp

alpaca-trading-paper-trading-mcp is a skill for Claude Code, Codex from alpacahq/alpaca-skills. It costs 69 tokens per session (9,932 once invoked), scanned B, original, Apache-2.0.

A guide for using an Alpaca paper-trading account through an API connection. Paper trading simulates orders with virtual money rather than placing them in the live market.

In plain words
What is it for?
Use it to preview, submit, inspect, and manage paper orders for US stocks, options, and cryptocurrency, after confirming the trading idea and order settings.
Why use it?
It lets an agent preview and manage simulated trades without requiring command-line setup or manually writing direct API requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to preview, submit, inspect, and manage paper orders for US stocks, options, and cryptocurrency, after confirming the trading idea and order settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alpacahq/alpaca-skills/paper-trading-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alpacahq/alpaca-skills --skill paper-trading-mcp
Clone the repo
git clone --depth 1 https://github.com/alpacahq/alpaca-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alpaca-trading-paper-trading-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/paper-trading-mcp/github.svg)](https://agentmods.dev/skills/alpacahq/alpaca-skills/paper-trading-mcp)
Your own site
<a href="https://agentmods.dev/skills/alpacahq/alpaca-skills/paper-trading-mcp"><img src="https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/paper-trading-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alpaca-trading-paper-trading-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/alpacahq/alpaca-skills/paper-trading-mcp"><img src="https://agentmods.dev/badge/skills/alpacahq/alpaca-skills/paper-trading-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,932 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 25
    Skill accesses MCP server configuration files (mcp.json). MCP configs contain server URLs, authentication tokens, and tool definitions — reading them allows the skill to discover and potentially abuse other tool integrations.
    Fix: Remove all code or instructions that read MCP configuration files (mcp.json). MCP server details should be managed by the agent runtime, not read by individual skills.
  • high Agent Snooping · line 736
    Skill accesses MCP server configuration files (mcp.json). MCP configs contain server URLs, authentication tokens, and tool definitions — reading them allows the skill to discover and potentially abuse other tool integrations.
    Fix: Remove all code or instructions that read MCP configuration files (mcp.json). MCP server details should be managed by the agent runtime, not read by individual skills.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.09932
Opus 5 $0.00034 $0.04966
Sonnet 5 $0.00014 $0.01986
Haiku 4.5 $0.00007 $0.00993

Measured 12d ago against content hash a3d88b229765, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

alpaca-trading-paper-trading-mcp scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

- **NEVER** read the MCP config file wholesale to check that flag — the same `env` block holds the API keys. Extract the single field.
skills/trading-api/paper-trading-mcp/SKILL.md · 764 lines

How it starts

The opening of the file, as written. The whole thing — 764 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Alpaca Paper Trading — MCP Server Version

Use this skill when you want your AI agent to preview, submit, inspect, and manage paper-trading orders using the Alpaca Trading API MCP Server.

This skill is written for you, a Trading API user working with your own Alpaca paper-trading account. Your agent calls MCP tools directly — no CLI installation or raw HTTP requests needed. The MCP server handles authentication and API communication.

This is the MCP-server-specific version. A generic (implementation-agnostic) version and a CLI version are also available as companion skills.


0 — How your AI agent should use this skill

  1. Start with the signal source. Whether it originates from a backtest result, a manual trading idea, a scheduled trigger, or a conversational request — identify what is driving the trade.
  2. Reiterate strategy logic and confirm with you. Your agent must restate the trading idea in its own words and wait for your confirmation before proceeding.
  3. Gather and confirm ALL configurations. Timing, asset class, symbol, side, quantity or notional amount, order type, time-in-force, limit/stop prices, extended-hours flag, risk controls (position limits, max order size, loss thresholds), and margin intent.
  4. Discover available MCP tools. Your agent must call GetDynamicTools to find the Alpaca MCP namespace and inspect available tool schemas before calling any tool. Tool names and parameters vary by MCP server implementation — never assume.
  5. Verify paper environment. Read env.ALPACA_PAPER_TRADE from the host's MCP config file — no tool exposes it — and require it to be absent, true, 1, or yes. Then confirm the account is active and unblocked. If paper mode cannot be proven, STOP immediately and tell you.
  6. Show a complete order preview table. Every parameter that will be sent to the order-placement tool must be visible to you before submission.
  7. Ask whether you want explicit confirmation before each order (default: ON). Respect your preference for the rest of the session.
  8. Submit via the order-placement tool for the asset class. Placement is split across stock, crypto, and option tools — select by asset class, then pass the confirmed parameters exactly as previewed.
  9. Monitor with the order lookup and order list tools. Report fills, rejections, partial fills, and portfolio impact.
  10. Never place live trades. Verify paper environment before every submission.

Read the full file on GitHub · 764 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 764 lines · 69 tokens per session scan B a3d88b229765

Subscribe to this mod's changes

alpaca-trading-paper-trading-mcp is a skill published in the GitHub repository alpacahq/alpaca-skills (147 stars, last pushed 4d ago), licensed Apache-2.0. It adds 69 tokens to every session and 9,932 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.