{"repo":"hloiseau/mcp-gopls","free":true,"listed":false,"github":"https://github.com/hloiseau/mcp-gopls","clone":"git clone https://github.com/hloiseau/mcp-gopls.git","description":"Model Context Protocol (MCP) server for Go using gopls – LSP-powered analysis, tests, coverage, and tooling.","language":"Go","stars":97,"topics":["ai-agents","ai-tools","developer-tools","go","golang","gopls","lsp","mcp","model-context-protocol"],"license":"Apache-2.0","category":"mcp-servers","readme_excerpt":"mcp-gopls – MCP server for Go (gopls) 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","default_branch":null,"files":null,"tree":[],"storefront":"/r/hloiseau","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hloiseau/mcp-gopls/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}