Back to MCP Servers

Gopls

A MCP server for interacting with [Go's Language Server Protocol (gopls)](https://github.com/golang/tools/tree/master/gopls) and benefit from advanced Go code analysis features.

developer-toolsgogithub

Installation

npx -y mcp-gopls

Configuration

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

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub