Gopls MCP
Semantic Go code analysis over MCP, using gopls to resolve definitions, references, interfaces, call hierarchies, and dependencies.
Install Gopls MCP
Run the project’s own setup commands, in order.
Setup steps from the project
gopls-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
codex plugin marketplace add https://github.com/xieyuschen/gopls-mcp.gitcodex plugin add gopls-mcpcurl -sSL https://gopls-mcp.org/install.sh | bashirm https://gopls-mcp.org/install.ps1 | iex
Overview
Use cases
- Find every concrete Go type that implements an interface
- Trace callers and callees across a Go project
- Resolve definitions and references across packages
- Map dependencies between Go packages
Key features
- Type-checker-level Go analysis
- Language-aware definitions and references
- Interface implementation discovery
- Call-hierarchy tracing
- Package-dependency mapping
- Cross-package and shadowed-scope resolution
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Gopls MCP works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Gopls MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gopls-mcp)<a href="https://allmcps.com/mcp/gopls-mcp"><img src="https://allmcps.com/api/badge/gopls-mcp?style=directory" alt="Gopls MCP on AllMCPs" /></a>