SkillTide Submit
Official description7 sourcesMCP servers8d ago
hloiseaufcms/mcp-gopls

hloiseaufcms/mcp-gopls

๐ŸŽ๏ธ ๐Ÿ  - Go code analysis via gopls, the Go language server
View on GitHub โ†—Direct link ยท no redirect page
Official descriptionmcp-gopls โ€“ MCP server for Go (gopls) < markdownlint-disable MD022 MD012 MD029 MD060 A Model Context Protocol (MCP) server that lets AI assistants use Goโ€™s LSP (gopls) for navigation, diagnostics, testing, coverage, and more.
Config template (adjust for your client)
claude mcp add mcp-gopls -- npx -y mcp-gopls
A pasteable skeleton generated from the repository name. Check the project README for the exact package and arguments.
Star count
104 โ˜… ยท hloiseaufcms/mcp-gopls ยท read from the repository page ยท (checked 2026-10-16 20:00:20)
Source
collected from the punkpeye/awesome-mcp-servers list ยท type: MCP server
Harvest history
first seen 2026-10-09 ยท last seen 2026-10-16 ยท seen 32ร— ยท listed by 7 sources
Score
score 703 ยท 104 โ˜… ยท 7 sources ยท mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆœๅŠก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository hloiseaufcms/mcp-gopls๏ผ›first catalogued 2026-10-09๏ผ›last seen 2026-10-16ใ€‚There is no official certification or quality rating here โ€” we record sources and dates only.
Third-party quality signals

mcp-gopls โ€“ MCP server for Go (gopls)

ไปฅไธ‹ๆ‘˜ๅฝ•่‡ช่ฏฅไป“ๅบ“็š„ README๏ผˆ็‰‡ๆฎต๏ผ‰ ยท ๅœจ GitHub ่ฏปๅฎŒๆ•ด README โ†’

A Model Context Protocol (MCP) server that lets AI assistants use Goโ€™s LSP (gopls) for navigation, diagnostics, testing, coverage, and more.
> **TL;DR:** If you use Claude / Cursor / Copilot with Go, mcp-gopls gives the AI full LSP powers:
> go-to-definition, references, hover, completion, go test, coverage, go mod tidy, govulncheck, etc.
Overview
This MCP server helps AI assistants to:
- Use LSP to analyze Go workspaces
- Navigate to definitions, references, and workspace symbols
- Format, rename, and inspect code actions without leaving MCP
- Run Go tests, coverage, go mod tidy, govulncheck, and module graph commands with structured results
- Read workspace resources (overview + go.mod) and consume curated prompts
> **Status:** Actively developed โ€“ used in real projects.
> Tested with Go 1.25.x and gopls@latest.
Architecture
This project uses the mark3labs/mcp-go library to implement the Model Context Protocol. The MCP integration enables seamless communication between AI assistants and Go tools.
The server communicates with gopls, the official language server for Go, via the Language Server Protocol (LSP).
Features
- **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)
- **Progress streaming**: long-running commands emit notifications/progress events so clients can surface status updates
Feature comparison: mcp-gopls vs built-in gopls MCP
As of gopls v0.20.0, the built-in MCP server exposes these tools:
go_context, go_diagnostics, go_file_context, go_file_diagnostics,
go_file_metadata, go_package_api, go_references, go_rename_symbol,
go_search, go_symbol_references, go_workspace, go_vulncheck.
| Feature / capability | mcp-gopls (this project) | Built-in gopls MCP |
|----------------------|----------------------------|----------------------|
| Go-to-definition | Yes (go_to_definition tool) | No dedicated MCP tool (not in tool list) |
| Find references | Yes (find_references) | Yes (go_references, go_symbol_references) |
| Diagnostics (file / workspace) | Yes (check_diagnostics) | Yes (go_diagnostics, go_file_diagnostics) |
| Hover information | Yes (get_hover_info) | No dedicated MCP tool (not in tool list) |
| Completion | Yes (get_completion) | No dedicated MCP tool (not in tool list) |
| Formatting | Yes (format_document) | No dedicated MCP tool (not in tool list) |
| Rename symbol | Yes (rename_symbol) | Yes (go_rename_symbol) |
| Code actions | Yes (list_code_actions) | No dedicated MCP tool (not in tool list) |
| Workspace symbol search | Yes (search_workspace_symbols) | Yes (go_search) |
| Package / workspace API/context tools | No dedicated MCP tool | Yes (go_package_api, go_file_context, go_file_metadata, go_workspace, go_context) |
| Run go test | Yes (run_go_test) | No MCP tool for running tests |
| Coverage analysis | Yes (analyze_coverage) | No MCP tool for coverage |
| go mod tidy | Yes (run_go_mod_tidy) | No MCP tool for go mod tidy |
| govulncheck | Yes (run_govulncheck) | Yes (go_vulncheck) |
| Module graph (go mod graph) | Yes (module_graph) | No MCP tool for module graph |
| Extra MCP resources | Yes (resource://workspace/overview, resource://workspace/go.mod) | Not documented as MCP resources |
| Custom MCP prompts | Yes (summarize_diagnostics, refactor_plan) | Not exposed as MCP prompts (only model instructions) |
| Model instructions shipped with server | No special mechanism (documented in README/docs) | Yes: gopls mcp -instructions prints usage workflows |
If you want full LSP-like editing + tooling from MCP (definition, hover, completion, format, rename, code actions, go test, coverage, go mod tidy, module graph), mcp-gopls is strictly richer.
Source
awesome ยท https://github.com/hloiseaufcms/mcp-gopls
Browse by field
MCP servers
Traction
104 โ˜…
added
yesterday

More in MCP servers

All 5,525 in MCP servers โ†’

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields โ†’

โ† Back to index