mcp
Verified Safeby paularlott
Overview
Develop a multi-tenant Model Context Protocol (MCP) server that exposes local and remote tools, including OpenAI-compatible functions, with simulated authentication and context propagation.
Installation
No command providedEnvironment Variables
- OPENAI_BASE_URL
- OPENAI_API_KEY
- DEFAULT_MODEL
Security Notes
The server's default Access-Control-Allow-Origin: * is overly permissive for production; it should be configured to specific allowed origins. The multi-tenant example explicitly uses *simulated* token validation; a real deployment requires robust external authentication. Error messages from tool execution could potentially leak verbose internal details depending on the underlying error, which is a minor concern. Hardcoded default API key in the OpenAI example is acceptable for development but requires proper environment variable configuration in production. The core library otherwise uses standard secure Go practices.
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.
mcpm.sh
This server provides a command-line interface to manage Model Context Protocol (MCP) servers, allowing users to discover, install, configure, run, share, and monitor them.
mcp-k8s-go
An MCP server enabling AI assistants and users to interact with and manage Kubernetes clusters by listing, getting, applying, and executing commands on Kubernetes resources.
k8s-mcp-server
Provides a standardized interface (MCP) for interacting with Kubernetes clusters and managing Helm releases.