By xieyuschen
Perform semantic Go code analysis within Claude using gopls, including type-aware definitions, references, implementations, call hierarchy, dependency graphs, and rename previews without leaving the chat.
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.
/plugin marketplace add https://github.com/xieyuschen/gopls-mcp.git
/plugin install gopls-mcp
The plugin automatically installs the binary and injects the routing skill — no manual setup required.
codex plugin marketplace add https://github.com/xieyuschen/gopls-mcp.git
codex plugin add gopls-mcp
Linux / macOS:
curl -sSL https://gopls-mcp.org/install.sh | bash
Windows (PowerShell):
irm https://gopls-mcp.org/install.ps1 | iex
Then follow the per-client setup at https://gopls-mcp.org/quick-start.
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.
Admin access level
Server config contains admin-level keywords
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub xieyuschen/gopls-mcp --plugin gopls-mcpGo language server
Go language discipline: conventions, idioms, toolchain, and LSP-powered code intelligence
gopls language server for Claude Code while working on the AILANG Go implementation (~6k files, ~315k LOC). Provides instant diagnostics, go-to-definition, references, and hover types so the agent doesn't have to grep the codebase to navigate it.
Go repository intelligence for Claude Code. Replaces grep/rg/find for Go symbol search with AST-aware call graphs, blast radius, impact analysis, and 57+ semantic queries via the gograph MCP server.
Advanced Go skills for concurrency, error handling, and interfaces.
Semantic code analysis MCP server providing intelligent code understanding, refactoring suggestions, and codebase navigation through language server protocol integration.