MCP Server · Open Source · Free

blockhertz-mcp

Audit smart contracts and optimize gas usage inside your AI code editor. Cursor, VS Code Copilot, Windsurf, Claude Desktop — any MCP client.

$npx blockhertz-mcp

blockhertz-mcp is an MCP (Model Context Protocol) server that connects the Blockhertz AI Security API to AI code editors. Install it once and your AI assistant can audit smart contracts and optimize gas usage without leaving your IDE. Supports Solidity, Rust, Move, and Vyper. Works with Cursor, VS Code with GitHub Copilot, Windsurf, Claude Desktop, and any MCP-compatible client. Free tier: 3 audits per day — no credit card required.

0.1.3

Current Version

Free

3 Audits / Day

MIT

License

2 Tools

Audit + Gas

npm downloads

Last day

Last 7 days

Last 30 days

All-time

Add to Your Editor

Pick your editor and paste the config. Replace your-api-key with your Blockhertz API key.

~/.cursor/mcp.json
{
  "mcpServers": {
    "blockhertz": {
      "command": "blockhertz-mcp",
      "args": [],
      "env": {
        "BLOCKHERTZ_API_KEY": "your-api-key"
      }
    }
  }
}

Get your free API key at blockhertz.com/tools/dashboard

Available MCP Tools

Two tools your AI assistant can call after setup.

audit_contract

Audits a smart contract for security vulnerabilities. Supports Solidity, Rust, Move, and Vyper.

Parameters

code(string, required)— The contract source code
language(string, required)— One of: solidity, rust, move, vyper

Returns

Severity-ranked findings (Critical / High / Medium / Low / Info)

optimize_gas

Analyzes a Solidity contract for gas inefficiencies and returns an optimized version with annotations.

Parameters

code(string, required)— The Solidity contract source code

Returns

Optimized contract with GAS-OPT annotations + savings report

Works in Cursor, VS Code Copilot, Windsurf, Claude Desktop, and any MCP-compatible client

Same AI engine as the Blockhertz web auditor — Solidity, Rust, Move, Vyper

Free tier: 3 audits/day — no credit card required

Resources

Transparent Pricing

Free to Start. Scale When Ready.

blockhertz-mcp is free and open-source. Tool calls consume Blockhertz API credits.

Free

$0

Get Started

  • 3 MCP calls per day
  • Free credits on signup
  • All vulnerability classes
  • Solidity, Rust, Move, Vyper
Get Free API Key

Starter

$19

One-time

  • 5 audit credits
  • No daily limit
  • Perfect for small projects
  • No subscription
Buy Starter Pack
Best for Teams

Unlimited

$99/mo

Per month

  • Unlimited MCP calls
  • Highest-quality AI model
  • Perfect for teams + agents
  • Priority support
Go Unlimited

Each MCP tool call = 1 credit. Free API key at blockhertz.com/tools/dashboard/api-keys.

Start auditing from your editor

Get your free API key and install blockhertz-mcp in 30 seconds.

Get Free API Key

FAQ

Frequently Asked Questions

What is blockhertz-mcp?+

blockhertz-mcp is an MCP (Model Context Protocol) server that connects the Blockhertz AI Security API to AI code editors. Install it once and your AI assistant can audit smart contracts and optimize gas usage without leaving your IDE.

Which editors support blockhertz-mcp?+

Any MCP-compatible client works — including Cursor, VS Code with GitHub Copilot, Windsurf, and Claude Desktop. If your editor supports the Model Context Protocol, blockhertz-mcp works with it.

Is blockhertz-mcp free?+

Yes. Free tier gives 3 audits per day with no credit card required. Create a free account at blockhertz.com to track your usage. Upgrade to Pro for unlimited audits.

What smart contract languages does blockhertz-mcp support?+

blockhertz-mcp supports Solidity, Rust, Move, and Vyper — the same languages supported by the Blockhertz web auditor.

Do I need a Blockhertz account to use blockhertz-mcp?+

No account is required for anonymous use (1 audit/day). Create a free account to get 3 audits/day and an API key for editor integration.

How is blockhertz-mcp different from the web auditor?+

The web auditor runs at blockhertz.com/tools/ai-auditor in your browser. blockhertz-mcp runs inside your AI code editor via the Model Context Protocol — your AI assistant calls it as a tool, so you never leave your coding environment.

blockhertz-mcp — AI Smart Contract Auditor for Your Code Editor | Blockhertz