MCP.so
登录

protoc-gen-go-mcp

@juliendoutre

关于 protoc-gen-go-mcp

A Go protoc plugin to implement MCP servers for gRPC services.

基本信息

分类

开发工具

许可证

MIT license

运行时

go

传输方式

stdio

发布者

juliendoutre

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is protoc-gen-go-mcp?

protoc-gen-go-mcp is a protoc plugin that generates Go Model Context Protocol (MCP) server code from protobuf service definitions. It integrates with the protobuf ecosystem and gRPC to produce MCP tools that can be used by LLM clients.

How to use protoc-gen-go-mcp?

Install via Homebrew (brew tap juliendoutre/protoc-gen-go-mcp and brew install protoc-gen-go-mcp), then run protoc with the --go-mcp_out flag after installing protoc, protoc-gen-go, and protoc-gen-go-grpc. An example invocation is provided: protoc ./example/api.proto --go_out=./example/ --go-grpc_out=./example/ --go-mcp_out=./example/. The generated MCP server can be run and configured in an IDE like Cursor by adding its command to the MCP configuration file.

Key features of protoc-gen-go-mcp

  • Generates Go MCP server code from protobuf definitions.
  • Integrates with protoc-gen-go and protoc-gen-go-grpc.
  • Includes an example protobuf service and MCP server.
  • Configurable via standard protoc command-line flags.
  • Supports Homebrew for cross‑platform installation.
  • Compatible with Cursor IDE’s MCP configuration.

Use cases of protoc-gen-go-mcp

  • Exposing a gRPC greeting service as MCP tools for an AI chat client.
  • Generating boilerplate MCP server stubs from existing protobuf service definitions.
  • Prototyping interaction between LLMs and backend services defined in protobuf.

FAQ from protoc-gen-go-mcp

What does protoc-gen-go-mcp generate?

It generates Go source code implementing a Model Context Protocol server that wraps gRPC services defined in a .proto file.

What runtime dependencies are required?

You need protoc, protoc-gen-go, protoc-gen-go-grpc, and protoc-gen-go-mcp installed. The generated code uses standard Go and gRPC packages; no additional MCP libraries are mentioned beyond the example.

How do I install protoc-gen-go-mcp?

On macOS you can use Homebrew: brew tap juliendoutre/protoc-gen-go-mcp then `brew install protoc-gen-go-m

评论

开发工具 分类下的更多 MCP 服务器