MCP Gopls
UnclaimedModel Context Protocol (MCP) server for Go using gopls – LSP-powered analysis, tests, coverage, and tooling.
Install
go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latestSet up this server
More in AI & ML
Browse the full directoryUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
16 of 16 tools
Documented tools (16)
From project documentation. A server handshake does not verify each tool’s description or behavior.
analyze_coverage
“Run analyzecoverage for ./pkg/... with per-function stats.”
check_diagnostics
“Request diagnostics for cmd/mcp-gopls/main.go.”
find_references
“Ask the tool for references to ServeStdio.”
format_document
“Run the formatter over pkg/tools/refactor.go.”
get_completion
“Trigger completions at pkg/server/server.go:55.”
get_hover_info
“Call gethoverinfo on pkg/tools/workspace.go:88.”
go_to_definition
“Use gotodefinition on pkg/server/server.go:42.”
list_code_actions
“List code actions for pkg/server/server.go:80-90.”
module_graph
“Call modulegraph to inspect dependencies.”
refactor_plan
“Feed refactorplan the diagnostics JSON to plan fixes.”
rename_symbol
“Rename clientFactory to newClientFactory via the tool.”
run_go_mod_tidy
“Invoke rungomodtidy to sync go.mod.”
run_go_test
“Execute rungotest on ./cmd/....”
run_govulncheck
“Run rungovulncheck and stream findings.”
search_workspace_symbols
“Search workspace symbols for NewWorkspaceConfig.”
summarize_diagnostics
“Use the summarizediagnostics prompt on the latest diagnostics.”
Tool change history
FAQ
Questions about MCP Gopls MCP Server
- How do I connect MCP Gopls MCP Server to Claude?
- The listing records `go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latest` as its setup step. Run it, then follow the repository's instructions for the client configuration; the listing names Claude Desktop, Cursor, VS Code as compatible clients.
- Is MCP Gopls MCP Server free?
- The listed licence is Apache-2.0. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can MCP Gopls MCP Server do?
- MCP Gopls MCP Server documents 16 tools to the agent, including analyze_coverage, check_diagnostics, find_references. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.