Skip to content
MCP server

xStocker

Build unsigned buy and sell transactions for tokenized US stocks on Solana

Runs locallyStatus and history
Install
Pricing
Free
Platforms
CLI, API
Runs
Locally
Version
0.2.0
Listing updated
1 day ago

About xStocker

xStocker is a free MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

xStocker prepares orders for xStocks, tokenized U.S. stocks and ETFs on Solana, and stops short of executing them. The server never sees a private key. An agent with its own wallet signs and sends the transaction itself, while a person using Phantom or another Solana wallet is handed a Solana Pay link or QR code and approves the trade there.

The local server ships as the @xstocker/mcp npm package over stdio, and the same functions are available as a stateless HTTP API and a TypeScript SDK. No account, API key or OAuth is needed. A partner can add a Solana wallet address to earn 0.25% of purchases made through a Buy xStocks iframe widget, on top of a default 0.25% trader fee.

On a sell, the amount is in the units the wallet shows, and the API never sells more than the wallet holds.

Install

Run in a terminal

claude mcp add agent-mcp -- npx -y @xstocker/mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@xstocker/mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@xstocker/mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@xstocker/mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@xstocker/mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@xstocker/mcp"
      ]
    }
  }
}

What it does

Non-custodial orders
Prepares transactions without holding keys or executing trades.
Solana Pay links
Gives people a link or QR code to approve in their own wallet.
Embeddable widget
An iframe lets a site offer Buy xStocks with USDC or SOL.
Partner fees
A partner wallet receives 0.25% on-chain in the same transaction.
Asset list
A static assets.json file lists supported xStocks.

Good for

  • Let an agent with its own wallet trade tokenized stocks
  • Hand a user a Solana Pay QR code to approve a purchase
  • Embed a buy widget on a finance site
  • Build trading flows with the TypeScript SDK

Pricing

Free

No account or API key; trades carry a 0.25% default fee

Prices change. Check xstocker.com before you buy.

xStocker FAQ

Do I need an account or API key?

No. The page states no account, API key or OAuth is required.

Does it hold funds?

No. It is non-custodial and only builds transactions for a wallet to sign.

How is it installed?

As the @xstocker/mcp npm package, which is also listed in the official MCP Registry.

What fee applies?

A standard fee of 0.25% by default, plus an optional 0.25% partner fee.

Is xStocker free?

Yes. xStocker is free to use.

How do I add xStocker to Claude Code?

Run this command in your terminal: claude mcp add agent-mcp -- npx -y @xstocker/mcp

What are the best alternatives to xStocker?

The closest alternatives to xStocker are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Quantivex Research and Provyan.

Alternatives to xStocker

  1. Remote MCP server exposing the Vybe Solana API to AI clients and code editors

    • 44 tools
    • Remote
    • 2.8K GitHub stars
    • Finance and payments
  2. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  3. Budget Tracker

    MCP server

    Local MCP expense ledger that logs receipts and mileage, splits VAT and prepares rebilling

    • 14 tools
    • Remote
    • Freemium
    • 2 GitHub stars
    • Finance and payments
  4. Stock scores, what a price assumes, earnings quality and quiet profit revisions

    • 11 tools
    • Remote
    • Free
    • Finance and payments
  5. Provyan

    MCP server

    Backtested crypto signal results on 94 coins, with luck odds and sources

    • 4 tools
    • Remote
    • Free
    • Finance and payments
  6. TribuJus

    MCP server

    Read-only access to UK bank accounts, cards and transactions via TrueLayer Open Banking

    Not checked yet
    • 5 tools
    • Remote
    • Open source
    • Legal and government