Back to Home
cbrgm icon

go-mcp-server

Verified Safe

by 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

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 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

Stats

Interest Score35
Security Score8
Cost ClassLow
Avg Tokens300
Stars6
Forks0
Last Update2026-01-16

Tags

MCPGoServerTeaAI