# Switch402

> Switch402 is a freemium MCP server for mcp data access. MCP gateway to a pay-per-call marketplace for AI inference and utility tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Self-hosted
- **Website:** https://switch402.fly.dev
- **MCP Registry name:** io.github.AlbertPa00/switch402-mcp
- **Categories:** [mcp data access](https://ai-powered.com/categories/mcp-data-access)
- **Listing updated:** 2026-11-27

## About

Switch402 routes requests to AI model inference and small utility actions such as hashing, JSON validation, URL verification, web search and token reports. Buyers pay per call or per million tokens, and capacity comes from both the house pool and independent sellers who offer their own GPUs or skills.

Through the included npm package, an MCP client can discover the Switch402 grid and call its capabilities without manual setup. The same service also exposes an OpenAI-compatible base URL, so existing SDK code can point at it with a different key.

Sellers can register a local model with a single command and earn from idle hardware without opening ports. Payouts can be withdrawn over Lightning or USDC, and a public bounty board is available for tasks with automatic proof checks.

## Features

- **OpenAI-compatible endpoint:** Point an existing OpenAI SDK at the service base URL and use an API key to call available models.
- **Pay-per-call utility actions:** Hashing, JSON validation, markdown cleanup, URL verification and web search are billed per request.
- **Seller onboarding:** A command-line flow lets owners register a local model or skill and serve it to the network.
- **Automatic bounties:** Tasks can be posted with sha256 or HTTP notary verification that settles without manual review.
- **Live seller orderbook:** Current capabilities are listed with worker counts, floor prices and latency figures.

## Good for

- Calling small AI models from an app without managing provider accounts
- Adding cheap hashing or JSON checks to an agent workflow
- Earning from spare GPU capacity by serving a local model
- Verifying that a URL resolves before an agent acts on it
- Posting a bounty that pays out once a proof check passes

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add switch402-mcp -- npx -y switch402-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add switch402-mcp -- npx -y switch402-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.switch402-mcp]
command = "npx"
args = ["-y", "switch402-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user switch402-mcp npx -- -y switch402-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "switch402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "switch402-mcp"
      ]
    }
  }
}
```

## FAQ

### How do I connect an MCP client to Switch402?

Run the switch402-mcp package with the server URL set to the Switch402 grid, or set SWITCH402_URL to point at it.

### Which payment methods are used for seller payouts?

Earnings can be spent on the platform or withdrawn via Lightning or USDC.

### Do sellers need to open ports on their machines?

No, the seller command is described as working without port forwarding.

### Is Switch402 free?

Switch402 has a free plan, with paid plans for more usage or features.

### How do I add Switch402 to Claude Code?

Run this command in your terminal: claude mcp add switch402-mcp -- npx -y switch402-mcp

### What are the best alternatives to Switch402?

The closest alternatives to Switch402 are Switch402, 2s.io, Gate402 MCP, X402 Tools MCP and Minia2a MCP.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Switch402](https://ai-powered.com/mcp/switch402-2): Switch402 is a paid MCP server for ai models and llm tooling.
- [2s.io](https://ai-powered.com/mcp/2s-io): 2s.io is a paid MCP server for mcp data access.
- [Gate402 MCP](https://ai-powered.com/mcp/gate402-mcp): Gate402 MCP is a freemium MCP server for mcp data access.
- [X402 Tools MCP](https://ai-powered.com/mcp/x402-tools-mcp): X402 Tools MCP is a paid MCP server for mcp data access.
- [Minia2a MCP](https://ai-powered.com/mcp/minia2a-mcp): Minia2a MCP is a freemium MCP server for mcp data access.
- [TrollBridge MCP](https://ai-powered.com/mcp/trollbridge-mcp): TrollBridge MCP is an open-source MCP server for mcp data access.
- [x402 Tools](https://ai-powered.com/mcp/x402-tools-2): x402 Tools is a freemium MCP server for mcp data access.
- [Anchor X402](https://ai-powered.com/mcp/anchor-x402): Anchor X402 is a freemium MCP server for mcp data access.

---
Source: https://ai-powered.com/mcp/switch402-3
