# gopls-mcp

> Semantic code analysis and navigation for Go projects.

- **URL**: https://followmcp.com/en/servers/gopls-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 60
- **FMRS Score**: 47/100 (Grade D)
- **Source**: https://github.com/xieyuschen/gopls-mcp

- **Runtimes**: Prebuilt binary
- **Auth**: No credential needed

## Overview
gopls-mcp gives AI agents semantic analysis capabilities for Go code, including queries for definitions, interface implementations, references, call relationships, and dependencies. The project says its analysis recognizes the type system, cross-package identity, and scopes; its benchmark covers 11 tasks and reports using 2–4× fewer tool calls than grep-based navigation. For simple same-file lookups, ordinary bash/grep may be sufficient. This is a community-driven fork of gopls, not an official Go team product, and is not endorsed by Google.

## Best for
- Go projects that need type-aware navigation and semantic analysis.
- Semantic tasks such as finding interface implementations, call hierarchies, or package dependencies.

## Not for
- Projects that do not use Go.
- Simple same-file lookups where ordinary text search is sufficient.

## Required permissions
- The installation steps run project-provided installation scripts; review the scripts and binary source before use.
- Analysis is intended for Go project code. The actual access permissions depend on installation and client configuration; the supplied material does not specify their scope.

## Risks
- The project is a community-driven gopls fork, not an official Go team product, and is not endorsed by Google.
- The installation instructions execute remote scripts through shell or PowerShell; review the scripts and verify download sources.
- The rename tool is described as a preview that applies no changes; do not treat its preview as a completed edit.

## Tools (7)
- `go_definition`: Jump to a Go symbol definition using semantic location.
- `go_implementation`: Find interface implementations or types that implement interfaces.
- `go_symbol_references`: Find all uses or references of a symbol across the codebase.
- `go_get_call_hierarchy`: Trace function call relationships to find callers and callees.
- `go_get_dependency_graph`: Analyze dependencies between packages and modules.
- `go_dryrun_rename_symbol`: Preview the changes a cross-file symbol rename would make; this is a dry run and applies no changes. Symbol references can be checked first to assess impact.
- `go_list_tools`: List the available tools with documentation and parameter schemas.
