Back to Home
STetsing icon

sourcify-mcp

Verified Safe

by STetsing

Overview

This server acts as a Model Context Protocol (MCP) wrapper for the Sourcify API, enabling AI assistants to perform smart contract verification, lookup, and similarity searches.

Installation

Run Command
node dist/index.js

Environment Variables

  • PORT
  • HOST
  • SOURCIFY_BASE_URL
  • API_TIMEOUT
  • ALLOWED_HOSTS

Security Notes

The server correctly uses environment variables for sensitive configurations like API URLs and timeouts, avoiding hardcoded secrets. Input validation for tool parameters is implemented using Zod, enhancing robustness against malformed requests. Comprehensive error handling wraps Sourcify API errors for clearer communication. However, the HTTP mode explicitly enables `CORS` for all origins (`*`), and while an `ALLOWED_HOSTS` environment variable is defined, it is not currently used to restrict this, which could be a concern in some deployment scenarios if the server is exposed publicly beyond a trusted MCP client network. For its intended use as a local or controlled AI agent tool, the risk is mitigated.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens250
Stars0
Forks0
Last Update2026-01-19

Tags

Smart Contract VerificationBlockchain ToolsSourcify APIAI AssistantModel Context Protocol