Skip to content
MCP server

Xstocks

Buy tokenized US stocks (xStocks) on Solana via Jupiter DEX in USDC. Daily cap. Dry-run…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.4
Listing updated
5 days ago

About Xstocks

Xstocks is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Buy tokenized US stocks (xStocks) on Solana via Jupiter DEX in USDC. Daily cap. Dry-run default.

Install

Run in a terminal

claude mcp add xstocks --env SOLANA_WALLET_PRIVATE_KEY='<SOLANA_WALLET_PRIVATE_KEY>' -- npx -y xstocks-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "xstocks": {
      "command": "npx",
      "args": [
        "-y",
        "xstocks-mcp"
      ],
      "env": {
        "SOLANA_WALLET_PRIVATE_KEY": "<SOLANA_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "xstocks": {
      "command": "npx",
      "args": [
        "-y",
        "xstocks-mcp"
      ],
      "env": {
        "SOLANA_WALLET_PRIVATE_KEY": "<SOLANA_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "xstocks": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "xstocks-mcp"
      ],
      "env": {
        "SOLANA_WALLET_PRIVATE_KEY": "<SOLANA_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "xstocks": {
      "command": "npx",
      "args": [
        "-y",
        "xstocks-mcp"
      ],
      "env": {
        "SOLANA_WALLET_PRIVATE_KEY": "<SOLANA_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "xstocks": {
      "command": "npx",
      "args": [
        "-y",
        "xstocks-mcp"
      ],
      "env": {
        "SOLANA_WALLET_PRIVATE_KEY": "<SOLANA_WALLET_PRIVATE_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • SOLANA_WALLET_PRIVATE_KEYBase58 Solana wallet private key (Phantom export). Leave unset for dry-run mode.
  • XSTOCKS_ALLOW_LIVESet to 'yes-i-understand' to enable real swaps. Dry-run by default.

Pricing

Open source

Xstocks FAQ

Is Xstocks free?

Yes. Xstocks is open source, so you can use and self-host it for free.

How do I add Xstocks to Claude Code?

Run this command in your terminal: claude mcp add xstocks --env SOLANA_WALLET_PRIVATE_KEY='<SOLANA_WALLET_PRIVATE_KEY>' -- npx -y xstocks-mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers