# Gopls MCP

> Gopls MCP is an open-source MCP server for developer tools. MCP server giving AI agents compiler-accurate Go code navigation via gopls. It is available on CLI, macOS, Linux and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/xieyuschen/gopls-mcp
- **MCP Registry name:** io.github.xieyuschen/gopls-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## 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.

## Alternatives

- [Go Proxy MCP](https://ai-powered.com/mcp/go-proxy-mcp): Go Proxy MCP is an open-source MCP server for developer tools.
- [Linux MCP daemon (mcpd)](https://ai-powered.com/mcp/linux-mcp-daemon-mcpd): Linux MCP daemon (mcpd) is an open-source MCP server for cloud and infrastructure.
- [Ai Architect MCP Codebase](https://ai-powered.com/mcp/ai-architect-mcp-codebase): Ai Architect MCP Codebase is an open-source MCP server for developer tools.
- [Llmmcp](https://ai-powered.com/mcp/llmmcp): Llmmcp is an open-source MCP server for developer tools.
- [gomddoc](https://ai-powered.com/mcp/gomddoc): gomddoc is a freemium MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [Agentic MCP](https://ai-powered.com/mcp/agentic-mcp): Agentic MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/gopls-mcp
