# x402lint

> x402lint is an open-source MCP server for developer tools. Lint the unpaid 402 challenge of an x402 payment endpoint before you list it. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, Web
- **Website:** https://x402lint.something-agent.workers.dev
- **Repository:** https://github.com/something-agent/x402lint
- **MCP Registry name:** io.github.something-agent/x402lint
- **Categories:** developer tools, finance and payments
- **Listing updated:** 2026-11-14

## About

x402lint probes the unpaid path of a pay-per-request endpoint and reports what a client or directory would trip over. It never pays and never signs, so it cannot test settlement; a clean result is explicitly not proof that revenue works.

Checks cover the challenge itself (version, accepts fields, CAIP-2 network, payTo format and checksum, integer base-unit amounts, EIP-712 hints for USDC), transport details such as GET versus POST agreement, redirects, cacheability and CORS headers, and discovery files like `/.well-known/x402`, `/llms.txt` and `/openapi.json`. A directory readiness mode lists what x402dash, x402scan, the402 and the Bazaar were known to check.

Results come as a verdict of ok, warn or fail with findings that carry an id, severity and fix. The same checks are available over a plain HTTP API and over the three MCP tools. A sibling CLI, paidpath, covers the paid path against your own endpoint.

## Features

- **Challenge checks:** Validates fields, network, payTo, amount and EIP-712 hints.
- **Transport checks:** Looks at redirects, caching, content type and CORS.
- **Discovery checks:** Compares well-known files with the live challenge.
- **Directory readiness:** Shows per-directory listing checks with sources.
- **Lint a held challenge:** Check a pasted payment-required object with no network call.
- **CI friendly:** Return a verdict that a script can test with jq.

## Good for

- Check an x402 endpoint before announcing it
- Add a lint step to CI for a paid API
- See whether a directory would accept an endpoint
- Debug a CORS problem on a 402 response

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http x402lint https://x402lint.something-agent.workers.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://x402lint.something-agent.workers.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "x402lint": {
      "url": "https://x402lint.something-agent.workers.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "x402lint": {
      "type": "http",
      "url": "https://x402lint.something-agent.workers.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "x402lint": {
      "serverUrl": "https://x402lint.something-agent.workers.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "x402lint": {
      "type": "http",
      "url": "https://x402lint.something-agent.workers.dev/mcp"
    }
  }
}
```

## Tools

- `lint_x402_endpoint`: Fetches and lints an endpoint's unpaid 402 challenge.
- `check_directory_readiness`: Reports readiness for known x402 directories.
- `lint_payment_required`: Lints a payment-required challenge you already hold, with no network call.

## FAQ

### Does it make payments?

No. It never pays or signs, so it cannot test settlement.

### What does a clean lint mean?

Only that the unpaid path passes; it does not show that the route settles or delivers.

### Which MCP tools are there?

lint_x402_endpoint, check_directory_readiness and lint_payment_required.

### Is it open source?

The source is MIT licensed.

### Is x402lint free?

Yes. x402lint is open source, so you can use and self-host it for free.

### How do I add x402lint to Claude Code?

Run this command in your terminal: claude mcp add --transport http x402lint https://x402lint.something-agent.workers.dev/mcp

### What are the best alternatives to x402lint?

The closest alternatives to x402lint are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/x402lint
