Back to Home
fozagtx icon

somnia-mcp

Verified Safe

by 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

Run Command
npx @modelcontextprotocol/inspector tsx src/index.ts

Environment 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

Stats

Interest Score0
Security Score10
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-11-26

Tags

blockchainAI agentsSomniaMCPweb3Ethereum