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
Transforms existing MCP Servers and APIs into MCP protocol-compliant endpoints through configuration, enabling LLM tool calling without code changes.
oauth-mcp-proxy
OAuth 2.1 authentication library for Go MCP servers, supporting both mark3labs and official SDKs for token validation and caching.
toolhive-registry-server
The central metadata hub for enterprise Model Context Protocol (MCP) server governance and discovery, implementing the official MCP Registry API specification.
mcp-sdk-go
A Go SDK for building applications that communicate with large language models and external tools via the Model Context Protocol (MCP), supporting both client and server implementations.