# mcp-l402-gate

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 270 installs
- Author: zekebuilds
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/zekebuilds/mcp-l402-gate
- Updated: 2026-05-10
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-l402-gate

## What it 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.

## Requirements
- Remote server: `https://mcp-l402-gate--zekebuilds.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add mcp-l402-gate --url https://mcp-l402-gate--zekebuilds.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-l402-gate": {
            "url": "https://mcp-l402-gate--zekebuilds.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-l402-gate": {
            "type": "http",
            "url": "https://mcp-l402-gate--zekebuilds.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http mcp-l402-gate https://mcp-l402-gate--zekebuilds.run.tools
```

## When to use it
- 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
- 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`

## Similar
- [Lightning Enable MCP Server](https://affpapa.org/en/nevibecode/mcp/lightning-enable-mcp-server.md) — MCP server · ★ 9 repo stars
- [402-mcp](https://affpapa.org/en/nevibecode/mcp/402-mcp.md) — MCP server
- [captcha-mcp](https://affpapa.org/en/nevibecode/mcp/captcha-mcp.md) — MCP server · 4324 installs
- [lightning-memory](https://affpapa.org/en/nevibecode/mcp/lightning-memory.md) — MCP server · ★ 9 repo stars
- [SaturnZap](https://affpapa.org/en/nevibecode/mcp/saturnzap.md) — MCP server · ★ 6 repo stars
- [SatGate – Economic Firewall for AI Agents](https://affpapa.org/en/nevibecode/mcp/satgate-economic-firewall-for-ai-agents.md) — MCP server · ★ 11 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
