Enterprise DNA
M MCP Servers Developer low

hloiseaufcms/mcp-gopls

by Various

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

H

MCP

hloiseaufcms/mcp-gopls

Added 1 June 2026

#ai-agents #ai-tools #developer-tools #go #golang #gopls #lsp #mcp

Overview

hloiseaufcms/mcp-gopls is a Model Context Protocol server that wraps Go's language server (gopls) into MCP-compatible endpoints. It allows AI assistants to perform LSP-powered Go code analysis, run tests, check coverage, and access tooling directly from the protocol.

Best for

Best for
Go developers who want AI-assisted tooling integrated with gopls

Use cases

  • Analyze Go code structure and diagnostics
  • Run tests and view coverage reports
  • Refactor or generate Go code suggestions

How to use

Install

npx -y @mark3labs/mcp-inspector \

Tools exposed

  • Go-to-definition
  • go_to_definition
  • find_references
  • check_diagnostics
  • get_hover_info
  • get_completion
  • format_document
  • rename_symbol
  • list_code_actions
  • search_workspace_symbols
  • analyze_coverage
  • run_go_test
  • run_go_mod_tidy
  • run_govulncheck
  • module_graph
  • summarize_diagnostics
  • refactor_plan
  • MCP_GOPLS_WORKSPACE
  • MCP_GOPLS_GOPLS_PATH
  • MCP_GOPLS_LOG_LEVEL

Tested with

Claude Desktop, Cursor, VS Code

Notes

hloiseaufcms/mcp-gopls is a Model Context Protocol server that wraps Go’s language server (gopls) into MCP-compatible endpoints. It allows AI assistants to perform LSP-powered Go code analysis, run tests, check coverage, and access tooling directly from the protocol.

86 stars on GitHub. Last updated 2026-02-02. Licensed Apache-2.0.

Use cases

  • Analyze Go code structure and diagnostics
  • Run tests and view coverage reports
  • Refactor or generate Go code suggestions

Pros

  • Leverages gopls for accurate, LSP-standard Go analysis
  • Supports testing and coverage workflows directly via MCP
  • Open-source (MIT licensed) and written in Go

Cons

  • Requires gopls to be installed and configured separately
  • Limited to Go ecosystem, not multi-language
  • Small community (86 stars) may mean fewer contributions or updates

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Leverages gopls for accurate, LSP-standard Go analysis
  • Supports testing and coverage workflows directly via MCP
  • Open-source (MIT licensed) and written in Go

Cons

  • Requires gopls to be installed and configured separately
  • Limited to Go ecosystem, not multi-language
  • Small community (86 stars) may mean fewer contributions or updates
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks