somnia-mcp
Verified Safeby fozagtx
Overview
This server acts as a Model Context Protocol (MCP) server, enabling AI agents like Claude to interact with the Somnia blockchain network by exposing a set of specialized tools.
Installation
npx @modelcontextprotocol/inspector tsx src/index.tsEnvironment Variables
- ENVIRONMENT
- AGENT_SECRET_KEY
- USE_STREAMABLE_HTTP
- PORT
- HOST
Security Notes
The project demonstrates excellent security practices. It explicitly warns against hardcoding `AGENT_SECRET_KEY` and mandates its use via environment variables, with strict format validation. Input validation is rigorously handled using Zod schemas derived from trusted internal tool definitions, effectively mitigating injection and malformed request risks. CORS is enabled with `origin: "*"`, which is appropriate for an MCP server designed to be widely accessible by various agents. The Streamable HTTP transport includes DNS rebinding protection. Network requests to external APIs include timeouts to prevent resource exhaustion. No `eval` or easily exploitable malicious patterns were found with untrusted input.
Similar Servers
evm-mcp-server
Enables AI agents to interact with 60+ EVM-compatible blockchains, perform transactions, query data, and interact with smart contracts via a unified Model Context Protocol (MCP) interface.
heurist-mesh-mcp-server
Provides AI models (like Claude) access to Web3 and blockchain tools via the Heurist Mesh API for tasks such as cryptocurrency data analysis, token security review, and social media intelligence.
kukapay-mcp-servers
Aggregates real-time cryptocurrency and blockchain data for AI agents and developers, spanning DeFi, trading, market analytics, and Web3 services.
UCAI
Generates Model Context Protocol (MCP) servers from smart contract ABIs, enabling AI agents to interact with blockchain protocols safely and efficiently, incorporating security scanning and contract explanations.