gopls-mcp
Go language server MCP integration for AI assistants. Navigate and explore Go code naturally.
1.1K
A Model Context Protocol (MCP) server that integrates gopls with AI coding assistants like Claude Code, Claude Desktop, and VS Code. Developed in collaboration with Claude Code to provide comprehensive Go development assistance.
14 comprehensive Go development tools with full multi-workspace support:
Single Workspace:
docker run -d -v /path/to/go/project:/workspace -p 8080:8080 megagrindstone/gopls-mcp:latest
Multiple Workspaces:
docker run -d \
-v /path/to/project1:/workspace1 \
-v /path/to/project2:/workspace2 \
-v /path/to/project3:/workspace3 \
-p 8080:8080 \
megagrindstone/gopls-mcp:latest -workspace /workspace1,/workspace2,/workspace3
claude mcp add --transport http gopls-mcp http://localhost:8080
Ask Claude Code about your Go code across multiple workspaces:
HTTP Transport (Default):
docker run -v /path/to/project:/workspace -p 8080:8080 megagrindstone/gopls-mcp:latest
Stdio Transport:
docker run -i -v /path/to/project:/workspace megagrindstone/gopls-mcp:latest -transport stdio
# Debug logging with JSON format
docker run -e LOG_LEVEL=DEBUG -e LOG_FORMAT=json \
-v /path/to/project:/workspace -p 8080:8080 \
megagrindstone/gopls-mcp:latest
{
"mcpServers": {
"gopls-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "/path/to/your/go/project:/workspace",
"-p", "8080:8080",
"megagrindstone/gopls-mcp:latest"
]
}
}
}
{
"mcpServers": {
"gopls-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "/path/to/project1:/workspace1",
"-v", "/path/to/project2:/workspace2",
"-v", "/path/to/project3:/workspace3",
"-p", "8080:8080",
"megagrindstone/gopls-mcp:latest",
"-workspace", "/workspace1,/workspace2,/workspace3"
]
}
}
}
{
"servers": {
"gopls-mcp": {
"type": "http",
"url": "http://localhost:8080"
}
}
}
latest - Latest stable release (v0.3.0)v* - Semantic version tags (e.g., v0.3.0, v0.2.1)main - Latest development buildlinux/amd64 - Intel/AMD 64-bitlinux/arm64 - ARM 64-bit (Apple Silicon, ARM servers)This project uses the Model Context Protocol Go SDK which is currently in early development (v0.1.0). This project will not have stable releases until the go-sdk reaches stability. Please consider this when using in production environments.
go.mod fileDeveloped by Gerard Adam in collaboration with Claude Code | MIT License
Content type
Image
Digest
sha256:12f777f15…
Size
259.1 MB
Last updated
about 1 year ago
docker pull megagrindstone/gopls-mcp