Back to MCP Directory
Godoc
Model Context Protocol low risk

Godoc

godoc-mcp provides efficient access to Go documentation for LLMs, reducing token usage and improving understanding of Go projects.

Connections & Capabilities

Connects To

GitHub

Capabilities

read

Quickstart

Config

{
  "mcpServers": {
    "godoc": {
      "command": "/path/to/godoc-mcp",
      "args": [],
      "env": {
        "GOPATH": "/path/to/go",
        "GOMODCACHE": "/path/to/go/pkg/mod"
      }
    }
  }
}

Exposed MCP Tools (1)

safe
get_doc

Retrieves Go documentation for a specified package or symbol.

Read-only access to documentation.

Safety Assessment

godoc-mcp is generally safe for use as it primarily provides read-only access to Go documentation. However, care should be taken to sanitize inputs to prevent command injection vulnerabilities. Ensure GOPATH and GOMODCACHE are correctly configured to avoid unexpected behavior.

  • Read-only access to Go documentation
  • No direct filesystem write operations
  • No network access required for local packages
  • Sandboxed execution of `go doc` commands
  • Potential for command injection if `path` or `target` parameters are not properly sanitized
  • Relies on the security of the `go doc` command itself
  • Exposure of local file paths if not used carefully
  • Incorrectly configured GOPATH/GOMODCACHE could lead to unexpected behavior
Godoc Review, Pricing & Alternatives (2026) | Flaex AI