mcp-zero
by zeromicro·★ 42·Score 44
MCP server for go-zero framework that generates APIs, RPC services, and models with AI assistance.
Overview
mcp-zero is a comprehensive Model Context Protocol server specifically designed for the go-zero framework in Go. It enables developers to quickly scaffold and generate complete go-zero projects through AI assistance. The server provides 10 specialized tools for creating API services, RPC services, models, API specifications, configurations, templates, and more. It integrates with Claude Desktop and leverages go-zero's goctl CLI tool for production-ready code generation.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when working with go-zero framework and want to accelerate development through AI-assisted code generation.
When NOT to choose this
Don't choose this if you're not using the go-zero framework or prefer manual coding without AI assistance.
Tools this server exposes
10 tools extracted from the READMEcreate_api_serviceCreates a new go-zero API service.
create_rpc_serviceCreates a new go-zero RPC service from protobuf definition.
generate_api_from_specGenerates go-zero API code from an API specification file.
generate_modelGenerates database model code from database schema.
create_api_specCreates a sample API specification file.
analyze_projectAnalyzes an existing go-zero project structure and dependencies.
generate_configGenerates configuration files for go-zero services.
generate_templateGenerates common code templates for go-zero services.
query_docsQueries go-zero documentation and migration guides.
validate_inputValidates API specs, protobuf definitions, or configuration files.
Comparable tools
Installation
Installation
- Create a new directory for your MCP tool:
``bash mkdir go-zero-mcp && cd go-zero-mcp ``
- Initialize Go module:
``bash go mod init go-zero-mcp ``
- Install dependencies:
``bash go get github.com/modelcontextprotocol/go-sdk go get gopkg.in/yaml.v3 ``
- Save the main tool code as
main.go
- Build the tool:
``bash go build -o mcp-zero main.go ``
- Configure Claude Desktop:
Add this configuration to your Claude Desktop MCP settings: ``json { "mcpServers": { "mcp-zero": { "command": "/path/to/your/mcp-zero", "env": { "GOCTL_PATH": "/path/to/goctl" } } } } ``
FAQ
- What are the prerequisites for using mcp-zero?
- You need Go (1.19 or later), go-zero CLI (goctl), and Claude Desktop (or another MCP-compatible client).
- Can mcp-zero generate models from different databases?
- Yes, it supports generating models from MySQL, PostgreSQL, MongoDB, and DDL files.
Compare mcp-zero with
Last updated · Auto-generated from public README + GitHub signals.