Skip to content
mcp/skillhub

Rein MCP Server

by bugiiiii11io.github.bugiiiii11/reinv0.6.1

Spend limits for AI agents that pay with x402: every paywall is policy-checked before a cent moves.

0Node.jsstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Active1d ago

Install Rein MCP server

Install in Claude Code

claude mcp add bugiiiii11 -e REIN_ENGINE_API_KEY='<rein-engine-api-key>' -e REIN_PAYER_PRIVATE_KEY='<rein-payer-private-key>' -- npx -y @reinconsole/mcp

Configuration

VariableRequiredSecretDescription
REIN_AGENT_FILE——Path to the rein-agent.json written by `npx @reinconsole/init` (engine URL, agent id, API key, wallet).
REIN_ENGINE_URL——Policy engine base URL. Required unless REIN_AGENT_FILE is set.
REIN_AGENT_ID——The one agent this server speaks for. Required unless REIN_AGENT_FILE is set.
REIN_ENGINE_API_KEY—yesBearer key for the engine, ideally an evaluate key narrowed to this agent.
REIN_PAYER_PRIVATE_KEY—yesAgent wallet key. Omit for advisory mode: policy is checked, nothing is paid.
REIN_NETWORK_PROFILE——testnet (default) or mainnet: which network's 402s this server will pay.

Freshness

Active — last maintenance signal 1d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-10-08 · 1d ago · GitHub

  2. Latest release

    no data · GitHub

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-10-08 · 1d ago · official registry · v0.6.1

FAQ

›How do I install the Rein MCP server in Claude Code?

Run: claude mcp add bugiiiii11 -e REIN_ENGINE_API_KEY='<rein-engine-api-key>' -e REIN_PAYER_PRIVATE_KEY='<rein-payer-private-key>' -- npx -y @reinconsole/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does Rein require an API key?

Yes. It expects REIN_ENGINE_API_KEY, REIN_PAYER_PRIVATE_KEY, of which 2 are secrets.

›Can I use Rein as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is Rein in the official MCP registry?

Yes, as io.github.bugiiiii11/rein.