Sponsored by Deepsite.site

Golang Mcp Server

Created By
inja-online2 days ago
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.
Content

Empower your AI assistant to build with Go. MCP Go Server gives LLMs the ability to control Go development workflows from execution to optimization by serving as a secure bridge between the model and the runtime.

Features

  • 22 Comprehensive Tools: Code execution, Go operations, optimization, server management, package documentation, and optional LSP support
  • 8 Discovery Resources: Access Go modules, build tags, tests, workspace structure, and package documentation
  • 7 Guided Prompts: Step-by-step guides for project setup, testing, optimization, debugging, dependencies, code review, and deployment
  • Code Execution: Execute Go files directly with go run
  • Go Operations: Build, test, format, and manage Go modules
  • Optimization Tools: Performance profiling, benchmarking, and race detection
  • Server Management: Start, stop, and monitor long-running Go servers
  • Package Documentation: Fetch package documentation from go.dev (pkg.go.dev)
  • Project Discovery: Discover Go modules, build tags, test files, and workspace structure
  • LSP Support: Optional Language Server Protocol integration (requires ENABLE_LSP=true)
  • Cross-Platform: Support for Linux, macOS, and Windows
  • Cross-Compilation: Build for different platforms and architectures

Tools (22 total)

Code Execution (1):

  • go_run - Execute Go files directly

Go Operations (7):

  • go_build - Build Go packages
  • go_test - Run tests with coverage
  • go_fmt - Format Go code
  • go_mod - Manage Go modules
  • go_doc - Generate documentation
  • go_lint - Lint Go code
  • go_cross_compile - Cross-compile for different platforms

Optimization (6):

  • go_profile - Generate performance profiles
  • go_trace - Generate execution traces
  • go_benchmark - Run benchmarks
  • go_race_detect - Detect race conditions
  • go_memory_profile - Generate memory profiles
  • go_optimize_suggest - Get optimization suggestions

Server Management (5):

  • go_server_start - Start background servers
  • go_server_stop - Stop servers
  • go_server_list - List running servers
  • go_server_logs - Get server logs
  • go_server_status - Get server status

Package Documentation (3):

  • go_pkg_docs - Fetch package docs from go.dev
  • go_pkg_search - Search for packages
  • go_pkg_examples - Extract examples

LSP Tools (5, optional - requires ENABLE_LSP=true):

  • lsp_start_session - Start LSP session
  • lsp_shutdown_session - Shutdown LSP session
  • lsp_request - Send LSP request
  • lsp_notify - Send LSP notification
  • lsp_subscribe_diagnostics - Subscribe to diagnostics

Resources (8 total)

  • go://modules - Go modules and dependencies
  • go://build-tags - Build tags and constraints
  • go://tests - Test files and benchmarks
  • go://workspace - Workspace structure
  • go://pkg-docs/{path} - Package documentation
  • go://tools - List all available tools
  • go://prompts - List all available prompts
  • go://resources - List all available resources

Prompts (7 total)

  • setup-go-project - Project setup guide
  • write-go-tests - Test writing template
  • optimize-go-performance - Performance optimization guide
  • debug-go-issue - Debugging guide
  • add-go-dependency - Dependency management guide
  • go-code-review - Code review checklist
  • go-server-deployment - Deployment guide

Server Config

{
  "mcpServers": {
    "mcp-go": {
      "command": "/usr/local/bin/mcp-go",
      "args": [],
      "env": {
        "DISABLE_NOTIFICATIONS": "true"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.