go-mcp-server
Verified Safeby vubon
Overview
A reusable Go package for building MCP (Model Context Protocol) servers that declaratively define tools and their HTTP handlers, managing authorization, structured logging, and different transports.
Installation
go run main.goEnvironment Variables
- API_KEY
- LEGACY_USERNAME
- LEGACY_PASSWORD
- INTERNAL_API_KEY
- BACKEND_API_KEY
- PROD_API_KEY
- PUBLIC_API_KEY
- ADMIN_API_KEY
- SERVICE_ACCOUNT_TOKEN
- BACKEND_USERNAME
- BACKEND_PASSWORD
- API_USERNAME
- API_PASSWORD
Security Notes
The server explicitly uses environment variables for sensitive data and warns about HTTPS for Basic Auth. Configuration validation is enforced. No 'eval' or malicious patterns were found. Relying on environment variables means secrets are present in the environment, which is always a potential risk if the environment itself is compromised. Proper secret management and HTTPS are critical for a secure deployment.
Similar Servers
Unla
A lightweight and highly available gateway service that converts existing MCP Servers and APIs into services compliant with the MCP Protocol through configuration.
k8s-mcp-server
Provides a standardized Model Context Protocol (MCP) interface for interacting with and managing Kubernetes clusters and Helm releases, enabling automation and integration with CLI tools, web applications, and AI agents.
mcp-server-dump
Extracts and documents MCP (Model Context Protocol) server capabilities, tools, resources, and prompts in various formats.
toolhive-registry-server
The ToolHive Registry Server acts as a central metadata hub for enterprise Model Context Protocol (MCP) server governance and discovery.