Back to Home
SaherElMasry icon

go-mcp-framework

Verified Safe

by SaherElMasry

Overview

Provides a production-ready framework for building Model Context Protocol (MCP) servers in Go, offering real-time streaming via Server-Sent Events (SSE), multiple transports, and built-in observability and security features.

Installation

Run Command
go run examples/filesystem-server/main.go

Environment Variables

  • MCP_BACKEND_TYPE
  • MCP_TRANSPORT
  • MCP_HTTP_ADDRESS
  • MCP_STREAMING_ENABLED
  • MCP_MAX_CONCURRENT
  • WEATHER_API_KEY

Security Notes

The framework includes robust security features, particularly for filesystem operations, such as path traversal prevention, workspace sandboxing, file size limits, and extension filtering. Concurrency is controlled via semaphores to prevent resource exhaustion. Configuration supports environment variable expansion, which is good for secrets management but means sensitivity to the execution environment. The default CORS policy in examples is `"*"` (allow all origins), which is generally unsafe for production and requires explicit configuration.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens1
Stars0
Forks0
Last Update2026-01-17

Tags

GoMCPServer-Sent EventsStreamingObservabilitySecurityFrameworkAI Tooling