Back to Browse

Ruff Lint X402 MCP Server

Developer ToolsUse Caution4.5MCP RegistryLocal
Free

Server data from the Official MCP Registry

Ruff Python linting for AI agents, pay-per-call via x402 ($0.005 USDC on Base).

About

Ruff Python linting for AI agents, pay-per-call via x402 ($0.005 USDC on Base).

Security Report

4.5
Use Caution4.5High Risk

The server is a thin MCP wrapper that forwards Python source passed to lint_python to a third-party x402 linting API and signs payments with a wallet key from EVM_PRIVATE_KEY. Its permissions match its stated purpose, and the private key is not logged or hardcoded. The main concerns are that user code leaves the machine by design, and that the LINT_ENDPOINT override could redirect paid requests and code to an arbitrary host. Supply chain analysis found 6 known vulnerabilities in dependencies (0 critical, 4 high severity). Package verification found 1 issue.

3 files analyzed · 14 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

wallet_signing

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Private key of a Base wallet with USDC used to pay per callRequired

Environment variable: EVM_PRIVATE_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-divine-software-creations-ruff-lint-x402": {
      "env": {
        "EVM_PRIVATE_KEY": "your-evm-private-key-here"
      },
      "args": [
        "-y",
        "@divine-software-creations/ruff-lint-x402-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

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.

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

Reviews

No reviews yet

Be the first to review this server!