mcp-gopls
Verified Safeby hloiseau
Overview
An MCP server that enables AI assistants to utilize Go's Language Server Protocol (gopls) for advanced code analysis, navigation, refactoring, and execution of Go tooling within Go workspaces.
Installation
mcp-gopls --workspace /absolute/path/to/your/go/projectEnvironment Variables
- MCP_GOPLS_WORKSPACE
- MCP_GOPLS_BIN
- MCP_GOPLS_LOG_LEVEL
- MCP_GOPLS_LOG_FILE
- MCP_GOPLS_LOG_JSON
- MCP_GOPLS_RPC_TIMEOUT
- MCP_GOPLS_SHUTDOWN_TIMEOUT
Security Notes
The project's core functionality involves executing external Go development tools (go, gopls, govulncheck). While this introduces a reliance on the security of these external binaries, the project itself does not show signs of direct 'eval' usage, obfuscation, or hardcoded secrets. It manages environment variables like GOTOOLCHAIN for its subprocesses to ensure consistent behavior. Users should be aware that granting AI access to this tool allows it to execute Go commands within the specified workspace.
Similar Servers
azure-devops-mcp
Provides a local Model Context Protocol (MCP) server to interact with Azure DevOps Services, enabling users to perform various tasks directly from their code editor via an agent (like GitHub Copilot).
cclsp
MCP server to integrate LLM-based coding agents with Language Server Protocol (LSP) servers for robust symbol resolution and code navigation.
mcp-devtools
A high-performance Go-based MCP server providing a unified interface for a wide array of developer tools, designed for agentic coding workflows to replace multiple Node.js/Python-based servers.
gofetch
A Model Context Protocol (MCP) server for efficiently retrieving, processing, and formatting web content from URLs.