Skip to content
SkillForAgents.com
CommunityFreeFull-Stack Coding

mcp-gopls

MCP server wrapping gopls, Go's official language server, for LSP-grade navigation, diagnostics, and test tooling.

View Source
Install
go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latest

mcp-gopls puts Go’s own language server, gopls, behind an MCP interface, giving an agent the same semantic understanding a human gets from an IDE rather than plain-text file reading. Go-to-definition, find-references, hover, completion, workspace symbol search, and code actions all route through LSP, so results reflect actual type information instead of pattern matching.

Where it goes further than gopls’ own experimental built-in MCP server is tooling: run_go_test and analyze_coverage execute tests and report coverage directly, run_go_mod_tidy and module_graph handle dependency housekeeping, and run_govulncheck surfaces known vulnerabilities — all as structured MCP tool results rather than shell output an agent has to parse. Long-running commands stream progress notifications so a client can show status rather than blocking silently.

It’s a standalone Go binary (go install), configurable via MCP_GOPLS_* environment variables or CLI flags for workspace path, gopls binary location, and logging, and is documented against Claude, Cursor, and Copilot. Tested against Go 1.25.x and the latest gopls release.

Related

Similar MCP Servers

C
Verified

Cloudflare

Official Cloudflare MCP servers — Workers, KV, R2, D1, DNS, and the rest of the platform from an agent session.

DevOps & CI/CDFull-Stack Coding4.1KFreemium
C
Verified

Context7

Pulls current, version-accurate library documentation directly into context — no stale training-data APIs.

Search & ResearchFull-Stack Coding60.5KFreemium
EM
Verified

ESLint MCP Server

Official ESLint MCP server — runs real lint checks against a project's own config instead of an agent guessing at JavaScript style rules.

Full-Stack Coding27.5KFree