Go LSP (gopls) plugin for Claude Code

Use gopls diagnostics, refactoring support and code navigation when working on Go in Claude Code.

How to install the Go LSP (gopls) plugin in Claude Code

Make gopls available to Claude Code and open the Go module or workspace the language server should index.

  1. Install the language server separately and make sure gopls is available on your PATH.
  2. Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
  3. Start a new Claude Code session in a project for the language and open a source file to confirm the server loads.
Claude Code · Install in Claude Code
claude plugin install gopls-lsp@claude-plugins-official

Try a first task

Trace a changed Go interface through its implementations. Confirm a known stale method signature is flagged by gopls before checking that the fix removes it and the package still compiles.

Package components

  • Go language server

Publisher references

View on Claude Marketplace

Anthropic

Browse Plugins