# Kritisi Solidity Audit

> Kritisi Solidity Audit is an open-source MCP server for crypto security. MCP server that runs Solidity security audits, NatSpec docs and import merging from AI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/zororaka00/mcp-kritisi
- **MCP Registry name:** io.github.zororaka00/mcp-kritisi
- **Categories:** [crypto security](https://ai-powered.com/categories/crypto-security)
- **Listing updated:** 2026-11-23

## About

Kritisi connects Solidity security tooling to any MCP-compatible client, so an assistant can audit local contracts, whole Foundry-style folders, or verified contracts pulled from Etherscan. Findings are grouped by high, medium and low severity, and reports can be written as designed PDFs or Markdown files.

Beyond auditing, the server can add NatSpec comments to a file without touching it unless asked, flatten a contract with its imports, and report which AI provider and model are configured with API keys redacted. It supports OpenRouter, OpenAI, Anthropic and DeepSeek, and runs locally over stdio.

It suits developers and security reviewers who want audit passes inside their editor or agent workflow. Output is AI-assisted, so findings still need independent verification before anyone relies on them.

## Features

- **Single file audit:** Reviews one Solidity file and returns high, medium and low findings with an optional report.
- **Project folder audit:** Scans a directory of Solidity files, resolves entrypoints and imports, and audits the project.
- **Etherscan contract audit:** Fetches verified source by chain ID and address, resolves proxies, and audits the result.
- **NatSpec generation:** Adds NatSpec comments to Solidity source, returning the result or updating the file with a backup.
- **Import merging:** Flattens a Solidity file and its imports into a single source file.
- **Configuration inspection:** Shows effective provider settings with API keys redacted.

## Good for

- Run a security pass on a Solidity file from inside an AI assistant
- Audit an entire Solidity project before a release
- Review a verified contract deployed on an EVM chain
- Generate NatSpec documentation for contracts missing comments
- Flatten contracts with their imports for review or verification tools

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-kritisi --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx -y mcp-kritisi
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-kritisi --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx -y mcp-kritisi
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-kritisi]
command = "npx"
args = ["-y", "mcp-kritisi"]
env = { OPENROUTER_API_KEY = "<OPENROUTER_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' mcp-kritisi npx -- -y mcp-kritisi

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "mcp-kritisi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-kritisi"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `security_audit`: Audit a Solidity file with optional PDF or Markdown report.
- `audit_project`: Audit a folder of Solidity files.
- `audit_contract`: Audit a verified Etherscan contract by chain ID and address.
- `natspec_document`: Add NatSpec documentation to a Solidity file.
- `merge_imports` (name suggests: changes): Merge a Solidity file's imports into one file.
- `show_config` (name suggests: reads): Inspect effective provider configuration with keys redacted.

## FAQ

### Which AI providers are supported?

OpenRouter is the default. The server also supports OpenAI, Claude/Anthropic and DeepSeek.

### Are API keys passed as tool arguments?

No. Keys are read from environment variables or the user's kritisi config and are never accepted as tool parameters.

### Can audit_contract use unverified contracts?

No. Unverified contracts and unverified proxy implementations are rejected with an error.

### Does the tool check live on-chain token behaviour?

No. Audits are source-level reviews and do not simulate trades or check current token tax, liquidity locks or honeypot status.

### Is Kritisi Solidity Audit free?

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

### How do I add Kritisi Solidity Audit to Claude Code?

Run this command in your terminal: claude mcp add mcp-kritisi --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx -y mcp-kritisi

### What are the best alternatives to Kritisi Solidity Audit?

The closest alternatives to Kritisi Solidity Audit are Blockhertz MCP and Pentagonal MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Blockhertz MCP](https://ai-powered.com/mcp/blockhertz-mcp): Blockhertz MCP is a freemium MCP server for crypto security.
- [Pentagonal MCP](https://ai-powered.com/mcp/pentagonal-mcp): Pentagonal MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/kritisi-solidity-audit
