hloiseau / mcp-gopls
Model Context Protocol (MCP) server for Go using gopls – LSP-powered analysis, tests, coverage, and tooling.
Why this job: name: mcp; says: model context protocol; topics: model-context-protocol, mcp

What it does
- Configurable runtime. --workspace, --gopls-path, --log-level, --rpc-timeout, and --shutdown-timeout flags + env vars (MCP_GOPLS_*)
- Structured logging. Text/JSON logging with slog and optional file output
- Extended LSP surface. navigation, diagnostics, formatting, rename, code actions, hover, completion, workspace symbols
- Test & tooling helpers. coverage analysis, go test, go mod tidy, govulncheck, go mod graph
- MCP extras. resources (resource://workspace/overview, resource://workspace/go.mod) and prompts (summarize_diagnostics, refactor_plan)
Get started
go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latest You need: Go 1.25+ (tested with go1.25.4); gopls installed (go install golang.org/x/tools/gopls@latest); Optional: govulncheck (go install golang.org/x/vuln/cmd/govulncheck@latest)
- Maintenance
- Active
- Last commit 4 months ago
- Stars
- 104
- On GitHub
- Licence
- Apache-2.0
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- v2.1.0
- Released 4 months ago
- Built with
- Go
- 98% of the code
Is it looked after?
- Contributors
- 0
- Last 90 days
- Issues
- 100% closed
- 0 still open
- Pull requests
- 9 merged
- 7 waiting
- Releases
- 4
- 4 in the last year
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| oOo0oOo / lean-lsp-mcp | 549 | 6 days ago | MIT | No downloads |
| blackwell-systems / agent-lsp | 174 | 5 days ago | MIT | Mac, Windows, Linux |
| engasnm111 / lnwjud | 209 | 5 days ago | MIT | Windows, Linux |
More: languages, topics and project record
Languages
- Go 98%
- Makefile 1%
- Shell 1%
- Dockerfile <1%
Topics
- ai-agents
- ai-tools
- developer-tools
- go
- golang
- gopls
- lsp
- mcp
- model-context-protocol
Project record
- JobMCP servers
- StatusListed
- Commits27
- Forks11
- Watching2
- Stars in 28 days+1
- CreatedApr 5, 2025
- First seen by usNov 7, 2026
- CheckedNov 7, 2026
