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
claude mcp add --transport http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.toolsWhat 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_challengeand 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.toolsPlatform CLI: remote server
codex mcp add mcp-l402-gate --url https://mcp-l402-gate--zekebuilds.run.toolsConfig file
{
"mcpServers": {
"mcp-l402-gate": {
"url": "https://mcp-l402-gate--zekebuilds.run.tools"
}
}
}Config file
{
"servers": {
"mcp-l402-gate": {
"type": "http",
"url": "https://mcp-l402-gate--zekebuilds.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.toolsStep 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.