Add it to Claude Code
claude mcp add gopls-mcp -- npx -y @xieyuschen/gopls-mcpMake your agent remember this setup
gopls-mcp's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- Language-level code analysis for Go
- Surgical code navigation instead of text search
- Provides scientifically accurate definitions and references
- Optimized for LLM context window efficiency
Tools 1
gopls_analysisPerforms language-level code analysis and navigation for Go projects.Try it
Original README from xieyuschen/gopls-mcp
gopls-mcp
Give your AI Agent the compiler's brain, not a text searcher.
Documentation: https://gopls-mcp.org.
gopls-mcp delivers lightning-fast, language-level analysis directly to your LLM. Unlike standard retrieval tools that flood the context window with irrelevant text, this tool performs surgical code navigation.
By providing only the scientifically accurate definitions and references, it maximizes your model's attention span and keeps the reasoning chain pure. Zero noise, absolute structural accuracy, and instant response times.
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 specfic 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.