Back to Home
cbrgm icon

go-mcp-server

Verified Safe

by 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

Run Command
go run ./cmd/go-mcp-server

Environment 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

Stats

Interest Score36
Security Score8
Cost ClassLow
Stars6
Forks0
Last Update2025-12-04

Tags

MCPGoServerLLM ContextLearning