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: x402-bazaar-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

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Code linting and style checking tools for AI agents, exposed as an MCP server. Supports style checks, naming conventions, complexity analysis, dead code detection, and import analysis.
    50 npm
    MIT
  • A
    license
    B
    quality
    A
    maintenance
    MCP server exposing x402 Bazaar's paid Base APIs (token risk/honeypot, prices, gas, wallet intel, tx decode + AI utilities) as agent tools. Your agent pays per call in USDC over x402 โ€” no API keys, no signup.
    17
    159 npm
    MIT
  • A
    license
    B
    quality
    F
    maintenance
    An MCP server providing 22 pay-per-call utility tools for AI agents (scrape, validate, embed, store, moderate, notify, convert, prevent loops) without accounts or API keys, using USDC payments via the x402 protocol.
    17
    75 npm
    1
    MIT