Skip to main content
Glama
Ruff Lint x402 MCP Server

Ruff Lint x402 MCP Server

Ruff Python Lint API β€” pay-per-call for AI agents (MCP + x402)

npm

Give any AI agent instant Python linting with ruff. No signup, no API key, no subscription: $0.005 USDC per call, paid automatically over x402 on Base.

  • ⚑ Fast: ruff-powered, results in milliseconds

  • πŸ”’ Safe: code is statically analyzed, never executed

  • πŸ€– Agent-native: MCP tool lint_python for Claude, Cursor, Windsurf, Gemini/Antigravity and any MCP client

  • πŸ’Έ Pay only for what you use; the facilitator covers gas, so your wallet only needs USDC

Landing page: https://stevensaavedra.com/lint Β· API: POST https://api.stevensaavedra.com/lint Β· Verified on PayAPI Market

MCP install

{
  "mcpServers": {
    "ruff-lint": {
      "command": "npx",
      "args": ["-y", "@divine-software-creations/ruff-lint-x402-mcp"],
      "env": { "EVM_PRIVATE_KEY": "0x<key of a Base wallet holding a little USDC>" }
    }
  }
}

Use a dedicated low-balance wallet. $1 of USDC covers 200 lint calls.

Related MCP server: obolpay-x402-mcp

Direct HTTP (x402)

curl -i -X POST https://api.stevensaavedra.com/lint \
  -H 'content-type: application/json' \
  -d '{"code":"import os\nx = 1","language":"python"}'
# -> 402 Payment Required with x402 payment requirements.
# Any x402 client (e.g. @x402/fetch) pays and retries automatically.

Tool

lint_python({ code: string (≀200KB), filename?: string }) β†’ ruff diagnostics (rule code, message, line/column, fix hints).

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers