MCP Gopls
by hloiseaufcms
Connects AI clients to gopls for Go code navigation, diagnostics, editing, testing, coverage, and module tooling.
Install MCP Gopls
Run the project’s own setup commands, in order.
Setup steps from the project
hloiseaufcms/mcp-gopls installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com
go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latestdocker run --rm -i \ -v /absolute/path/to/your/go/project:/workspace \ ghcr.io/hloiseau/mcp-gopls:latest \ --workspace /workspacegit clone https://github.com/hloiseau/mcp-gopls.gitcd mcp-goplsgo build ./cmd/mcp-gopls
Overview
Use cases
- Navigate Go definitions and references from an AI coding client
- Review and fix Go diagnostics with structured results
- Run Go tests and inspect coverage through MCP
- Format, rename, and apply Go code actions
- Inspect modules and run vulnerability checks
Key features
- Go LSP navigation and workspace symbol search
- Diagnostics, hover, completion, formatting, and code actions
- Symbol renaming through MCP
- Go tests and coverage analysis
- Module tidy, graph inspection, and vulnerability checks
- Workspace resources, prompts, and progress notifications
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 8/23/2026 via OSV.dev
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How MCP Gopls works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about MCP Gopls
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/hloiseaufcms-mcp-gopls)<a href="https://allmcps.com/mcp/hloiseaufcms-mcp-gopls"><img src="https://allmcps.com/api/badge/hloiseaufcms-mcp-gopls?style=directory" alt="MCP Gopls on AllMCPs" /></a>