gophermcp
@njern
An MCP server to help LLM:s write better Go code
Overview
What is gophermcp?
gophermcp is an MCP (Model Context Protocol) server that gives LLMs access to Go documentation for any package. It helps LLMs look up up-to-date documentation instead of relying on potentially outdated training data.
How to use gophermcp?
Install the server with go install github.com/njern/gophermcp. To use it with Cursor, create an mcp.json file in the .cursor directory of your project root and add the server configuration with the command path to the gophermcp binary.
Key features of gophermcp
- Provides Go documentation for any package
- Helps LLMs use current docs instead of outdated training data
- Simple installation via
go install - Integrates with Cursor through MCP configuration
- Licensed under the MIT License
Use cases of gophermcp
- An LLM editing Go code can look up package documentation on demand
- Developers can ensure their LLM assistant always uses accurate, up-to-date Go reference material
FAQ from gophermcp
What does gophermcp do?
gophermcp is an MCP server that gives LLMs direct access to Go documentation for any package, so they don't need to rely on stale data in their training set.
How do I install gophermcp?
Run go install github.com/njern/gophermcp to download and compile the server binary.
How do I use gophermcp with Cursor?
Create an mcp.json file inside the .cursor directory of your project root, then add the gophermcp server configuration with the full path to the binary and no arguments.
What alternatives exist?
This project was inspired by godoc-mcp, which provides similar functionality.
What license does gophermcp use?
gophermcp is released under the MIT License.