1. Conduid
  2. Developer Tools
  3. Godoc MCP
MCP server · Developer Tools

Godoc MCP

The MCP server to search local Go pacakge

Unclaimed MIT last commit a year ago mcpmcp-serverdevtoolsgogolang
54Fair

Scored yesterday · breakdown

About Godoc MCP

Godoc MCP is an MCP server published by budougumi0617 in the Developer Tools category: the MCP server to search local Go pacakge.

The repository has 2 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/budougumi0617/godoc-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Godoc MCP

Powered by Claude · Grounded in docs

I know everything about Godoc MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.0.2v0.0.2 · 29 Apr 2025What's Changed ci: fix ci by @budougumi0617 in https://github.com/budougumi0617/godoc-mcp/pull/5 Full Changelog: https://github.com/budougumi0617/godoc-mcp/compare/v0.0.1...v0.0.2
v0.0.1v0.0.1 · 29 Apr 2025What's Changed Release for v0.0.1 by @personal-app-for-budougumi0617 in https://github.com/budougumi0617/godoc-mcp/pull/1 ci: fix ci by @budougumi0617 in https://github.com/budougumi0617/godoc-mcp/pull/2 ci: fix ci by @budougumi0617 in…

README

godoc-mcp

Overview

godoc-mcp is a server that provides information about Go project packages, types, functions, constants, and variables via the Multi-Command Protocol (MCP). It allows you to flexibly retrieve and utilize Go code documentation and structure from external tools.

Main Features

  • Retrieve a list of Go packages
  • List exported structs, functions, and methods in a package
  • Get detailed information about structs (fields, methods, comments)
  • Get detailed information about functions and methods (signature, comments, examples)
  • Get detailed information about constants and variables in a package

Installation

Go 1.24.2 or later is required.

make build

Usage

Start the Server

./godoc-mcp -root <root directory of your Go project>
  • Use the -root option to specify the root directory of the Go project to analyze.
  • If omitted, the current directory or the environment variable GODOC_MCP_ROOT_DIR will be used.

Using as an MCP Tool

You can use the following tools from an MCP client:

  • golang_list_packages: Get a list of packages and their comments
  • golang_inspect_package: List structs, functions, and methods in a package
  • golang_get_struct_doc: Get detailed information about a struct
  • golang_get_func_doc: Get detailed information about a function
  • golang_get_method_doc: Get detailed information about a struct method
  • golang_get_const_and_var_doc: Get detailed information about constants and variables

Example: mcp settings for Roo Code

{
  "mcpServers": {
    "godoc-mcp": {
      "type": "stdio",
      "command": "godoc-mcp",
      "env": {
        "GODOC_MCP_ROOT_DIR": "${env:HOME}/go/src/github.com/golang/tools/internal",
        "GOPATH": "${env:HOME}/go",
        "HOME": "${env:HOME}",
        "GOCACHE": "${env:HOME}/Library/Caches/go-build"
      },
    }
  }
}

Test

go test ./...

Dependencies

  • github.com/ktr0731/go-mcp
  • golang.org/x/exp/jsonrpc2
  • golang.org/x/tools

Environment Variables

  • GOPATH: Required by golang.org/x/tools/go/packages
  • GOCACHE: Required by golang.org/x/tools/go/packages
  • GODOC_MCP_ROOT_DIR: Root directory of the Go project to analyze

License

MIT License

README fetched from the repository yesterday. The original is authoritative.

Questions

About Godoc MCP

How do I install Godoc MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Godoc MCP safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Godoc MCP still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.