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.
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/mcpInstall in Cursor
{
"mcpServers": {
"bugiiiii11": {
"command": "npx",
"args": [
"-y",
"@reinconsole/mcp"
],
"env": {
"REIN_ENGINE_API_KEY": "<rein-engine-api-key>",
"REIN_PAYER_PRIVATE_KEY": "<rein-payer-private-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"bugiiiii11": {
"command": "npx",
"args": [
"-y",
"@reinconsole/mcp"
],
"env": {
"REIN_ENGINE_API_KEY": "<rein-engine-api-key>",
"REIN_PAYER_PRIVATE_KEY": "<rein-payer-private-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"bugiiiii11": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@reinconsole/mcp"
],
"env": {
"REIN_ENGINE_API_KEY": "<rein-engine-api-key>",
"REIN_PAYER_PRIVATE_KEY": "<rein-payer-private-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"bugiiiii11": {
"command": "npx",
"args": [
"-y",
"@reinconsole/mcp"
],
"env": {
"REIN_ENGINE_API_KEY": "<rein-engine-api-key>",
"REIN_PAYER_PRIVATE_KEY": "<rein-payer-private-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| 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 | — | yes | Bearer key for the engine, ideally an evaluate key narrowed to this agent. |
| REIN_PAYER_PRIVATE_KEY | — | yes | Agent 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.
Last commit (default branch)
2026-10-08 · 1d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
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.