MCP Directory
Back

mcp-gopls

by hloiseau · Go · ★ 90

Model Context Protocol (MCP) server for Go using gopls – LSP-powered analysis, tests, coverage, and tooling.

#ai-agents#ai-tools#developer-tools#go#golang#gopls#lsp#mcp#model-context-protocol

Install

go install github.com/hloiseau/mcp-gopls@latest

Auto-generated from the repo's primary language — check the repo's own README for its exact install instructions.

Claude Desktop config

A starting point for your claude_desktop_config.json (auto-generated — the repo's README may specify a published package name or required env vars):

{
  "mcpServers": {
    "mcp-gopls": {
      "command": "npx",
      "args": [
        "-y",
        "github:hloiseau/mcp-gopls"
      ]
    }
  }
}

From the README

[](LICENSE) [](https://github.com/hloiseau/mcp-gopls/actions) [](https://ghcr.io/hloiseau/mcp-gopls) A Model Context Protocol (MCP) server that lets AI assistants use Go’s LSP () for navigation, diagnostics, testing, coverage, and more. > **TL;DR:** If you use Claude / Cursor / Copilot with Go, gives the AI full LSP powers: > go-to-definition, references, hover, completion, , coverage, , , etc. 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 M…
Read full README on GitHub →

Related other servers