# Xstocks

> Xstocks is an open-source MCP server. Buy tokenized US stocks (xStocks) on Solana via Jupiter DEX in USDC. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/evidai/agent-payment-mcp
- **MCP Registry name:** io.github.evidai/xstocks
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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.

---
Source: https://ai-powered.com/mcp/xstocks
