Go Docs
Provides real-time access to Go package documentation, function signatures, and type definitions directly from pkg.go.dev. It enables LLMs to search for packages, retrieve specific versions, and access code examples from the official Go module ecosys
What is Go Docs?
Go Docs is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to provides real-time access to go package documentation, function signatures, and type definitions directly from pkg.go.dev. it enables llms to search for packages, retrieve specific versions, and acces...
Provides real-time access to Go package documentation, function signatures, and type definitions directly from pkg.go.dev. It enables LLMs to search for packages, retrieve specific versions, and access code examples from the official Go module ecosys
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Provides real-time access to Go package documentation, funct
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx godocConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Go Docs
godoc-mcp is an MCP server written in Go that provides real-time access to Go package documentation sourced directly from pkg.go.dev. It lets AI assistants search for packages, retrieve function signatures, inspect type definitions, view source code, and navigate the full Go module ecosystem without leaving the chat interface. Developers use it when writing or reviewing Go code to instantly look up standard library APIs, third-party packages at specific versions, and local module documentation.
Prerequisites
- Go 1.21+ installed (for building from source) OR Docker (for the container image)
- The `godoc-mcp` binary on your PATH after installation
- An MCP-compatible client such as Claude Desktop or Claude Code
- Optional: GOPATH and GOMODCACHE set if querying local module cache
Install godoc-mcp
Install the binary using `go install`. This downloads and compiles godoc-mcp from source and places the binary in your Go bin directory.
go install github.com/mrjoshuak/godoc-mcp@latestVerify the installation
Confirm the binary is on your PATH and works correctly.
godoc-mcp --version
# or run it directly to start in stdio mode
godoc-mcpAdd to Claude Code as an MCP server
Register godoc-mcp with Claude Code using the CLI. It runs in stdio mode by default.
claude mcp add godoc-mcp -- godoc-mcpConfigure Claude Desktop
Add the server to your claude_desktop_config.json. Optionally set GOPATH and GOMODCACHE to help godoc-mcp resolve local module dependencies.
# Edit ~/Library/Application Support/Claude/claude_desktop_config.jsonOptional: run via Docker for isolation
Use the official Docker image for a self-contained setup. Mount your project directory to enable local module documentation lookups.
docker run -i --rm \
-v /path/to/project:/workspace \
ghcr.io/mrjoshuak/godoc-mcp:latestGo Docs Examples
Client configuration (Claude Desktop)
Standard configuration using the locally installed godoc-mcp binary. Add GOPATH and GOMODCACHE if you want to resolve local module documentation.
{
"mcpServers": {
"godoc": {
"command": "godoc-mcp",
"env": {
"GOPATH": "/Users/yourname/go",
"GOMODCACHE": "/Users/yourname/go/pkg/mod"
}
}
}
}Prompts to try
These prompts use the get_doc and list_packages tools to look up Go documentation from pkg.go.dev and local modules.
- "What methods are available on http.Request?"
- "Show me the interfaces in the io package related to reading."
- "Look up the documentation for the sync.Map type."
- "List all sub-packages in the golang.org/x/tools module."
- "Show the source code for the json.Marshal function."
- "What packages does my project at /path/to/project contain?"Troubleshooting Go Docs
`godoc-mcp` binary not found after `go install`
Ensure `$(go env GOPATH)/bin` is on your PATH. Add `export PATH=$PATH:$(go env GOPATH)/bin` to your shell profile (~/.zshrc or ~/.bashrc) and restart your terminal.
Documentation not found for a private or local package
Set `working_dir` in the tool call to your project root, and ensure GOPATH and GOMODCACHE point to your local Go environment in the MCP server config. Local packages are resolved via the module cache, not pkg.go.dev.
Results are truncated for large packages
Use the `page` and `page_size` parameters supported by the get_doc tool to paginate through large documentation sets, or use `target` to narrow the query to a specific symbol.
Frequently Asked Questions about Go Docs
What is Go Docs?
Go Docs is a Model Context Protocol (MCP) server that provides real-time access to go package documentation, function signatures, and type definitions directly from pkg.go.dev. it enables llms to search for packages, retrieve specific versions, and access code examples from the official go module ecosys It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Go Docs?
Follow the installation instructions on the Go Docs GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Go Docs?
Go Docs works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Go Docs free to use?
Yes, Go Docs is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Go Docs Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Go Docs? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Go Docs in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Go Docs?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.