# Inference MCP

> Inference MCP is a paid MCP server for ai models and llm tooling. Pay-per-token Claude and Grok inference for agents, settled in BSV or XRP. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI
- **Repository:** https://github.com/bsvkey/inference-mcp
- **MCP Registry name:** io.github.BSVKey/inference-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

Payment is the point of this server. An agent can draw down a prepaid channel funded once on-chain in BSV, pay each request on its own through x402 with a BSV key, or pay per call in XRP after getting a quote. Nothing runs locally: the npm package is a thin HTTP client for the gateway at inference.bsvkey.com, and the same six tools are available as a hosted remote endpoint.

Each channel call returns a signed usage receipt, and the npm package checks it offline. It confirms the receipt belongs to your channel, that the sequence has no replay or gap, that totals stay within the funded amount, and that the charge matches the published rate and a token count recomputed from the exact bytes. If the key-pinning endpoint is unreachable the result is unknown, not trusted. Setting BSVKEY_FUNDED_SATS and BSVKEY_RECEIPT_STATE strengthens the check across restarts.

The hosted server never accepts a private key. Payments there take two steps: get the quote, sign it in your own wallet, then call again with the payment. Errors come back in one fixed shape so an agent can branch on the code.

## Features

- **Prepaid channel:** Fund once on-chain, then draw down per token with the infer tool.
- **Per-call BSV payment:** x402_infer pays each request with a funded BSV key and no channel.
- **XRP payment:** xrp_infer quotes in XRP and signs one payment locally.
- **Verifiable metering:** Signed receipts are checked offline against the published rate.
- **Model listing:** list_models works with no key.
- **Hosted or local:** Run via npm with npx or connect to the hosted endpoint.

## Good for

- Let an unattended agent buy model calls without a card or account
- Audit exactly what a metered inference call cost
- Pay for a single request in BSV or XRP instead of prefunding
- Run Claude or Grok from an agent host through one gateway

## Install

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

```sh
claude mcp add --transport http inference-mcp https://inference.bsvkey.com/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": {
    "inference-mcp": {
      "type": "http",
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://inference.bsvkey.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "type": "http",
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://inference.bsvkey.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

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

```sh
codex mcp add inference-mcp --url https://inference.bsvkey.com/mcp
```

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

```toml
[mcp_servers.inference-mcp]
url = "https://inference.bsvkey.com/mcp"
```

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "httpUrl": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http inference-mcp https://inference.bsvkey.com/mcp

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "serverUrl": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "url": "https://inference.bsvkey.com/mcp",
      "transport": "http"
    }
  }
}
```

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": {
    "inference-mcp": {
      "type": "streamableHttp",
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "inference-mcp": {
      "url": "https://inference.bsvkey.com/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": {
    "inference-mcp": {
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://inference.bsvkey.com/mcp
```

Enter a Name (for example "Inference MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "inference-mcp": {
      "type": "http",
      "url": "https://inference.bsvkey.com/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools reads data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_models` (name suggests: reads): Lists available models; needs no key.
- `infer`: Runs inference billed per token against a prepaid channel.
- `channel_balance`: Shows the balance of a funded channel.
- `open_channel`: Explains how to open and fund a channel; needs no key.
- `x402_infer`: Pays per call in BSV through x402 with a funded key.
- `xrp_infer`: Pays per call in XRP with a locally signed payment.

## FAQ

### Which tools does Inference MCP provide?

list_models, infer, channel_balance, open_channel, x402_infer and xrp_infer.

### Does the server hold my keys?

No. The npm client signs locally, and the hosted server refuses wif or xrpSeed arguments.

### What does Inference MCP need to run?

Node 18 or newer for the package; xrp_infer needs Node 20.19 or 22.12 or newer.

### What happens if the provider fails?

With infer the call returns upstream_failed and nothing is charged.

### Is Inference MCP free?

No. Inference MCP is a paid product.

### How do I add Inference MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http inference-mcp https://inference.bsvkey.com/mcp

### What are the best alternatives to Inference MCP?

The closest alternatives to Inference MCP are headroom, omniget, next-ai-draw-io, mcp-for-blender and Claude Code Ultimate Guide.

## Where this comes from

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

## Alternatives

- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [tyk](https://ai-powered.com/mcp/tyk): tyk is an open-source MCP server for developer tools.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.

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