go-mcp
go-mcp copied to clipboard
Go library for implementing the Model Context Protocol (MCP).
go-mcp
Go library for implementing the Model Context Protocol (MCP).
Features
- [x] Supports protocol revision 2024-11-05
- [x] Server support
- [x] Client support
- [x] Type safe RPC handlers without reflection
- [x] Built-in validation of tool arguments
Installation
go get github.com/dstotijn/go-mcp
Usage
See examples/server/main.go for a detailed example of a server implementation.
License
Apache License 2.0
© 2025 David Stotijn