Back to Home
vubon icon

go-mcp-server

Verified Safe

by 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

Run Command
go run main.go

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-11-25

Tags

MCPAPI GatewayGoAuthorizationMicroservices