Skip to main content
ClaudeWave
BSVKey avatar
BSVKey

inference-mcp

Ver en GitHub

MCP server: pay-per-token Claude and Grok inference, settled in BSV, via the hosted inference.bsvkey.com gateway.

MCP ServersRegistry oficial0 estrellas0 forksJavaScriptMITActualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 9/8/2026
Install in Claude Code / Claude Desktop
Method: NPX · @bsvkey/inference-mcp
Claude Code CLI
claude mcp add inference-mcp -- npx -y @bsvkey/inference-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "inference-mcp": {
      "command": "npx",
      "args": ["-y", "@bsvkey/inference-mcp"],
      "env": {
        "BSVKEY_API_KEY": "<bsvkey_api_key>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
BSVKEY_API_KEY
Casos de uso

Resumen de MCP Servers

# @bsvkey/inference-mcp

An MCP server that lets any agent buy **Claude & Grok inference metered per token,
settled in BSV**, through the hosted gateway at **inference.bsvkey.com**. Zero
dependencies (Node ≥ 18, uses global `fetch`). It's a thin HTTP client — it never
holds your keys or runs models; every call is billed through the gateway.

Tools: `list_models`, `infer`, `channel_balance`, `open_channel`, `x402_infer`.

Two ways to pay: a **prepaid channel** (`infer`, fund once, draw down per token) or
**per call via x402** (`x402_infer` — no channel; the agent pays each request in BSV
with its own key). `x402_infer` needs a funded WIF (`wif` arg or `BSVKEY_WIF`) and the
optional `@bsvkey/x402-bsv-client` + `@bsv/sdk` packages (installed with this one).

**Verifiable metering.** Each `infer` call returns a signed usage receipt, and the
tool auto-verifies it offline (with the optional packages installed): the result
includes `receiptVerified` and `meterVerified` (`true`, `false` + `receiptCheck`,
or `null` if the verifier isn't installed). It recovers the broker key (pinned
from `GET /v1/receipt-key`); checks channel binding, a monotonic sequence (no
replay/gap), and running totals within the funded amount; **recomputes the charge**
from the published rate (you can never be overcharged); and **recomputes the token
count from the exact bytes** of your system/prompt and the completion, under the
pinned `bsvkey-meter/1` tokenizer. So the channel payment is on-chain and both the
meter and the charge are auditable, without trusting the broker's word. Spec:
https://inference.bsvkey.com/usage-receipts.md

## Quick start
1. **Fund a channel once** at https://inference.bsvkey.com (BRC-100 wallet, or
   load a key in-page). Copy the key it returns: `channelId:channelSecret`.
2. **Add the MCP server** to your agent host (below), with that key in
   `BSVKEY_API_KEY`.
3. Ask your agent to run inference — it calls `infer` and pays per token.

`list_models` and `open_channel` work with no key; `infer` and `channel_balance`
need a funded channel key.

## Install

Published on npm as **[@bsvkey/inference-mcp](https://www.npmjs.com/package/@bsvkey/inference-mcp)**.

### Claude Code
```bash
claude mcp add bsvkey-inference \
  --env BSVKEY_API_KEY=channelId:channelSecret \
  -- npx -y @bsvkey/inference-mcp
```

### Claude Desktop / Codex / any MCP host (JSON config)
```json
{
  "mcpServers": {
    "bsvkey-inference": {
      "command": "npx",
      "args": ["-y", "@bsvkey/inference-mcp"],
      "env": { "BSVKEY_API_KEY": "channelId:channelSecret" }
    }
  }
}
```
No npm? Grab the single-file server directly (`https://inference.bsvkey.com/mcp/server.js`) and use `"command": "node", "args": ["server.js"]`.

## Configuration (env)
| Var | Default | Meaning |
|---|---|---|
| `BSVKEY_BASE_URL` | `https://inference.bsvkey.com/v1` | Gateway base URL (set to a self-hosted deployment if you run your own). |
| `BSVKEY_API_KEY` | — | `channelId:channelSecret` for a funded channel. Optional; can also be passed per call as `apiKey`. |

## Verify it's wired (no key needed)
```bash
printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
  '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list_models","arguments":{}}}' \
  | node server.js
```

## Marketplace listing blurb
> **BSV Inference** — Pay-per-token Claude & Grok, settled in BSV. Prepay a channel
> once, then meter every token with no subscription, account, or card. OpenAI-
> compatible, optional live web search, on-chain settlement. MCP + portable SKILL.md.

## Publishing (operator)
- Live on npm under the `@bsvkey` org (owner: `interence`). First publish: v1.0.0.
- To ship an update: bump `version` in `package.json`, then
  `npm publish --access public` (2FA/security-key prompt applies).
- Canonical source: https://github.com/BSVKey/inference-mcp
- To list on a skills marketplace (e.g. bopen.ai), submit `SKILL.md` + this README.
ai-agentsbsvclaudegrokinferencemcpmicropaymentsmodel-context-protocolpay-per-tokenx402

Lo que la gente pregunta sobre inference-mcp

¿Qué es BSVKey/inference-mcp?

+

BSVKey/inference-mcp es mcp servers para el ecosistema de Claude AI. MCP server: pay-per-token Claude and Grok inference, settled in BSV, via the hosted inference.bsvkey.com gateway. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-07.

¿Cómo se instala inference-mcp?

+

Puedes instalar inference-mcp clonando el repositorio (https://github.com/BSVKey/inference-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar BSVKey/inference-mcp?

+

Nuestro agente de seguridad ha analizado BSVKey/inference-mcp y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene BSVKey/inference-mcp?

+

BSVKey/inference-mcp es mantenido por BSVKey. La última actividad registrada en GitHub es del 2026-09-07, con 0 issues abiertos.

¿Hay alternativas a inference-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega inference-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: BSVKey/inference-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/bsvkey-inference-mcp)](https://claudewave.com/repo/bsvkey-inference-mcp)
<a href="https://claudewave.com/repo/bsvkey-inference-mcp"><img src="https://claudewave.com/api/badge/bsvkey-inference-mcp" alt="Featured on ClaudeWave: BSVKey/inference-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a inference-mcp