go-kratos-mcp-demo
Verified Safeby tx7do
Overview
A modular and observable recommendation microservice demonstrating Go-Kratos and MCP protocol integration for recall, ranking, and filtering stages.
Installation
make runSecurity Notes
The code uses standard Go libraries and the Kratos framework, which are generally robust. No 'eval' or dynamic code execution from untrusted sources is observed. User input through MCP and HTTP is unmarshaled into Protobuf-generated structs, which helps in schema validation and prevents arbitrary deserialization attacks. Server endpoints bind to specified ports (8000 for HTTP, 8080 for MCP) without explicit TLS or authentication in the provided code, which is typical for internal microservices and implies external security layers (e.g., API Gateway, reverse proxy with HTTPS) are expected for production deployment. No hardcoded sensitive secrets are present in the provided snippets. The MCP tool input schema is explicitly defined in code, limiting the flexibility of untrusted input.
Similar Servers
Unla
Transforms existing MCP Servers and APIs into MCP protocol-compliant endpoints through configuration, enabling LLM tool calling without code changes.
k8s-mcp-server
Interacting with Kubernetes clusters and Helm releases through a standardized Model Context Protocol (MCP) interface.
mkp
MKP is a Model Context Protocol (MCP) server for Kubernetes, enabling LLM-powered applications to interact with Kubernetes clusters by providing tools for resource listing, getting, applying, deleting, and executing commands.
kafka-mcp-server
Enables LLM models and AI applications to interact with Apache Kafka for producing/consuming messages, managing topics, monitoring consumer groups, and assessing cluster health via the Model Context Protocol (MCP).