Install
$ agentstack add mcp-budougumi0617-godoc-mcp ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README — it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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
- Use the
-rootoption to specify the root directory of the Go project to analyze. - If omitted, the current directory or the environment variable
GODOC_MCP_ROOT_DIRwill 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 commentsgolang_inspect_package: List structs, functions, and methods in a packagegolang_get_struct_doc: Get detailed information about a structgolang_get_func_doc: Get detailed information about a functiongolang_get_method_doc: Get detailed information about a struct methodgolang_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 bygolang.org/x/tools/go/packagesGOCACHE: Required bygolang.org/x/tools/go/packagesGODOC_MCP_ROOT_DIR: Root directory of the Go project to analyze
License
MIT License
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: budougumi0617
- Source: budougumi0617/godoc-mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.