MCP server · Developer tools
Go code helper (gopls) MCP server
by hloiseaufcms
Lets your AI read, navigate, test, and tidy Go code projects on your computer.

This is a small helper that connects your AI assistant to Go, the programming language. It lets the AI look through your Go project files, find where things are defined, run your tests, and check for problems. It is handy if you write Go code and want your AI to actually understand your project instead of guessing.
What is an MCP server? The 30-second version
On its own, your AI can only chat with you. An MCP server is a small helper program that gives your AI a new skill or a connection to another tool. This one connects your AI to gopls, the official helper for the Go language, so the AI can look things up inside your Go project and run Go commands for you. When you ask a question about your code, the AI passes it to this helper, and the helper talks to your Go project to find the answer.
What this MCP server does
You ask your AI something about your Go project, like where a function is defined or why a file has errors. The AI sends that request to this helper program running on your computer. The helper talks to gopls, which reads your Go files and works out the answer. Then the helper sends the result back to the AI, and the AI explains it to you in the chat. For bigger jobs like running tests or checking for known security issues, the helper runs the Go command and reports what happened.
Click to zoomWhat you can do with it
- Jump to where a function or variable is defined in your Go project
- List every place a piece of code is used
- Show errors and warnings for a file or the whole project
- Explain what a symbol means when you hover over it
- Rename a symbol everywhere it appears
- Run your Go tests and show coverage numbers
- Tidy up your go.mod file and check for known security issues
Try asking your AI
- “Where is the ServeStdio function defined in my project?”
- “Show me all the errors in cmd/api/server.go”
- “Run the tests in ./pkg/... and tell me the coverage”
- “Rename userService to accountService everywhere”
What it gives back to you
You get answers in the chat: file paths with line numbers, lists of places a symbol is used, plain descriptions of errors, test results with pass or fail counts, and coverage percentages. For renames and formatting, the helper returns the exact edits it would make, and the AI shows them to you. For tests and security checks, you see the output as it runs, then a summary at the end.
Before you start
What you need
- Go installed on your computer (version 1.25 or newer is tested)
- The mcp-gopls program installed and available on your system
- An AI client that supports MCP, like Claude Desktop, Cursor, or GitHub Copilot in VS Code
Good to know
It can change your files when you ask it to rename or format code, and it runs real Go commands like tests and go mod tidy in your project, so check the changes before saving.
Install it with your AI
Add Go code helper (gopls) MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check Go code helper (gopls) MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 4,066 MCP servers here for you.
Who it's for
Go developers who use an AI assistant and want it to actually understand their codebase, run tests, and help with refactoring.





