# PYRESEC - AI Code Security Auditing

> PYRESEC - AI Code Security Auditing is a paid MCP server for security. Pay-per-scan code security audits for agents, paid in USDC through x402. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI
- **Website:** https://pyresec-agent-519576377065.us-central1.run.app/docs
- **Repository:** https://github.com/renaat-s/pyresec-agent
- **MCP Registry name:** io.github.renaat-s/pyresec-agent
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-16

## About

Instead of an account or subscription, PYRESEC charges per request. A call to an audit endpoint first returns a 402 Payment Required response with the amount and recipient, the client pays in USDC on Base, then resubmits the request with an X-PAYMENT header as proof.

There are three tiers. A quick scan costs $0.01 and returns the top three findings with CWE IDs and line numbers. A deep audit costs $0.50 and adds OWASP Top 10 analysis, dependency (SCA) scanning, logic-flaw detection and Solidity gas optimisation. A remediation run costs $5 and returns patched code with change explanations and security notes.

Besides the MCP endpoint, the README documents a Python x402 client, a plain curl flow and a GitHub Action for CI pipelines, plus Swagger and OpenAPI pages on the hosted instance.

## Features

- **Per-request pricing:** Three fixed prices from $0.01 to $5.00 with no subscription or account.
- **x402 USDC payments:** Payment proof travels in an X-PAYMENT header after a 402 response.
- **Quick scan tier:** Returns the top three findings by severity with CWE IDs and line numbers.
- **Deep audit tier:** Covers OWASP Top 10, SCA dependency scanning, logic flaws and Solidity gas optimisation.
- **Remediation tier:** Returns fully patched code with explanations of each change.
- **CI integration:** A GitHub Action runs a scan tier against a code path in a pipeline.

## Good for

- Spot-check a snippet for SQL injection before committing
- Audit a repository's dependencies and logic flaws before a release
- Let an autonomous agent pay for and run security scans without human billing setup
- Get auto-patched code for a flagged vulnerability
- Review Solidity contracts for security and gas issues

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http pyresec-agent https://pyresec-agent-519576377065.us-central1.run.app/mcp
```

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

```sh
https://pyresec-agent-519576377065.us-central1.run.app/mcp
```

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

```json
{
  "mcpServers": {
    "pyresec-agent": {
      "url": "https://pyresec-agent-519576377065.us-central1.run.app/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "pyresec-agent": {
      "type": "http",
      "url": "https://pyresec-agent-519576377065.us-central1.run.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pyresec-agent": {
      "serverUrl": "https://pyresec-agent-519576377065.us-central1.run.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pyresec-agent": {
      "type": "http",
      "url": "https://pyresec-agent-519576377065.us-central1.run.app/mcp"
    }
  }
}
```

## FAQ

### How much does a scan cost?

The README lists $0.01 for a quick scan, $0.50 for a deep audit and $5.00 for remediation.

### Do I need an account or API key?

No. Payment is made per request in USDC on Base using the x402 protocol.

### How do I connect it from an MCP client?

Add the remote URL https://pyresec-agent-519576377065.us-central1.run.app/mcp as a server entry.

### Can it run in CI?

Yes, the README shows a GitHub Action that runs a chosen tier against a code path.

### Is PYRESEC - AI Code Security Auditing free?

No. PYRESEC - AI Code Security Auditing is a paid product.

### How do I add PYRESEC - AI Code Security Auditing to Claude Code?

Run this command in your terminal: claude mcp add --transport http pyresec-agent https://pyresec-agent-519576377065.us-central1.run.app/mcp

### What are the best alternatives to PYRESEC - AI Code Security Auditing?

The closest alternatives to PYRESEC - AI Code Security Auditing 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/pyresec-ai-code-security-auditing
