MCP server
Weakspot
Audit Solidity and Rust smart contracts from your editor. Pays per audit in USDC over…
Runs locallyStatus and history
- Runs
- Locally
- Version
- 0.1.1
- Listing updated
- 3 days ago
About Weakspot
Weakspot is an MCP server. It runs locally on your machine and is started by your AI client.
Audit Solidity and Rust smart contracts from your editor. Pays per audit in USDC over x402.
Install
Run in a terminal
claude mcp add weakspot --env WEAKSPOT_PRIVATE_KEY='<WEAKSPOT_PRIVATE_KEY>' -- npx -y weakspot-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"weakspot": {
"command": "npx",
"args": [
"-y",
"weakspot-mcp"
],
"env": {
"WEAKSPOT_PRIVATE_KEY": "<WEAKSPOT_PRIVATE_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"weakspot": {
"command": "npx",
"args": [
"-y",
"weakspot-mcp"
],
"env": {
"WEAKSPOT_PRIVATE_KEY": "<WEAKSPOT_PRIVATE_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"weakspot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"weakspot-mcp"
],
"env": {
"WEAKSPOT_PRIVATE_KEY": "<WEAKSPOT_PRIVATE_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"weakspot": {
"command": "npx",
"args": [
"-y",
"weakspot-mcp"
],
"env": {
"WEAKSPOT_PRIVATE_KEY": "<WEAKSPOT_PRIVATE_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"weakspot": {
"command": "npx",
"args": [
"-y",
"weakspot-mcp"
],
"env": {
"WEAKSPOT_PRIVATE_KEY": "<WEAKSPOT_PRIVATE_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
WEAKSPOT_PRIVATE_KEYPrivate key of a funded Base wallet. This server SPENDS REAL USDC from it with no human in the loop — use a fresh wallet funded with only what you are willing to lose, never a personal or deployer key. Only weakspot_audit needs it; the pricing, status and wallet-status tools work without one.WEAKSPOT_MAX_USDHard cap in USD on any single audit (default 4, the highest tier). Checked twice: against the tier price, and again against the amount the server actually quotes. An LLM decides when to call the paying tool, so this is the main spend control.WEAKSPOT_URLBase URL of the Weakspot deployment to use. Defaults to https://weakspot.dev; override to point at staging or a self-hosted instance.WEAKSPOT_RPC_URLBase RPC endpoint, used only to read the wallet's USDC balance in weakspot_wallet_status. Nothing else needs it.
Weakspot FAQ
How do I add Weakspot to Claude Code?
Run this command in your terminal: claude mcp add weakspot --env WEAKSPOT_PRIVATE_KEY='<WEAKSPOT_PRIVATE_KEY>' -- npx -y weakspot-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.