Switch402
MCP gateway to a pay-per-call marketplace for AI inference and utility tools
Switch402 is a freemium MCP server for mcp data access. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- API, CLI, Self-hosted
- Runs
- Locally
- Version
- 0.1.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add switch402-mcp -- npx -y switch402-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"switch402-mcp": {
"command": "npx",
"args": [
"-y",
"switch402-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"switch402-mcp": {
"command": "npx",
"args": [
"-y",
"switch402-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"switch402-mcp": {
"command": "npx",
"args": [
"-y",
"switch402-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add switch402-mcp -- npx -y switch402-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.switch402-mcp]
command = "npx"
args = ["-y", "switch402-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"switch402-mcp": {
"command": "npx",
"args": [
"-y",
"switch402-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "switch402-mcp": { "command": "npx", "args": [ "-y", "switch402-mcp" ] } } }Or run: gemini mcp add -s user switch402-mcp npx -- -y switch402-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "switch402-mcp": { "command": "npx", "args": [ "-y", "switch402-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "switch402-mcp": { "command": "npx", "args": [ "-y", "switch402-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "switch402-mcp": { "command": "npx", "args": [ "-y", "switch402-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "switch402-mcp": { "command": "npx", "args": [ "-y", "switch402-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "switch402-mcp": { "command": "npx", "args": [ "-y", "switch402-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
SWITCH402_URLSwitch402 grid server base URL
About Switch402
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.
What it does
- 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
Pricing
Freemium
Pay per call or per 1M tokens; no subscription listed.
Prices change. Check switch402.fly.dev before you buy.
Switch402 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.