Skip to content
MCP server

Gopls MCP

MCP server giving AI agents compiler-accurate Go code navigation via gopls

Pricing
Open source
Platforms
CLI, macOS, Linux
Version
1.0.7
Listing updated
today

Similar MCP servers

About Gopls MCP

Gopls MCP is an open-source MCP server for developer tools. It is available on CLI, macOS, Linux and Windows.

The README says gopls-mcp brings type-checker-level analysis to LLM agents working on Go code, resolving interface satisfaction, cross-package identity and shadowed scopes instead of relying on text matching. It is a fork of the gopls language server packaged for the Model Context Protocol.

The main payoff is on semantic questions such as finding every concrete type that implements an interface, tracing call hierarchies and mapping package dependencies. The project cites a benchmark over 11 tasks where it used 2 to 4 times fewer tool calls than grep-based navigation, and notes that plain grep is just as effective for simple same-file lookups.

It suits developers who use AI coding agents on Go codebases and want those agents to navigate code by symbol rather than by string. Installation is offered as a Claude Code or Codex plugin, or by a shell or PowerShell install script.

What it does

Type-aware symbol resolution
Resolves Go identifiers using the type system, including interface satisfaction and shadowed scopes.
Interface implementation lookup
Finds concrete types that implement a given interface across packages.
Call hierarchy tracing
Follows callers and callees to map how functions are invoked.
Package dependency mapping
Shows how Go packages depend on one another.
Plugin installation
Available as a Claude Code or Codex plugin that installs the binary and routing skill automatically.

Good for

  • Finding all implementations of an interface before changing it
  • Tracing where a function is called across a large Go module
  • Mapping package dependencies to plan a refactor
  • Giving a coding agent precise definitions and references instead of grep results

Pricing

Open source

Free, BSD-licensed open source.

Gopls MCP FAQ

Is gopls-mcp an official Go team product?

No. The README states it is a community-driven fork of gopls, not an official Go team product, and is not affiliated with or endorsed by Google.

What license does it use?

The README says it is licensed under the same BSD license as its upstream gopls source.

When is plain grep good enough?

The README says that for simple same-file lookups, bash or grep remains equally effective and carries less overhead.

Is Gopls MCP free?

Yes. Gopls MCP is open source, so you can use and self-host it for free.

What are the best alternatives to Gopls MCP?

The closest alternatives to Gopls MCP are Go Proxy MCP, Linux MCP daemon (mcpd), Ai Architect MCP Codebase, Llmmcp and gomddoc.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.

How AIPoweredBot checks servers