Golang Mcp Server MCP Server

MCP Go Server is a Model Context Protocol (MCP) server implementation designed to provide AI assistants with comprehensive tools for executing, optimizing, and managing Go projects. The project acts…

Local serverstdio

What is the Golang Mcp Server?

Golang Mcp Server is an MCP project maintained in the inja-online/golang-mcp repository. The maintainer describes its purpose as “MCP Go Server is a Model Context Protocol (MCP) server implementation designed to provide AI assistants with comprehensive tools for executing, optimizing, and managing Go…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /usr/local/bin/mcp-go. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares DISABLE_NOTIFICATIONS. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
go_runExecute Go files directly
go_buildBuild Go packages
go_test
go_fmt
go_mod
go_doc
go_lint
go_cross_compile
go_profileGenerate performance profiles
go_trace
go_benchmark
go_race_detect
go_memory_profile
go_optimize_suggest
go_server_startStart background servers
go_server_stop
go_server_list
go_server_logs
go_server_status
go_pkg_docsFetch package docs from go.dev
go_pkg_search
go_pkg_examples
lsp_start_sessionStart LSP session
lsp_shutdown_session
lsp_request
lsp_notify
lsp_subscribe_diagnostics
filestring, required): Path to the Go file to run
args[]string, optional): Additional arguments for gopls
working_dirstring, optional): Working directory
env_varsmap[string]string, optional): Environment variables
packagestring, required): Package path
racebool, optional): Enable race detector
tags[]string, optional): Build tags
ldflagsstring, optional): Linker flags
trimpathbool, optional): Remove file system paths from executable
durationstring, optional): Profile duration
idstring, required): Server ID
log_sizeint, optional): Maximum log lines to keep (default: 1000)
versionstring, optional): Package version
root_uristring, required): Workspace root URI
gopls_pathstring, optional): Path to gopls binary (default: searches PATH)
envmap[string]string, optional): Environment variables for gopls

How to install the Golang Mcp Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DISABLE_NOTIFICATIONSDeclared in the maintainer’s client configuration.Check documentation