SolidityScan MCP Server
OfficialEnables scanning remote GitHub-hosted repositories through scan_project by supplying a GitHub project URL and project name, with optional branch, recursive scanning, and skipped file paths.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SolidityScan MCP Server scan this contract 0x0000000000000000000000000000000000000000 on etherscan sepolia for issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SolidityScan MCP Server
An MCP (Model Context Protocol) server that exposes SolidityScan smart contract security analysis as MCP tools. Use it from MCP-capable clients to scan deployed contracts, Git projects, local directories, or inline Solidity source, and to generate quick PDF reports.
What you get
scan_contract: Deep scan of a deployed contract by address
scan_and_get_report_pdf: Quick scan + PDF report link
scan_project: Scan a remote Git repository
scan_local_directory: Scan local Solidity code on disk
scan_file_content: Scan raw Solidity source (in-memory)
get_supported_platforms_chains: Discover supported explorers and chains
Powered by the SolidityScan SDK.
Related MCP server: EVIDIQ Sentinel MCP
Requirements
Node.js 18+
A SolidityScan API key set as
SOLIDITYSCAN_API_KEY(or passapiTokenper request)
Install
pnpm install
pnpm buildRun locally (dev):
pnpm devRun the built server:
pnpm startIf published as a package with a binary (solidityscan-mcp-server), you can also run:
npx solidityscan-mcp-serverConfigure API key
Set your API key once for all requests:
export SOLIDITYSCAN_API_KEY="<your-api-key>"Or pass apiToken with individual tool calls.
Using with an MCP client
Any MCP-capable client can connect to this server over stdio. Examples:
Claude Desktop (example)
Add an entry to your claude_desktop_config.json:
{
"mcpServers": {
"solidityscan": {
"command": "/usr/bin/env",
"args": ["node", "/absolute/path/to/dist/index.js"],
"env": {
"SOLIDITYSCAN_API_KEY": "<your-api-key>"
}
}
}
}Cursor or other MCP clients
Register a new MCP server with the command set to node and the argument pointing to dist/index.js (or the CLI solidityscan-mcp-server if installed globally). Ensure SOLIDITYSCAN_API_KEY is available in the server environment.
Available tools
Tool | Description | Required inputs |
| Lists supported explorers/platforms and their chains (names mapped to IDs) | – |
| Scan a deployed contract by address |
|
| Quick scan and return a PDF report link |
|
| Scan a Git repository project |
|
| Scan a local directory of Solidity files |
|
| Scan raw Solidity source content |
|
Notes:
Use
get_supported_platforms_chainsto discover validplatformnames and theirchainnames/IDs.Although some client UIs may not mark
platformas required, this server requires it for chain resolution.
Examples
First, discover platforms and chains:
get_supported_platforms_chainsExample response (truncated):
{
"etherscan": {
"id": "1",
"chains": { "mainnet": "1", "sepolia": "4", "holesky": "6" }
},
"polygonscan": {
"id": "3",
"chains": { "mainnet": "1", "testnet": "2", "amoy-testnet": "10" }
}
}Scan a deployed contract
{
"tool": "scan_contract",
"arguments": {
"contractAddress": "0x0000000000000000000000000000000000000000",
"platform": "etherscan",
"chain": "sepolia"
}
}Quick scan and PDF report link
{
"tool": "scan_and_get_report_pdf",
"arguments": {
"contractAddress": "0x0000000000000000000000000000000000000000",
"platform": "etherscan",
"chain": "sepolia"
}
}The server responds with a https://solidityscan.com/qs-report/<project_id>/<report_id>/<scan_id> link.
Scan a Git project
{
"tool": "scan_project",
"arguments": {
"provider": "github",
"projectUrl": "https://github.com/org/repo",
"projectName": "MyDapp",
"projectBranch": "main",
"recurScans": false,
"skipFilePaths": []
}
}Scan a local directory
{
"tool": "scan_local_directory",
"arguments": {
"directoryPath": "/absolute/path/to/contracts",
"projectName": "LocalScan"
}
}Scan raw Solidity source content
{
"tool": "scan_file_content",
"arguments": {
"fileName": "Sample.sol",
"projectName": "InlineScan",
"fileContent": "pragma solidity ^0.8.20; contract A { function f() external {} }"
}
}Development
TypeScript entrypoint:
index.tsBuilt output:
dist/index.js
Scripts:
pnpm dev # Run with tsx (hot dev)
pnpm build # Compile TypeScript
pnpm start # Run compiled server
pnpm dev:http # Run Streamable HTTP server with tsx
pnpm start:http # Run compiled HTTP/SSE server
pnpm test:http-client # Launch HTTP server + client smoke testStreamable HTTP + SSE transport
server-http.tshosts the MCP server over the Streamable HTTP transport, supporting both POST + SSE flows in a single endpoint.Each request may include
Authorization: Bearer <SOLIDITYSCAN API KEY>orX-API-Key; the server caches the first key seen for the session and reuses it for subsequent requests/subscriptions.pnpm test:http-clientboots the HTTP server on an ephemeral port, spins up aStreamableHTTPClientTransportwith the provided header, and runslistToolsas a smoke test. SetSOLIDITYSCAN_TEST_API_KEY(or reuseSOLIDITYSCAN_API_KEY) to make the test send a real key.
How platform/chain resolution works
Platform can be provided by name (e.g.,
etherscan,polygonscan,blockscout,arbiscan, etc.) or by platform ID from the index.Chain can be provided by chain name for that platform (e.g.,
sepolia,mainnet,amoy-testnet) or by the chain ID value listed under that platform.If an unsupported value is provided, the server returns an error with the list of available chains for the selected platform.
Troubleshooting
Missing API key: set
SOLIDITYSCAN_API_KEYor passapiToken.Unsupported platform/chain: call
get_supported_platforms_chainsand use a listed value.File/directory not found: ensure absolute paths exist and are accessible to the server process.
License
MIT
Acknowledgements
Built on
@modelcontextprotocol/sdkSecurity scanning by
solidityscan
Available Tools
6 toolsget_supported_platforms_chainsB
Return supported platforms and their chains (names mapped to IDs) derived from platform-chain.json
Inputs: no named parameters.
scan_and_get_report_pdfC
Scan a deployed contract, then generate and return a PDF report (basic scaffold)
Inputs: chain (required), contractAddress (required), apiToken, platform, +1 more.
scan_contractB
Scan a deployed smart contract by address for security vulnerabilities
Inputs: chain (required), contractAddress (required), apiToken, platform.
scan_file_contentC
Scan Solidity source code content directly
Inputs: fileContent (required), apiToken, fileName, projectName.
scan_local_directoryB
Scan a local directory containing Solidity files
Inputs: directoryPath (required), apiToken, projectName.
scan_projectC
Scan a Git repository project for security vulnerabilities
Inputs: provider (required), projectUrl (required), projectName (required), apiToken, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a different input source: platform metadata, local directory, deployed contract address, Git repository project, raw file content, and PDF report generation. The main overlap is between scan_local_directory and scan_project, and between scan_contract and scan_and_get_report_pdf, but descriptions clarify the intended use.
All names use snake_case and generally follow a verb_noun convention (get_..., scan_...). The only minor deviation is the compound scan_and_get_report_pdf, which is still readable and predictable.
Six tools are well-scoped for a smart contract scanning service, with each tool representing a distinct scan entry point or supporting metadata operation. No tool feels redundant or extraneous.
The surface covers metadata lookup and scanning across the main input types: deployed address, local directory, Git project, and raw source content, plus PDF reporting. Minor gaps exist around retrieving scan status/results or listing past scans, and the PDF tool is explicitly described as a basic scaffold.
Maintenance
Related MCP Connectors
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
A paid remote MCP for developer endpoint scanner MCP, built to return verdicts, receipts, usage logs
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables scanning Solidity smart contracts for 13 vulnerability classes using pattern-based analysis; provides full audit, quick scan, gas analysis, and detector catalog through MCP tools.MIT

EVIDIQ Sentinel MCPofficial
AlicenseNot gradedqualityBmaintenanceScans remote MCP endpoints, manifests, and agent skills for security threats, providing deterministic scores, verdicts, and signed reports to verify agent infrastructure before trust or payments.1MIT- AlicenseNot gradedqualityCmaintenanceEnables static analysis, vulnerability scanning, gas optimization, formal specification verification, and audit report generation for smart contracts across Ethereum, Polygon, Arbitrum, Optimism, and Base. It also retrieves deployed contract information and audit history, persisting findings between sessions.MIT
- AlicenseAqualityBmaintenanceEnables scanning Android and iOS app packages from MCP clients for security issues, mapping findings to OWASP MASVS, CWE, and CVSS, and downloading pentest-style reports.844 PyPIMIT