npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ideadesignmedia/alpaca-mcp

v1.0.1

Published

MCP server exposing Alpaca Trading v2 and Market Data APIs for stocks and options. No streaming. Auth via env or CLI.

Readme

@ideadesignmedia/alpaca-mcp

MCP server that exposes Alpaca Trading v2 and Market Data for stocks and options. It assumes you have market data entitlements. No streaming is used. Responses are fetched and returned once complete.

Auth sources: CLI flags then env.

  • Flags: --key-id, --secret-key, --paper
  • Env: ALPACA_KEY_ID, ALPACA_SECRET_KEY, ALPACA_PAPER=true|false

Trading base URL is selected by paper flag. Market data base is always https://data.alpaca.markets.

Install

npm i -g @ideadesignmedia/alpaca-mcp

Usage

alpaca-mcp --paper   --key-id AK...   --secret-key SK...

You can also run it on demand without installing globally:

npx @ideadesignmedia/alpaca-mcp --paper --key-id AK... --secret-key SK...

Or via env:

ALPACA_PAPER=true ALPACA_KEY_ID=AK... ALPACA_SECRET_KEY=SK... alpaca-mcp

This starts an MCP server using @ideadesignmedia/open-ai.js. The transport is stdio; configure your MCP client to launch this binary and communicate over standard input/output.

MCP Client Configuration

Add the server entry to your MCP client configuration. The example below uses a generic JSON layout; adjust to match your client's configuration format.

{
  "servers": [
    {
      "id": "alpaca",
      "name": "Alpaca Trading",
      "command": "npx",
      "args": [
        "@ideadesignmedia/alpaca-mcp",
        "--paper",
        "--key-id",
        "AK...",
        "--secret-key",
        "SK..."
      ],
      "env": {
        "ALPACA_PAPER": "true"
      }
    }
  ]
}

If your client supports environment-variable secrets, prefer setting ALPACA_KEY_ID and ALPACA_SECRET_KEY through its secret manager instead of passing them as command arguments.

Tools

Trading micro tools:

  • alpaca.get_account, alpaca.get_account_config, alpaca.update_account_config, alpaca.list_account_activities
  • alpaca.list_assets, alpaca.get_asset
  • alpaca.list_positions, alpaca.get_position, alpaca.close_position, alpaca.close_all_positions
  • alpaca.create_order, alpaca.get_order, alpaca.list_orders, alpaca.cancel_order, alpaca.cancel_all_orders, alpaca.replace_order
  • alpaca.list_watchlists, alpaca.get_watchlist, alpaca.get_watchlist_by_name, alpaca.create_watchlist, alpaca.update_watchlist, alpaca.delete_watchlist, alpaca.add_to_watchlist, alpaca.remove_from_watchlist
  • alpaca.get_clock, alpaca.get_calendar
  • alpaca.get_portfolio_history
  • alpaca.list_announcements

Market data micro tools:

  • Stocks latest: alpaca.data.stocks.latest_bar, alpaca.data.stocks.latest_quote, alpaca.data.stocks.latest_trade, alpaca.data.stocks.snapshot, alpaca.data.stocks.snapshots
  • Stocks historical: alpaca.data.stocks.bars, alpaca.data.stocks.quotes, alpaca.data.stocks.trades
  • Options latest: alpaca.data.options.snapshots, alpaca.data.options.latest_trades, alpaca.data.options.latest_quotes, alpaca.data.options.chain
  • Options historical: alpaca.data.options.bars, alpaca.data.options.trades, alpaca.data.options.quotes
  • News: alpaca.data.news
  • Corporate actions: alpaca.data.corporate_actions

Macro tools:

  • alpaca.get_stock_info summary of asset meta, snapshot, latests, short history, news, corporate actions
  • alpaca.account_overview account, open orders, positions, clock
  • alpaca.lookup_asset convenience asset search

All tools are non streaming. Large result sets are paged. You can pass page_token on historical endpoints that support it.

Security

No keys are logged. Missing credentials produce a clear error. No persistence is used.

License

MIT