Skip to main content
MCP server CX Codex

mcp-l402-gate — Claude Code MCP server: what it does, how to install

mcp-l402-gate is an MCP server for Claude Code that verifies agent identity and manages paid access through L402 Lightning payments, Proof-of-Work, and Nostr scores.

no license 270 installs updated 2026-05-10

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.tools
Open on GitHub

What mcp-l402-gate does

This server exposes paywall and identity verification endpoints directly to client agents. The free tier uses a Proof-of-Work mechanism: l402_gate_challenge provides a nonce and difficulty target, and once the client finds a matching SHA-256 hash, l402_gate_verify issues a five-minute access token. The paid route generates a bolt11 invoice or checks invoice settlement.

The included l402_gate_score tool fetches the Depth-of-Identity metric for any Nostr public key using PowForge oracle data. Server administrators can combine price gates with minimal identity score requirements in a single workflow.

All calls depend on network connectivity to gate.powforge.dev and identity.powforge.dev, so blocked outbound traffic stops all verification.

What it helps with

  • gate tool execution behind instant Lightning microtransactions
  • offer a free access tier validated by computing SHA-256 PoW puzzles
  • verify Nostr public key reputation before running expensive logic
  • issue temporary access tokens without maintaining user databases

Example prompts for the agent

  • Request a fresh challenge with l402_gate_challenge and verify the PoW solution
  • Generate a bolt11 Lightning invoice by calling l402_gate_verify
  • Query the Depth-of-Identity metrics for this Nostr pubkey using l402_gate_score

How to install mcp-l402-gate

Platform CLI: remote server

claude mcp add --transport http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-l402-gate

How to install mcp-l402-gate in Claude Code?

Run claude mcp add --transport http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.tools in your terminal.

What does mcp-l402-gate do?

It lets agents pay per API call using L402 Lightning invoices, earn temporary tokens via PoW, or check Nostr identity scores.

Does the server require extra SDK dependencies?

No, the implementation uses standard library components without a separate MCP SDK dependency.

Similar MCP servers

All MCP servers for Security →

Project sponsors

Companies that keep this analytics open