# CheapestInference

An MCP server for the CheapestInference model pool: your agent reads live pricing, gets a USDC quote and buys a subscription on Base with no browser in the loop.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 362 installs
- Author: cheapestinference
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cheapestinference/mcp
- Updated: 2026-07-11
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/cheapestinference

## What it does

The server is remote and stateless over Streamable HTTP. Connecting needs no credentials, because the management tools take your API key as an argument instead. Two read-only tools cover the catalogue: `list_pools` returns active pools with their USDC price per block, `get_pool` returns the models and daily blocks inside one pool.

Buying is a chain of tool calls. Ask for a quote, send the USDC transfer on Base, sign the claim message from the wallet that paid, then confirm with `tx_hash`, `pool_slug`, `blocks` and `signature`. The reply carries your API key. Inference traffic does not pass through MCP; it goes to the OpenAI-compatible base URL `https://api.cheapestinference.com/v1`, and `get_connection_info` returns paste-ready snippets for Claude, the OpenAI SDK or curl.

A signature from a wallet other than the paying one fails confirmation. USDC purchases cover 30 days once and renewing means running the flow again, while a card subscription started with `get_card_checkout_link` renews on its own.

## Requirements
- Remote server: `https://mcp--cheapestinference.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp--cheapestinference.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add cheapestinference --url https://mcp--cheapestinference.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "cheapestinference": {
            "url": "https://mcp--cheapestinference.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "cheapestinference": {
            "type": "http",
            "url": "https://mcp--cheapestinference.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http cheapestinference https://mcp--cheapestinference.run.tools
```

## When to use it
- check live pool prices before committing to a subscription
- get an exact USDC amount and the Base address to pay
- buy a subscription from an agent wallet and receive an API key
- look up reserved blocks and expiry for an existing key
- copy a client snippet for the OpenAI-compatible endpoint

## Example prompts
- List the CheapestInference pools with the USDC price per block.
- Get a crypto quote for the Unlimited pool with all three blocks and confirm the payment once I send the USDC.
- Show me the connection snippet for `https://api.cheapestinference.com/v1` in Cursor.

## Similar
- [fetcher](https://affpapa.org/en/nevibecode/skills/fetcher.md) — skill · 4700 installs
- [Spraay](https://affpapa.org/en/nevibecode/mcp/spraay.md) — MCP server · 1864 installs
- [BrainChain](https://affpapa.org/en/nevibecode/mcp/brainchain.md) — MCP server
- [Coal - Payments for AI agents](https://affpapa.org/en/nevibecode/mcp/coal-payments-for-ai-agents.md) — MCP server · 1558 installs
- [x402 economy tools](https://affpapa.org/en/nevibecode/mcp/x402-economy-tools.md) — MCP server
- [x402 Gateway — ScriptMasterLabs](https://affpapa.org/en/nevibecode/mcp/x402-gateway-scriptmasterlabs.md) — MCP server · 223 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
