MCP Catalogs
Home

mcp-zero

by zeromicro·42·Score 44

MCP server for go-zero framework that generates APIs, RPC services, and models with AI assistance.

developer-toolsai-llmproductivity
12
Forks
2
Open issues
4 mo ago
Last commit
2d ago
Indexed

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:

you:Quickly generating new go-zero API and RPC services with minimal setup
you:Automatically creating database models from existing schemas or DDL files
you:Validating API specifications and protobuf definitions before generation
you:What are the prerequisites for using mcp-zero?
you:Can mcp-zero generate models from different databases?

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 README
  • create_api_service

    Creates a new go-zero API service.

  • create_rpc_service

    Creates a new go-zero RPC service from protobuf definition.

  • generate_api_from_spec

    Generates go-zero API code from an API specification file.

  • generate_model

    Generates database model code from database schema.

  • create_api_spec

    Creates a sample API specification file.

  • analyze_project

    Analyzes an existing go-zero project structure and dependencies.

  • generate_config

    Generates configuration files for go-zero services.

  • generate_template

    Generates common code templates for go-zero services.

  • query_docs

    Queries go-zero documentation and migration guides.

  • validate_input

    Validates API specs, protobuf definitions, or configuration files.

Comparable tools

goctl-clizero-mvc-generator

Installation

Installation

  1. Create a new directory for your MCP tool:

``bash mkdir go-zero-mcp && cd go-zero-mcp ``

  1. Initialize Go module:

``bash go mod init go-zero-mcp ``

  1. Install dependencies:

``bash go get github.com/modelcontextprotocol/go-sdk go get gopkg.in/yaml.v3 ``

  1. Save the main tool code as main.go
  1. Build the tool:

``bash go build -o mcp-zero main.go ``

  1. 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.