mcp-go-starter
About
A feature-complete Model Context Protocol (MCP) server template in Go using the official go-sdk. It demonstrates all major MCP features with clean, idiomatic Go code, intended for developers building MCP servers in Go.
Details
- Author
- SamMorrowDrums
- GitHub stars
- 6
- Downloads
- 179
- Categories
- Developer Tools
Jump to
- Tools: hello, get_weather, ask_llm, long_task, load_bonus_tool
- Resources: info://about (static), file://example.md (file-based)
- Resource templates: greeting://{name}, data://items/{id}
- Prompts: greet (various styles), code_review (with focus areas)
- Support for tool annotations, progress updates, and LLM sampling
- Dynamic tool loading at runtime
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
mcp-go-starterCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, run go mod download to install dependencies, then start the server via stdio (go run ./cmd/stdio) or HTTP (go run ./cmd/http, runs on localhost:3000). Alternatively, use make build to create binaries or make dev for live reload with air. The server is preconfigured for VS Code integration and DevContainers.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp-go-starter": {
"mcp-go-starter": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"--",
"go",
"run",
"./cmd/stdio/main.go"
]
}
}
}
}
McpServers
{
"mcp-go-starter": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"--",
"go",
"run",
"./cmd/stdio/main.go"
]
}
}
MCP Go Starter
A feature-complete Model Context Protocol (MCP) server template in Go using the official go-sdk. This starter demonstrates all major MCP features with clean, idiomatic Go code.
📚 Documentation
- Model Context Protocol
- Go SDK
- Building MCP Servers
✨ Features
| Category | Feature | Description |
|----------|---------|-------------|
| Tools | hello | Basic tool with annotations |
| | get_weather | Tool returning structured data |
| | ask_llm | Tool that invokes LLM sampling |
| | long_task | Tool with 5-second progress updates |
| | load_bonus_tool | Dynamically loads a new tool |
| Resources | info://about | Static informational resource |
| | file://example.md | File-based markdown resource |
| Templates | greeting://{name} | Personalized greeting |
| | data://items/{id} | Data lookup by ID |
| Prompts | greet | Greeting in various styles |
| | code_review | Code review with focus areas |
🚀 Quick Start
Prerequisites
- Go 1.22+
- (Optional) air for live reload
- (Optional) golangci-lint for linting
Installation
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





