Skip to content
The Daily Repo

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

Demo Animation

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

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
oOo0oOo / lean-lsp-mcp5496 days agoMITNo downloads
blackwell-systems / agent-lsp1745 days agoMITMac, Windows, Linux
engasnm111 / lnwjud2095 days agoMITWindows, 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

Type to search.

Try