Blockhertz MCP
MCP server bringing smart contract security audits and gas tips into your editor
Blockhertz MCP is a freemium MCP server for crypto security. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- VS Code, CLI, API
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.1.3
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add blockhertz-mcp --env BLOCKHERTZ_API_KEY='<BLOCKHERTZ_API_KEY>' -- npx -y blockhertz-mcpAdd --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": {
"blockhertz-mcp": {
"command": "npx",
"args": [
"-y",
"blockhertz-mcp"
],
"env": {
"BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"blockhertz-mcp": {
"command": "npx",
"args": [
"-y",
"blockhertz-mcp"
],
"env": {
"BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"blockhertz-mcp": {
"command": "npx",
"args": [
"-y",
"blockhertz-mcp"
],
"env": {
"BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"blockhertz-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"blockhertz-mcp"
],
"env": {
"BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_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 blockhertz-mcp --env BLOCKHERTZ_API_KEY='<BLOCKHERTZ_API_KEY>' -- npx -y blockhertz-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.blockhertz-mcp]
command = "npx"
args = ["-y", "blockhertz-mcp"]
env = { BLOCKHERTZ_API_KEY = "<BLOCKHERTZ_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"blockhertz-mcp": {
"command": "npx",
"args": [
"-y",
"blockhertz-mcp"
],
"env": {
"BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>" } } } }Or run: gemini mcp add -s user -e BLOCKHERTZ_API_KEY='<BLOCKHERTZ_API_KEY>' blockhertz-mcp npx -- -y blockhertz-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_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": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_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": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_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": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_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": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "blockhertz-mcp": { "command": "npx", "args": [ "-y", "blockhertz-mcp" ], "env": { "BLOCKHERTZ_API_KEY": "<BLOCKHERTZ_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
BLOCKHERTZ_API_KEYYour Blockhertz API key from blockhertz.com/dashboardRequired
About Blockhertz MCP
Blockhertz MCP connects an AI code editor to Blockhertz's smart contract analysis service. Once installed through npm and given an API key, an assistant such as Copilot or Claude can request a security audit of a contract or a gas optimization pass directly from the chat panel, without leaving the file being edited.
The server exposes two tools. The audit tool covers Solidity, Rust, Vyper and Move code, while the gas tool currently targets Solidity. Each call draws one credit from the owner's Blockhertz plan, so usage is metered per request.
It suits smart contract developers who want an early security and cost review while writing code, and teams that already work in VS Code, Cursor, Windsurf or Claude Desktop. The server is released under the MIT licence.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 names don't say.
From the server's own tool labels and tool names; not verified by us.
- audit
- Security audit for Solidity, Rust, Vyper and Move code.
- gas
- Gas optimization for Solidity code.
What it does
- Smart contract security audit
- Runs a security review over contract code written in Solidity, Rust, Vyper or Move.
- Solidity gas optimization
- Suggests ways to reduce gas usage in Solidity contracts.
- Editor integration via MCP
- Works as a stdio MCP server inside VS Code Copilot, Claude Desktop, Cursor and Windsurf.
- Simple API key setup
- Authenticates with a single Blockhertz API key set as an environment variable.
- Open-source MIT server
- The MCP server code is published under the MIT licence on GitHub.
Good for
- Auditing a Solidity contract for security issues before deployment
- Reducing gas costs in Solidity functions during development
- Reviewing Rust, Vyper or Move code for vulnerabilities from within the editor
- Getting contract feedback without switching to a separate web tool
Pricing
Freemium
Usage is credit-based across Blockhertz plans; the server itself is MIT licensed.
Blockhertz MCP FAQ
Which languages does the audit tool support?
The audit tool covers Solidity, Rust, Vyper and Move.
Which languages does the gas tool support?
The gas optimization tool supports Solidity.
How is usage billed?
Each tool call uses one credit from the user's Blockhertz plan.
How do I get an API key?
Keys are issued from the Blockhertz dashboard at blockhertz.com/dashboard.
Is Blockhertz MCP free?
Blockhertz MCP has a free plan, with paid plans for more usage or features.
How do I add Blockhertz MCP to Claude Code?
Run this command in your terminal: claude mcp add blockhertz-mcp --env BLOCKHERTZ_API_KEY='<BLOCKHERTZ_API_KEY>' -- npx -y blockhertz-mcp
What are the best alternatives to Blockhertz MCP?
The closest alternatives to Blockhertz MCP are Pentagonal MCP, Smartguard MCP, Onchain Risk MCP, Bridgeguard MCP and Solidity Smart Contract Escrow Auditor.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.