gopherMCP
is an MCP (Model Context Protocol) server that provides a client access to Go documentation for any package. If you are using an LLM to edit code, this can help the LLM look up documentation and not need to rely on outdated docs it may have in its own training data.
go install github.com/njern/gophermcp
- Create an
mcp.json
file in the.cursor
directory in your project root folder unless one already exists. - Add
gophermcp
like this:
{
"mcpServers": {
"gophermcp": {
"command": "/path/to/go/binaries/gophermcp",
"args": []
}
}
}
This project is licensed under the MIT License - see the LICENSE file for details.
Expand into other tools which may be useful for an LLM creating Go code.
This project was inspired by godoc-mcp, which forms the basis for the godoc
package.