go-mcp-server
Verified Safeby cbrgm
Overview
Implements a Model Context Protocol (MCP) server to provide tea-related information (tools, resources, prompts) for learning and integration with LLM applications.
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 primarily handles JSON-RPC 2.0 messages over stdio or HTTP. Input parsing is done using `json.Unmarshal`, which is generally safe against injection vulnerabilities compared to dynamic execution. HTTP transport includes standard security headers (X-Content-Type-Options, X-Frame-Options, X-XSS-Protection) and CORS configuration. There are no evident uses of `eval` or dynamic code execution on user input, nor are hardcoded secrets found. However, the README explicitly states it's for 'learning purposes only' and advises against production use, implying potential lack of production-grade hardening or advanced security features like authentication/authorization beyond the scope of this project. Direct exposure of the HTTP endpoint without proper upstream security measures in a production scenario could be risky.
Similar Servers
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
mcp-server-dump
Extracts and documents MCP (Model Context Protocol) server capabilities, tools, resources, and prompts in various formats.
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.
agent-standards-mcp
A Model Context Protocol (MCP) server that provides AI agents with programmatic access to a centralized catalog of standards and rules, such as coding guidelines or API design principles, to improve code quality, reduce LLM costs, and maintain focus.