go-mcp-server
Verified Safeby cbrgm
Overview
Provides tea information as a Model Context Protocol (MCP) server for AI/LLM clients, primarily for learning and understanding the MCP specification.
Installation
go run ./cmd/go-mcp-serverEnvironment Variables
- MCP_TRANSPORT
- MCP_PORT
- MCP_SERVER_NAME
- MCP_SERVER_VERSION
- MCP_REQUEST_TIMEOUT
- MCP_SHUTDOWN_TIMEOUT
- MCP_READ_TIMEOUT
- MCP_WRITE_TIMEOUT
- MCP_IDLE_TIMEOUT
- MCP_LOG_LEVEL
- MCP_LOG_JSON
Security Notes
The server uses standard Go libraries and JSON-RPC 2.0 for communication. It includes basic security headers (X-Content-Type-Options, X-Frame-Options, X-XSS-Protection) and configurable timeouts for HTTP connections, which mitigates some common network risks. Request handling dispatches to predefined methods, preventing dynamic code execution from arbitrary input. CORS is set to `Access-Control-Allow-Origin: *`, which is permissive but common for local/development servers. No obvious hardcoded secrets or malicious patterns were found. For production use, further hardening (e.g., stricter CORS, authentication) would be necessary, though the project explicitly states it's for learning purposes.
Similar Servers
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
mcp-server-dump
A command-line tool to extract, analyze, and document the capabilities (tools, resources, prompts) of MCP (Model Context Protocol) servers in various formats, including Markdown, JSON, HTML, PDF, and Hugo sites.
mcp-go-starter
A feature-complete Model Context Protocol (MCP) server template in Go demonstrating tools, resources, and prompts for AI agent interaction.
mcp-factcheck
The MCP Fact-Check MCP Server validates content against the Model Context Protocol (MCP) specification using AI-powered semantic search to ensure technical accuracy and prevent misinformation.