https://github.com/dstotijn/go-mcp
Go library for implementing the Model Context Protocol (MCP).
https://github.com/dstotijn/go-mcp
go mcp modelcontextprotocol
Last synced: 5 months ago
JSON representation
Go library for implementing the Model Context Protocol (MCP).
- Host: GitHub
- URL: https://github.com/dstotijn/go-mcp
- Owner: dstotijn
- License: apache-2.0
- Created: 2025-03-03T13:57:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-12T22:02:09.000Z (over 1 year ago)
- Last Synced: 2025-03-19T14:29:23.919Z (over 1 year ago)
- Topics: go, mcp, modelcontextprotocol
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-mcp
[](https://github.com/dstotijn/go-mcp/tags)
[](https://pkg.go.dev/github.com/dstotijn/go-mcp)
[](LICENSE)
[](https://goreportcard.com/report/github.com/dstotijn/go-mcp)
Go library for implementing the [Model Context
Protocol](https://modelcontextprotocol.io/) (MCP).
## Features
- [x] Supports protocol revision [2024-11-05](https://spec.modelcontextprotocol.io/specification/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](/examples/server/main.go) for a detailed example
of a server implementation.
## License
[Apache License 2.0](/LICENSE)
© 2025 David Stotijn