mcp-gopls
mcp-gopls is an MCP server. Its repository has 105 GitHub stars and is licensed under Apache-2.0; we last read it on 2026-10-27.
Serves a Model Context Protocol (MCP) for Go using gopls, providing LSP-powered analysis, tests, coverage, and tooling.
Install
Read from mcp-gopls’s own README, close to verbatim -- not written by us, and not guessed.
go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latest
What it reaches, and what it needs
Reaches
○ not recognised
Credential
○ none found
Maintenance
Stars
105
State
listed
Licence
Apache-2.0
From the repository
Model Context Protocol (MCP) server for Go using gopls – LSP-powered analysis, tests, coverage, and tooling.
What mcp-gopls can do
14 tools documented in its README. An AI client calls these by name.
go_to_definition- Navigate to the definition of a symbol
find_references- List all references for a symbol
check_diagnostics- Fetch cached diagnostics for a file
get_hover_info- Return hover markdown for a symbol
get_completion- Return completion labels at a position
format_document- Return formatting edits for an entire document
rename_symbol- Return workspace edits for a rename
list_code_actions- List available code actions for a range
search_workspace_symbols- Search workspace-wide symbols
analyze_coverage- Run `go test` with coverage + optional per-function report
run_go_test- Execute `go test` for a package/pattern
run_go_mod_tidy- Execute `go mod tidy`
run_govulncheck- Execute `govulncheck ./...`
module_graph- Return `go mod graph` output
Read from the README; names are kept only if the README contains them.
Common questions about mcp-gopls
- What does mcp-gopls do?
- Serves a Model Context Protocol (MCP) for Go using gopls, providing LSP-powered analysis, tests, coverage, and tooling.
- How do I install mcp-gopls?
- Its own README gives this command: go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latest. Run it where your MCP client can launch the server, and check the README for any settings it asks for.
- Is mcp-gopls official and is it maintained?
- We found nothing naming it as a vendor’s official server. Its repository has 105 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-06-22.
- What licence does mcp-gopls use?
- The repository declares the Apache-2.0 licence.