Solhint MCP server
io.github.vschernoff/solhint-mcp·v0.1.8MCP server for Solhint — lint and autofix Solidity smart contracts from any MCP client
not scanned yet
0 stars439 downloads/wk
Reviews
Write oneNobody has reviewed Solhint yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Solhint tools
No tool declarations could be read from the package source. They show once the server is installed.
How Solhint compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 95% of 48,255 servers
- Downloads a week
- 439
- more than 86% of 12,191 servers with a package
Release history: 4 versions in the registry since 2026-10-08, latest 2026-10-30, typically one every 6 days.
Install Solhint in Claude Code, Cursor or VS Code
Runs npx -y solhint-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add solhint-mcp -- npx -y solhint-mcp
What the publisher says
From the Solhint repository's README, as published. We do not edit it. Read it on GitHub
solhint-mcp
Lint and autofix Solidity smart contracts with Solhint, from any MCP client — Claude Code, OpenAI Codex, Cursor, Windsurf, Claude Desktop, and anything else that speaks the protocol. Nothing in it is specific to one vendor.
Your agent gets seven tools: lintsolidity, lintfile, lintproject, fixsolidity, fixfile, explainrule and get_config.
Solhint's CLI points users at this package —
protofire/solhint#801, shipped in
Solhint 6.2.5.
Installation
Add this to your MCP client's configuration, with the Solidity project as the working directory:
{
"mcpServers": {
"solhint": {
"command": "npx",
"args": ["-y", "solhint-mcp"]
}
}
}Requires Node.js 20 or newer. On native Windows, clients that launch servers through npx generally need "command": "cmd" with "args": ["/c", "npx", "-y", "solhint-mcp"].
One server process lints one project: its working directory is the project root, so start another process for a different project. A Solhint installed in that project takes precedence over the copy bundled here.
How it runs Solhint
The server calls Solhint through its JavaScript API. It does not start a shell, invoke npx solhint, make update checks, or parse CLI output.
Client-specific shortcuts
Claude Code — from the Solidity project directory:
claude mcp add solhint -- npx -y solhint-mcpThe default local scope associates the server with the current project. Use --scope project before -- if the configuration should be committed in .mcp.json. On native Windows, Claude Code requires cmd /c:
claude mcp add solhint -- cmd /c npx -y solhint-mcpOpenAI Codex — Codex uses TOML, not the JSON block above, and shares one configuration across the Codex CLI, the ChatGPT desktop app and the IDE extension. From the Solidity project directory:
codex mcp add solhint -- npx -y solhint-mcpOr add it by hand to ~/.codex/config.toml, or to .codex/config.toml to scope it to one project:
[mcp_servers.solhint]
command = "npx"
args = ["-y", "solhint-mcp"]Cursor / Windsurf — add the JSON block above to the editor's MCP settings.
Claude Desktop — installation is separate from Claude Code. This package is a stdio npm server, not a packaged Desktop Extension (.mcpb). Configure it as a local development MCP server only if the client launches it with the Solidity project as its working directory. See Anthropic's current local-server instructions.
Tools
lintproject autodetects contracts//.sol, then src//.sol, and finally /*.sol. Paths and patterns outside the project root are rejected.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Solhint: common questions
- Is Solhint MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Solhint safety report
- How do I install Solhint?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Solhint need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Solhint maintained?
- The last commit was 23 days ago (2026-10-12). The latest release is v0.1.8.
- How does Solhint compare with other MCP servers?
- safety score 92/100 (higher than 95% of 48,255 servers); downloads a week 439 (more than 86% of 12,191 servers with a package). Full comparison.