Skip to main content
Glama

MCP Golang

A Model Context Protocol (MCP) server that provides Go language tools for LLMs to analyze, test, and format Go code.

Features:

  • Full set of Go code analysis tools (go vet, go test, go fmt, golint, deadcode, go mod tidy)

  • TypeScript implementation with strict type checking

  • Comprehensive error handling and validation

  • Tool output passed directly to LLMs

πŸš€ Getting Started

Related MCP server: Go Playground MCP Server

Available Go Tools

  • go_analyze β€” Comprehensive code analysis using golangci-lint (configurable severity, auto-fix)

  • go_fix β€” Code cleanup: runs go mod tidy, goimports, and gofumpt in sequence

  • go_test β€” Run Go tests with optional coverage reports, race detection, and benchmarks

All tools require an absolute wd (working directory) path parameter.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with Go's Language Server Protocol (LSP) and benefit from advanced Go code analysis features.
      104
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time access to Go package documentation, function signatures, and type definitions directly from pkg.go.dev. It enables LLMs to search for packages, retrieve specific versions, and access code examples from the official Go module ecosystem.
      28 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to perform high-performance code search and analysis across multiple languages using symbol indexing, regex text search, and structural AST pattern matching. It also provides tools for technology stack detection and dependency analysis with persistent caching for optimized performance.
      11
      MIT