mcp-sdk-go
Verified Safeby voocel
Overview
Go SDK for integrating large language models (LLMs) and external tools/resources via the Model Context Protocol (MCP).
Installation
cd examples/basic && go run main.goSecurity Notes
The SDK provides robust foundations, including schema validation for tool inputs (with `AddTool[In,Out]`), and middleware hooks for authentication, rate limiting, and recovery. Examples demonstrate basic path traversal protection for file operations. However, comprehensive security (e.g., thorough input sanitization for generic tool handlers, robust authentication for HTTP transports beyond basic validation, fine-grained access control) depends on the developer's implementation using the provided features. The `Access-Control-Allow-Origin: *` in SSE transport might be overly permissive for some deployments. OAuth 2.1 authorization is planned, suggesting current HTTP transports lack built-in robust auth.
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.
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.
tmcp
Build Model Context Protocol (MCP) servers for AI agents, providing schema-agnostic tools, resources, and prompts, with optional OAuth 2.1 authentication and distributed session management.
mkp
MKP is a Model Context Protocol (MCP) server for Kubernetes that enables LLM-powered applications to interact with Kubernetes clusters.