Reverse engineer anything with agents, from app behavior down to native binaries.
Slither MCP
MCP server for Slither static analysis of Solidity smart contracts
Works with Claude Code · 98 GitHub stars
Install
claude mcp add --transport stdio --scope user slither -- uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcpInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Slither MCP Server
A Model Context Protocol (MCP) server that provides static analysis capabilities for Solidity smart contracts using Slither.
Overview
This MCP server wraps Slither static analysis functionality, making it accessible through the Model Context Protocol. It can analyze Solidity projects (Foundry, Hardhat, etc.) and generate comprehensive metadata about contracts, functions, inheritance hierarchies, and more.
You can also use Slither MCP as an easy-to-use Slither API for other use cases.
Features
- Caching: Slither runs are cached to
{$PROJECT_PATH}/artifacts/project_facts.jsonfor faster subsequent loads - MCP Tools: Query contract and function information through MCP tools
- Security Analysis: Run Slither detectors and access results with filtering
- Comprehensive Analysis: Extracts detailed information about:
- Contract metadata (abstract, interface, library flags)
- Function signatures and modifiers
- Inheritance hierarchies
- Function call relationships (internal, external, library calls)
- Security vulnerabilities and code quality issues
- Source code locations
While this is a v1.0 release, we anticipate API changes as we receive more feedback.
Installation
This project uses UV for package management:
# Install dependencies
uv sync
# Or install in development mode
uv pip install -e .
Usage
Basic Usage
Start the Slither MCP server:
uv run slither-mcp
All tools accept a path parameter that specifies which Solidity project to analyze. Projects are automatically cached in /artifacts/project_facts.json for faster subsequent queries.
Use in Claude Code
claude mcp add --transport stdio --scope user slither -- uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp
Use in Cursor
Make sure uvx is on your Cursor path using sudo ln -s ~/.local/bin/uvx /usr/local/bin/uvx
In your ~/.cursor/mcp.json:
{
"mcpServers": {
"slither-mcp": {
"command": "uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp",
}
}
}
Metrics and Privacy
Slither MCP includes opt-out metrics to help improve reliability by letting us know how often LLMs use each tool and their successful call rate. Metrics are enabled by default but can be permanently disabled.
What We Collect
- Tool call events (which tools are used)
- Success/failure status
We do not collect: tool call parameters, contract details, function names, or any project-specific information.
Disabling Metrics
To permanently opt out:
uv run slither-mcp --disable-metrics
For complete details, see METRICS.md.
MCP Tools
The server exposes tools for querying contract and function information. All tools accept a path parameter that specifies the Solidity project directory to analyze.
Query Tools
1. list_contracts - List contracts with filters
Requires: path (project directory)
Filter contracts by type (concrete, abstract, interface, library) or path pattern.
2. get_contract - Get detailed contract information
Retrieve full contract metadata including functions, inheritance, and flags.
3. get_contract_source - Get contract source code
Returns the complete source code of the Solidity file containing the specified contract.
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection, all without a single pixel of video.