mcpField
R
RevClamp MCP Server

RevClamp MCP Server

Remote
github.com/revclampFinance
Repository

About RevClamp MCP Server

RevClamp MCP Server is an open-source server and CLI for B2B billing, VAT, dispute evidence and webhook checks. Its nine deterministic tools run locally without network access or an API key by default, with optional hosted workspace features when configured.

Key features

  1. 01Audit revenue leakage and ghost usage
  2. 02Stage Stripe dispute evidence for CE 3.0
  3. 03Validate EU and XI VAT identifiers
  4. 04Reconcile B2B Net-15/30/60 terms
  5. 05Verify signatures and simulate webhook replay
  6. 06Calculate ROI and lint dispute evidence

Use cases

  1. 01Review usage and billing snapshots for revenue gaps
  2. 02Prepare and lint Visa CE 3.0 dispute evidence
  3. 03Check EU VAT formats or use live VIES mode
  4. 04Reconcile deposits and credit notes for net terms

MCP support

Exposes nine B2B FinOps tools to MCP clients, including billing audits, VAT validation and webhook checks. Tools run locally by default; configuring `REVCLAMP_API_KEY` enables connection to the hosted MCP workspace.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://api.revclamp.com/api/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

RevClamp MCP Server & CLI (revclamp-mcp)

RevClamp Enterprise — B2B Revenue & Compliance Guardrails

revclamp-mcp is a standalone, zero-dependency Open-Source Model Context Protocol (MCP) Server & CLI (index.mjs + local_engine.mjs) implementing 9 deterministic B2B FinOps, Stripe 2025-03-31.basil, Visa CE 3.0, EU/XI VIES VAT, Shopify Plus B2B Net-15/30/60, and Webhook Security tools in pure Node.js.

  • 100% Local In-Process Execution (Default — Zero Network / Zero API Key Required): All 9 MCP tools (initialize, tools/list, and tools/call) execute locally in-process inside local_engine.mjs using pure Node.js (node:crypto HMAC-SHA256 verification, integer-cent double-entry accounting, 72-hour webhook replay state machines, and 18,000 UTF-16 code unit CE 3.0 linting). Zero network calls are ever made unless REVCLAMP_API_KEY or REVCLAMP_MCP_URL is explicitly configured.
  • Optional Hosted Cloud Workspace Sync (REVCLAMP_API_KEY): When REVCLAMP_API_KEY (rg_live_...) is configured, revclamp-mcp connects to RevClamp Enterprise (https://api.revclamp.com/api/mcp) to unlock the 90-day SQLite WAL usage & audit ledger, 24/7 autonomous Stripe dispute & entitlement webhook outbox, and real-time EU Commission VIES SOAP gateway consultation numbers.

Local Open-Core (local_engine.mjs) vs. Hosted Cloud (REVCLAMP_API_KEY)

CapabilityLocal Open-Core Default (Zero API Key)Hosted Cloud (REVCLAMP_API_KEY)
Execution & Network100% in-process (local_engine.mjs), zero network callsHTTPS JSON-RPC to https://api.revclamp.com/api/mcp (redirect: "error")
Usage & Audit StorageStateless evaluation of caller-supplied JSON snapshotsPersistent 90-day SQLite WAL ledger + Stripe historical backfill
Dispute & Entitlement ActionReturns non-destructive submit: false draft & revoke_entitlement decision24/7 autonomous Stripe webhook outbox (disputes.update & signed revoke webhooks)
EU & XI B2B VAT (VIES)Deterministic syntax & GR -> EL normalization (FORMAT_ONLY default, valid: null)Live EU Commission VIES SOAP consultation IDs + circuit-breaker retry queue (viesMode: "LIVE" + REVCLAMP_API_KEY)
Monthly Event TiersUnlimited local in-process evaluations (0 network cost)Free Sandbox (5,000 events/mo) · Starter $19/mo (100k) · Growth $59/mo (1M) · Scale $199/mo (5M)
Data Privacy (INV-SAAS-04)Nothing ever leaves your machineOnly explicit tools/call arguments are sent over TLS after local live-secret scrubbing (scanMcpClientPayloadForSecrets in index.mjs blocks sk_live_, non-test whsec_, shpat_ locally)

Open-Source MCP Tools Implemented in local_engine.mjs (9)

Tool NameDomainLocal In-Process Implementation (local_engine.mjs)Execution Mode
revclamp_audit_revenue_leakageStripe Billing & UsageEvaluates caller-supplied customer/usage arrays (demo: true for synthetic sample) and returns upgrade hooks when no workspace ledger is connectedLocal In-Process (or Optional Cloud Key)
revclamp_evaluate_ghost_usageStripe 2025-03-31.basilEvaluates multi-subscription customer snapshots (has_more: false enforced) and 0–14d dunning grace windows for unpaid API/LLM bleedLocal In-Process (or Optional Cloud Key)
revclamp_stage_stripe_dispute_ce3Visa 10.4 / CE 3.0Evaluates 120d–365d prior undisputed charges (ip_subnet/device_id overlap) against caller-supplied usageEvents (demo: true for sample) and stages a non-destructive submit: false draft (<= 18,000 UTF-16 code units)Local In-Process (or Optional Cloud Key)
revclamp_validate_eu_vat_viesEU & XI B2B VATNormalizes 27 EU member states + Northern Ireland (XI) VAT IDs (GR -> EL), checks syntax locally (FORMAT_ONLY, valid: null), simulates errorWrappers (demo: true), or queries live EU VIES (viesMode: "LIVE" + REVCLAMP_API_KEY)Local In-Process (or Optional Live VIES)
revclamp_reconcile_b2b_net_termsB2B Wholesale Net-30Reconciles Net-15/30/60 upfront deposits and credit notes using integer EUR-cent double-entry accountingLocal In-Process (or Optional Cloud Key)
revclamp_verify_webhook_signatureWebhook HMAC-SHA256Generates and verifies Stripe-Signature, X-Shopify-Hmac-Sha256, and X-RevClamp-Signature over raw UTF-8 bytes (node:crypto) with 300s replay checksLocal In-Process (or Optional Cloud Key)
revclamp_calculate_roi_and_plan_fit0% Take-Rate ROI & Plan FitCalculates monthly and annual B2B margin savings in integer USD cents vs. 25%–30% chargeback agencies and recommends the optimal tierLocal In-Process (or Optional Cloud Key)
revclamp_simulate_webhook_replayWebhook Replay & FSMSimulates subscription lifecycle webhooks against a 72h deduplication Set and monotonic createdSec guard vs. naive arrival-order handlersLocal In-Process (or Optional Cloud Key)
revclamp_lint_dispute_evidenceDispute Evidence UTF-16 & CE 3.0Lints evidence[access_activity_log] payloads against the 18,000 UTF-16 code unit ceiling, non-destructive CE 3.0 markers, and merchant note preservationLocal In-Process (or Optional Cloud Key)

Quick Start (Claude Desktop / Cursor / Windsurf)

Add revclamp-mcp to your claude_desktop_config.json or .cursor/mcp.json. By default, revclamp-mcp runs 100% locally in-process with zero network calls and zero API keys required:

{
  "mcpServers": {
    "revclamp": {
      "command": "npx",
      "args": ["-y", "github:revclamp/revclamp-mcp"]
    }
  }
}

(Optional) To connect to a live workspace on https://revclamp.com/dashboard, pass REVCLAMP_API_KEY in env or use the hosted Streamable HTTP endpoint (POST https://api.revclamp.com/api/mcp):

curl -sS -X POST https://api.revclamp.com/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

CLI Usage & <60s Local Smoke Check (--self-test)

# Run a <60s local CLI smoke check (verifies all 9 tool schemas & executes a local_engine.mjs sample audit with zero API key)
npx -y github:revclamp/revclamp-mcp#v1.20.6 --self-test

# List all 9 MCP tools and JSON schemas (runs locally in-process)
node index.mjs --list-tools

# Validate an EU or Northern Ireland (XI) B2B VAT ID (auto-converts Greece GR -> EL)
node index.mjs --check-vat GR123456789 DE

# Calculate 0% take-rate ROI and optimal flat-rate plan fit (runs locally in-process)
node index.mjs --calc-roi 10000 600 25 250000

# Simulate out-of-order webhook replay and 72-hour deduplication state machine (runs locally)
node index.mjs --sim-replay out_of_order_stale_update_after_cancel

# Lint Stripe dispute evidence UTF-16 code units and non-destructive CE 3.0 markers (runs locally)
node index.mjs --lint-evidence valid_ce3_non_destructive

# Verify webhook HMAC-SHA256 using REVCLAMP_WEBHOOK_SECRET from environment (runs locally)
REVCLAMP_WEBHOOK_SECRET="whsec_test_secret_revclamp_sandbox_2026" node index.mjs --verify-webhook stripe

# Invoke Visa CE 3.0 readiness staging locally (pass demo: true for synthetic sample or usageEvents for real logs)
node index.mjs --call revclamp_stage_stripe_dispute_ce3 '{"disputeId":"du_1Qxyz01","customerId":"cus_ent_88","disputeReason":"fraudulent","demo":true}'

Architecture & Engineering Deep-Dives (7 Post-Mortems & 8 Interactive Browser Tools)

1. Stripe 2025-03-31.basil Entitlement Guard & Visa CE 3.0 Two-Tier Routing

Stripe basil entitlement and CE 3.0 flowchart

2. EU VIES HTTP 200 OK Soft-Failure Circuit Breaker & B2B Net-Terms Reconciliation

EU VIES circuit breaker flowchart

3. Webhook HMAC-SHA256 Raw-Body Security, 72h Replay FSM & 0% Take-Rate ROI

Security & Resource Bounds

  • Local-First Deterministic Execution: Runs all 9 tools locally in-process inside local_engine.mjs with zero external npm dependencies.
  • Strict Origin Pinning (Cloud Mode): When REVCLAMP_API_KEY is provided, only connects to https://api.revclamp.com/api/mcp or https://revclamp.com/api/mcp over TLS (redirect: "error").
  • Bounded Execution: Enforces a hard 10,000ms request timeout (AbortSignal.timeout) and a 32,768-byte request/response payload cap.
  • Full LLM Reference: https://revclamp.com/llms-full.txt

License

MIT © RevClamp Enterprise

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.