Kritisi Solidity Audit
MCP server that runs Solidity security audits, NatSpec docs and import merging from AI
Kritisi Solidity Audit is an open-source MCP server for crypto security. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 1.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-kritisi --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx -y mcp-kritisiAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-kritisi": {
"command": "npx",
"args": [
"-y",
"mcp-kritisi"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp-kritisi --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx -y mcp-kritisiOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-kritisi]
command = "npx"
args = ["-y", "mcp-kritisi"]
env = { OPENROUTER_API_KEY = "<OPENROUTER_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-kritisi": {
"command": "npx",
"args": [
"-y",
"mcp-kritisi"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
OPENROUTER_API_KEYOpenRouter API key used by the audit and NatSpec tools. May also be supplied through the kritisi user config.OPENROUTER_MODELOpenRouter model ID. Defaults to the kritisi default model.
About Kritisi Solidity Audit
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.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
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_importsName suggests: changes
- Merge a Solidity file's imports into one file.
- show_configName suggests: reads
- Inspect effective provider configuration with keys redacted.
What it does
- 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
Pricing
Open source
Kritisi Solidity Audit 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.