trackmcp
Back to directory
softchris

hello-mcp-go

View on GitHub

mcp server in go

5 stars GoServers & Infrastructure Updated Apr 26, 2025

Documentation

Hello MCP Go ๐Ÿ‘‹

Welcome to the Hello MCP Go repository! ๐Ÿš€ This project demonstrates how to build an MCP (Model Context Protocol) server in Go. Whether you're a Go enthusiast or just curious about MCP, you're in the right place! ๐Ÿ› ๏ธ

What is this? ๐Ÿค”

This repository showcases:

  • How to build an MCP server using Go ๐Ÿน.
  • A simple and fun way to explore MCP Protocol ๐ŸŽฎ.
  • A starting point for your own custom MCP server adventures! ๐ŸŒŸ

Tools ๐ŸŒŸ

  • hello, takes the parameters Submitter and Content.
  • calculate, takes the parameters A and B. Example use is "calculate 2 and 4".

Quick Start ๐Ÿš€

  • Clone
  • Install
  • Build
  • Run

1. Clone the repository:

bash
git clone https://github.com/your-username/hello-mcp-go.git
    cd hello-mcp

2. Install dependencies:

bash
go mod tidy

3. Build the project:

bash
go build -ldflags="-s -w" -o server.exe main.go

or for Linux:

bash
go build -ldflags="-s -w" -o server main.go

You will use this later when you want to consume it from Visual Studio Code.

1. Run the server:

bash
./server

Consuming the Server with GitHub Copilot Agent Mode ๐Ÿด

1. Place yourself in *mcp.json*, make sure the server has been built (right now it's adjusted).

1. Adjust the "command" to point to the absolute path of your executable.

json
{
     "servers": {
        "my-mcp-server-d73c20f3": {
            "type": "stdio",
            "command": "/path/to/your/executable"
        }
     }
   }

1. Open Copilot and select Agent in dropdown

1. Select the play icon.

You should see the tool icon showing two tools.

1. Test it with a phrase like so "calculate 2 and 4". This should present a button that invokes the tool on the server.

MCP Go conuming it via Visual Studio Code

Have Fun! ๐ŸŽ‰

This project is all about learning and having fun. Feel free to experiment, break things, and create something amazing! ๐ŸŒˆ

Happy coding! ๐Ÿ’ป

Frequently asked questions

What is hello-mcp-go?

hello-mcp-go is mcp server in go

How do I install hello-mcp-go?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is hello-mcp-go open source?

Yes โ€” it is hosted on GitHub at https://github.com/softchris/hello-mcp-go and has 5 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP