MCP.so
Sign In
G

Golang Mcp Server

@inja-online

About Golang Mcp Server

MCP Go Server connects AI assistants like Claude directly to the Go runtime. It acts as a bridge, giving your AI the necessary tools to execute, manage, and optimize Go-based development workflows efficiently.

Basic information

Category

Other

Transports

stdio

Publisher

inja-online

Submitted by

Amin Sharifi

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp-go": {
      "command": "/usr/local/bin/mcp-go",
      "args": [],
      "env": {
        "DISABLE_NOTIFICATIONS": "true"
      }
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Golang Mcp Server?

Golang MCP Server is a Model Context Protocol server that enables AI assistants to control Go development workflows, from code execution to optimization and deployment. It acts as a secure bridge between large language models and the Go runtime, providing 22 tools, 8 resources, and 7 guided prompts for interacting with Go projects.

How to use Golang Mcp Server?

Integrate the server into an MCP client by configuring its path and optional settings. To enable Language Server Protocol features, set the environment variable ENABLE_LSP=true before starting the server.

Key features of Golang Mcp Server

  • 22 tools covering execution, build, test, format, optimization, and server management
  • 8 resources to discover modules, build tags, tests, and workspace structure
  • 7 guided prompts for project setup, testing, debugging, and deployment
  • Code execution directly via go run and full Go operations (build, test, format, lint)
  • Optimization tools: profiling, tracing, benchmarking, race detection, memory profiling
  • Optional LSP integration (requires ENABLE_LSP=true)
  • Cross-platform support for Linux, macOS, and Windows

Use cases of Golang Mcp Server

  • Set up a new Go project with module initialization and best practices
  • Run tests with coverage and debug failing tests
  • Profile and optimize Go code for performance and memory usage
  • Manage dependencies and perform code reviews through guided prompts
  • Deploy Go servers, monitor status, and retrieve logs

FAQ from Golang Mcp Server

What tools does Golang Mcp Server provide?

It offers 22 tools: 1 for code execution, 7 for Go operations (build, test, format, module, doc, lint, cross-compile), 6 for optimization, 5 for server management, 3 for package documentation from go.dev, and 5 optional LSP tools.

Does Golang Mcp Server require LSP?

No, LSP support is optional. Set the environment variable ENABLE_LSP=true to activate five LSP-related tools for session management, requests, notifications, and diagnostics.

What platforms are supported?

The server supports Linux, macOS, and Windows, and can cross-compile Go code for different platforms and architectures.

How does Golang Mcp Server help with code optimization?

It provides tools for performance profiling, execution tracing, benchmarking, race condition detection, memory profiling, and generating optimization suggestions.

What resources does Golang Mcp Server expose?

Eight resources: go://modules, go://build-tags, go://tests, go://workspace, go://pkg-docs/{path}, go://tools, go://prompts, and go://resources.

Comments

More Other MCP servers