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…
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.
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.
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.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| go_run | Execute Go files directly |
| go_build | Build Go packages |
| go_test | |
| go_fmt | |
| go_mod | |
| go_doc | |
| go_lint | |
| go_cross_compile | |
| go_profile | Generate performance profiles |
| go_trace | |
| go_benchmark | |
| go_race_detect | |
| go_memory_profile | |
| go_optimize_suggest | |
| go_server_start | Start background servers |
| go_server_stop | |
| go_server_list | |
| go_server_logs | |
| go_server_status | |
| go_pkg_docs | Fetch package docs from go.dev |
| go_pkg_search | |
| go_pkg_examples | |
| lsp_start_session | Start LSP session |
| lsp_shutdown_session | |
| lsp_request | |
| lsp_notify | |
| lsp_subscribe_diagnostics | |
| file | string, required): Path to the Go file to run |
| args | []string, optional): Additional arguments for gopls |
| working_dir | string, optional): Working directory |
| env_vars | map[string]string, optional): Environment variables |
| package | string, required): Package path |
| race | bool, optional): Enable race detector |
| tags | []string, optional): Build tags |
| ldflags | string, optional): Linker flags |
| trimpath | bool, optional): Remove file system paths from executable |
| duration | string, optional): Profile duration |
| id | string, required): Server ID |
| log_size | int, optional): Maximum log lines to keep (default: 1000) |
| version | string, optional): Package version |
| root_uri | string, required): Workspace root URI |
| gopls_path | string, optional): Path to gopls binary (default: searches PATH) |
| env | map[string]string, optional): Environment variables for gopls |
{
"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.
| Variable | Description | Required |
|---|---|---|
| DISABLE_NOTIFICATIONS | Declared in the maintainer’s client configuration. | Check documentation |
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
Connect GitHub MCP to repositories, issues and pull requests with GitHub’s hosted service or a locally run server.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Search Linear issues and projects, inspect work context and manage updates through Linear’s hosted MCP server with OAuth.