
protoc-gen-go-mcp
by redpanda-data
Go protobuf compiler extension that automatically turns gRPC or ConnectRPC services into MCP servers.
What it does
protoc-gen-go-mcp is a Protocol Buffers compiler plugin that streamlines the creation of MCP servers. Instead of manually defining tools and schemas, it generates the necessary Go code to expose gRPC or ConnectRPC APIs as MCP tools, automatically deriving JSON Schemas from protobuf method descriptors.
Tools
Tools are dynamically generated based on the protobuf services defined in your .proto files. Each RPC method becomes an MCP tool with inputs mapped from the protobuf request messages.
Installation
Integrate the plugin into your buf.gen.yaml:
plugins:
- local:
- go
- run
- github.com/redpanda-data/protoc-gen-go-mcp/cmd/protoc-gen-go-mcp@latest
out: ./gen/go
opt: paths=source_relative
Then, implement the runtime.MCPServer interface using an adapter like gosdk or mark3labs to serve the generated handlers over stdio.
Supported hosts
- claude
Quick install
go install github.com/redpanda-data/protoc-gen-go-mcp/cmd/protoc-gen-go-mcp@latestInformation
- Pricing
- free
- Published
- 4/22/2026
- stars






