Gopls MCP server
io.github.xieyuschen/gopls-mcp·v1.0.7·59 starsSemantic code analysis for Go using gopls - language-aware navigation, definitions, references
59 stars
Reviews
Write oneNobody has reviewed Gopls yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Gopls tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- –Code scanremote-only server, no package to scann/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualityno auth information5/15
- Maintenancelast push 67 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Gopls compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 63/100
- higher than 18% of 48,255 servers
- GitHub stars
- 59
- more than 95% of 28,688 servers
Install Gopls in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the Gopls repository's README, as published. We do not edit it. Read it on GitHub
gopls-mcp
Give your AI Agent the compiler's brain, not a text searcher.
Documentation: https://gopls-mcp.org
gopls-mcp delivers type-checker-level semantic analysis directly to your LLM. Unlike text search, it resolves Go's type system — interface satisfaction, cross-package identity, and shadowed scopes — with the same precision as the compiler.
Where it pays off most is on semantic tasks: finding all concrete types that implement an interface, tracing call hierarchies, and mapping package dependencies. A benchmark over 11 tasks shows gopls-mcp uses 2–4× fewer tool calls and finishes faster than grep-based navigation on those tasks. For simple same-file lookups, plain bash/grep remains equally effective and carries less overhead.
Install
Claude Code (plugin — recommended)
/plugin marketplace add https://github.com/xieyuschen/gopls-mcp.git
/plugin install gopls-mcpThe plugin automatically installs the binary and injects the routing skill — no manual setup required.
Codex (plugin — recommended)
codex plugin marketplace add https://github.com/xieyuschen/gopls-mcp.git
codex plugin add gopls-mcpManual install (all clients)
Linux / macOS:
curl -sSL https://gopls-mcp.org/install.sh | bashWindows (PowerShell):
irm https://gopls-mcp.org/install.ps1 | iexThen follow the per-client setup at https://gopls-mcp.org/quick-start.
Contribute
The project is actively developing, and feel free to raise PRs or issues if you find anything to improve. AI generated code will also be accepted but do remember to narrow the change to a specific feature for reviewer to quickly review them.
Disclaimer: gopls-mcp is a fork of gopls and is a community-driven project. It is not an official Go team product and is not affiliated with or endorsed by Google LLC. This project is licensed under the same BSD license as its upstream source.
Nothing above is checked by us. What we check is on the safety report.
Gopls: common questions
- Is Gopls MCP server safe?
- With care: it is graded C, so read the findings first (63/100). Read the Gopls safety report
- Does Gopls need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Gopls maintained?
- The last commit was 106 days ago (2026-07-21). The latest release is v1.0.7.
- What can I use instead of Gopls?
- Servers from other publishers that do the same job: Sem MCP server.
- How does Gopls compare with other MCP servers?
- safety score 63/100 (higher than 18% of 48,255 servers); github stars 59 (more than 95% of 28,688 servers). Full comparison.
Alternatives to Gopls
Same job from other publishers: the closest match first, then the best rated.
- SemEntity-level code intelligence: semantic diff, impact analysis, blame, and context for AI agentsnot reviewedWidely usedB