Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ› οΈ Other Tools and Integrations
  3. Gomcp
Gomcp logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 11:16:18 AM

Gomcp

User RatingsBe the first to rate and review this MCP server!
View Repository14 GitHub StarsTotal stargazers on GitHub for the source repository (14 stars).Visit Website

Go framework for building MCP servers with auto schema, middleware, adapters, auth, async tasks, and Inspector UI.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for zhangpanda/gomcp, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing AlternativesπŸ› οΈ More in Other Tools and Integrations

Overview

GoMCP is a Go framework designed to build Model Context Protocol (MCP) servers efficiently. It provides automatic schema generation from struct tags, a full middleware chain, and supports authentication and role-based access control. The framework includes adapters to import Gin routes, OpenAPI specs, and gRPC services as MCP tools, plus features for async task handling and a built-in Inspector UI for debugging. Use GoMCP when developing MCP servers in Go that require extensible middleware, multiple transport support, and integration with existing APIs.

Use cases

β€’Build MCP servers with typed handlers and automatic parameter validation
β€’Import existing Gin routes, OpenAPI specs, or gRPC services as MCP tools
β€’Implement authentication and role-based access control on tool groups
β€’Manage long-running async tasks with polling and cancellation
β€’Test MCP tools using the in-memory mcptest package

Key features

β€’Struct-tag based automatic JSON Schema generation and validation
β€’Middleware chain including logging, auth, rate limiting, and tracing
β€’Adapters for Gin, OpenAPI/Swagger, and gRPC integration
β€’Built-in Bearer, API Key, and Basic authentication with RBAC
β€’Support for async tasks with task IDs, polling, and cancellation
β€’Inspector UI for browsing and testing MCP tools

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Gomcp.

Extracted Tool Capabilities
Struct-tag based automatic JSON Schema generation and validation
Middleware chain including logging, auth, rate limiting, and tracing
Adapters for Gin, OpenAPI/Swagger, and gRPC integration
Built-in Bearer, API Key, and Basic authentication with RBAC
Support for async tasks with task IDs, polling, and cancellation
Inspector UI for browsing and testing MCP tools

Documentation Overview

GoMCP

Go Version License Release gomcp MCP server

The fast, idiomatic way to build MCP servers in Go.

δΈ­ζ–‡ζ–‡ζ‘£


πŸš€ Quick Links

  • GitHub: https://github.com/zhangpanda/gomcp
  • Gitee: https://gitee.com/rilegouasas/gomcp
  • MCP Protocol: https://modelcontextprotocol.io

🎯 What is GoMCP?

GoMCP is a framework for building Model Context Protocol (MCP) servers β€” not just an SDK. Think of it as "Gin for MCP".

MCP is the open protocol that lets AI applications (Claude Desktop, Cursor, Kiro, VS Code Copilot) call external tools, read data sources, and use prompt templates. GoMCP makes building those servers trivial.

Why GoMCP?

mcp-go (mark3labs)Official Go SDKGoMCP
LevelSDKSDKFramework
Schema generationManualjsonschema tagmcp tag + auto validation
MiddlewareBasic hooksNoneFull chain (Logger, Auth, RateLimit, OTel…)
Tool groupsNoNoYes (user.get, admin.delete)
Import Gin routesNoNoβœ… One line
Import OpenAPI/SwaggerNoNoβœ… One line
Import gRPC servicesNoNoβœ…
Built-in authNoNoBearer / API Key / Basic + RBAC (Bearer = your token/JWT validator)
Inspector UINoNoβœ…
Test utilitiesBasicNomcptest package

πŸ› οΈ Tech Stack

Environment Requirements

RequirementVersion
Goβ‰₯ 1.25
MCP Protocol2024-11-05 (backward compatible with 2025-11-25)

Note on the Go 1.25 requirement. GoMCP's go.mod declares go 1.25.0 so the project always builds with the toolchain that ships current security and runtime fixes. If you are running Go 1.21+ locally with the default GOTOOLCHAIN=auto, Go will automatically download and use the matching toolchain for you β€” no manual upgrade is needed. If you have pinned GOTOOLCHAIN=local, install Go 1.25+ or unset the pin.

Core Dependencies

TechnologyDescription
Go standard libraryFramework routing, JSON-RPC, transports β€” no forced DB/ORM deps
GinAdapter only β€” import existing Gin routes
gRPCAdapter only β€” import gRPC services
OpenTelemetryOptional β€” distributed tracing
YAML v3Provider only β€” hot-reload tool definitions

🌟 Core Features

πŸ”§ Tool Development

  • Struct-tag auto schema β€” define parameters with Go structs and mcp tags, JSON Schema generated automatically
  • Typed handlers β€” func(*Context, Input) (Output, error) β€” no manual parameter parsing
  • Parameter validation β€” required, min/max, enum, pattern β€” checked before your handler runs
  • Component versioning β€” register multiple versions, clients call name@version
  • Async tasks β€” long-running tools return task ID, with polling and cancellation

πŸ”Œ Adapters (Core Differentiator)

  • Gin adapter β€” import existing Gin routes as MCP tools with one line
  • OpenAPI adapter β€” generate tools from Swagger/OpenAPI 3.x docs
  • gRPC adapter β€” import gRPC service methods as MCP tools

πŸ” Security

  • BearerAuth β€” Bearer token check via your validator (JWT parsing is up to you; this library does not decode JWTs)
  • APIKeyAuth β€” API key validation via header
  • BasicAuth β€” HTTP Basic authentication
  • RequireRole / RequirePermission β€” RBAC authorization on tool groups

🧩 Framework Features

  • Middleware chain β€” Logger, Recovery, RequestID, Timeout, RateLimit, OpenTelemetry
  • Tool groups β€” organize tools with prefixes and group-level middleware
  • Resource & Prompt β€” full MCP support including URI templates and parameterized prompts
  • Auto-completions β€” suggest values for prompt/resource arguments

πŸš€ Production Ready

  • Multiple transports β€” stdio (Claude Desktop, Cursor, Kiro) and Streamable HTTP with SSE
  • MCP Inspector β€” built-in web debug UI for browsing and testing tools
  • Hot-reload β€” load tool definitions from YAML files with file watching
  • mcptest package β€” in-memory client for unit testing with snapshot support
  • Lifecycle β€” Close(), session idle eviction, async concurrency β€” see Server lifecycle, sessions & async tasks.

πŸ—οΈ Architecture

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        User Code                             β”‚
β”‚   s.Tool() / s.ToolFunc() / s.Resource() / s.Prompt()        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                     Framework Core                           β”‚
β”‚   Router β†’ Middleware Chain β†’ Validation β†’ Handler β†’ Result   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   Schema   β”‚  Validator  β”‚   Adapters    β”‚  Observability    β”‚
β”‚  Generator β”‚   Engine    β”‚ Gin/OpenAPI/  β”‚  OTel / Logger    β”‚
β”‚ (mcp tags) β”‚ (auto)      β”‚ gRPC          β”‚  / Inspector      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                     Protocol Layer                           β”‚
β”‚          JSON-RPC 2.0 / MCP / Capability Negotiation         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                     Transport Layer                          β”‚
β”‚              stdio  /  Streamable HTTP + SSE                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Project Structure

Code
gomcp/
β”œβ”€β”€ server.go              # Server core, tool/resource/prompt registration
β”œβ”€β”€ context.go             # Request context with typed accessors
β”œβ”€β”€ group.go               # Tool groups with prefix naming
β”œβ”€β”€ middleware.go           # Middleware chain helpers (SkipAuthForMCPMethods, handshake skips)
β”œβ”€β”€ middleware_builtin.go   # Logger, Recovery, RequestID, Timeout, RateLimit
β”œβ”€β”€ middleware_auth.go      # Bearer/API key/Basic auth, RBAC, SSE auth helpers
β”œβ”€β”€ middleware_otel.go      # OpenTelemetry tracing
β”œβ”€β”€ schema/                # struct tag β†’ JSON Schema generator + validator
β”œβ”€β”€ transport/             # stdio + Streamable HTTP + optional CORS helper
β”œβ”€β”€ adapter/               # Gin, OpenAPI, gRPC adapters
β”œβ”€β”€ mcptest/               # Testing utilities
β”œβ”€β”€ task.go                # Async task support
β”œβ”€β”€ completion.go          # Auto-completions
β”œβ”€β”€ inspector.go           # Web debug UI
β”œβ”€β”€ provider.go            # Hot-reload from YAML
└── examples/              # Working examples
    β”œβ”€β”€ basic/             # Minimal stdio server
    β”œβ”€β”€ filesystem/        # Real-world file ops
    β”œβ”€β”€ gin-adapter/       # Import Gin routes
    β”œβ”€β”€ openapi-adapter/   # Import Swagger/OpenAPI
    └── grpc-adapter/      # Import gRPC services

πŸ“– Cookbook

Step-by-step guides for common tasks (5 minutes each):

  • Build a search tool β€” zero to Claude Desktop
  • Import an existing API β€” Gin / OpenAPI / gRPC in one line
  • Add auth + RBAC β€” Bearer tokens + role-based access

πŸ“¦ Installation

bash
go get github.com/zhangpanda/gomcp

⚑ Quick Start

5 lines to a working MCP server

server.ts
package main

import (
    "fmt"
    "github.com/zhangpanda/gomcp"
)

type SearchInput struct {
    Query string `json:"query" mcp:"required,desc=Search keyword"`
    Limit int    `json:"limit" mcp:"default=10,min=1,max=100"`
}

type SearchResult struct {
    Items []string `json:"items"`
    Total int      `json:"total"`
}

func main() {
    s := gomcp.New("my-server", "1.0.0")

    s.ToolFunc("search", "Search documents by keyword", func(ctx *gomcp.Context, in SearchInput) (SearchResult, error) {
        items := []string{fmt.Sprintf("Result for %q", in.Query)}
        return SearchResult{Items: items, Total: len(items)}, nil
    })

    s.Stdio()
}

The SearchInput struct automatically generates this JSON Schema:

config.json
{
  "type": "object",
  "properties": {
    "query": { "type": "string", "description": "Search keyword" },
    "limit": { "type": "integer", "default": 10, "minimum": 1, "maximum": 100 }
  },
  "required": ["query"]
}

Invalid parameters are rejected before your handler runs:

Code
validation failed: query: required; limit: must be <= 100

πŸ“– Usage Guide

Struct Tag Reference

TagTypeDescriptionExample
requiredflagField must be providedmcp:"required"
descstringHuman-readable descriptionmcp:"desc=Search keyword"
defaultanyDefault valuemcp:"default=10"
minnumberMinimum value (inclusive)mcp:"min=0"
maxnumberMaximum value (inclusive)mcp:"max=100"
enumstringPipe-separated allowed valuesmcp:"enum=asc|desc"
patternstringRegex validationmcp:"pattern=^[a-z]+$"

Combine: mcp:"required,desc=User email,pattern=^[^@]+@[^@]+$"

Supported types: string, int, float64, bool, []T, nested structs.

Tools

Simple handler:

go
s.Tool("hello", "Say hello", func(ctx *gomcp.Context) (*gomcp.CallToolResult, error) {
    return ctx.Text("Hello, " + ctx.String("name")), nil
})

Typed handler (recommended):

go
type Input struct {
    Name  string `json:"name"  mcp:"required,desc=User name"`
    Email string `json:"email" mcp:"required,pattern=^[^@]+@[^@]+$"`
}

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Other Tools and Integrations View all alternatives
  • Memory logoMemory
    Verified

    Knowledge graph-based persistent memory system.

    πŸ› οΈ Other Tools and Integrations2 views
    Compare vs Memory β†’
  • Time logoTime
    Verified

    Time and timezone conversion capabilities.

    πŸ› οΈ Other Tools and Integrations3 views
    Compare vs Time β†’
  • Filesystem logoFilesystem
    Verified

    Secure file operations with configurable access controls.

    πŸ› οΈ Other Tools and Integrations2 views
    Compare vs Filesystem β†’
  • Git logoGit
    Verified

    Tools to read, search, and manipulate Git repositories.

    πŸ› οΈ Other Tools and Integrations4 views
    Compare vs Git β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
14
Stargazers on the source repository.
Last commit
10d ago
Most recent push to the default branch.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Gomcp

GoMCP requires Go version 1.25 or higher to build and run.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGomcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/zhangpanda-gomcp?style=directory)](https://allmcps.com/mcp/zhangpanda-gomcp)
HTML Embed
<a href="https://allmcps.com/mcp/zhangpanda-gomcp"><img src="https://allmcps.com/api/badge/zhangpanda-gomcp?style=directory" alt="Gomcp on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ› οΈOther Tools and Integrations
More technical detailsExpand β–Ύ
Last updatedSep 1, 2026
10/10 checks healthy over the last 33d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars14
GitHub Star CountTotal stargazers on GitHub representing community popularity (14 stars).
Last commit10d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Sep 1, 2026
44Quality signal: Fair Β· 44/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools17/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ› οΈ Other Tools and Integrations β†’Alternatives to Gomcp β†’Install in Claude DesktopInstall in CursorInstall in VS Code