This project offers a streamlined, pure Go implementation of the Model Context Protocol (MCP), emphasizing efficiency with a single binary, stdin/stdout transport, and JSON-RPC 2.0. It eliminates the need for HTTP frameworks, providing a fully compliant MCP server that includes automatic tool schema derivation and a three-state initialization handshake, all built exclusively with the Go standard library. It serves as an ideal template for rapidly scaffolding custom MCP servers.
主要功能
01MCP 2025-11-25 spec-complete protocol foundation
02Auto-derived schemas for Tools, Resources, and Prompts via reflection
03Fuzz-tested JSON decoder and robust error handling (size limits, timeouts, panic recovery)
04JSON-RPC 2.0 over stdin/stdout with bidirectional transport
05Zero external dependencies (Go standard library only)
060 GitHub stars
使用案例
01Scaffolding new MCP server projects quickly using a battle-tested template
02Developing minimal, high-performance language model (LLM) tool servers
03Implementing custom Model Context Protocol (MCP) servers