Back to Home
hloiseau icon

mcp-gopls

Verified Safe

by 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

Run Command
mcp-gopls --workspace /absolute/path/to/your/go/project

Environment 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

Stats

Interest Score46
Security Score9
Cost ClassMedium
Avg Tokens750
Stars51
Forks5
Last Update2025-11-25

Tags

GoLSPAI-toolingMCPCode Analysis