go-mcp

rickKoch/go-mcp

3.2

If you are the rightful owner of go-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project demonstrates the creation and use of a Model Context Protocol (MCP) server in Golang, integrated with VS Code Copilot.

Model Context Protocol (MCP) example

example

This is a simple project that demonstrates how to create an MCP (Model Context Protocol) server in Golang and use it within VS Code Copilot.

It was built as part of a blog post explaining the basics of MCP and how it can be used to connect tools and data sources with AI-powered environments.

📖 Read the blog post:
Model Context Protocol(MCP).

🚀 What It Does

  • Implements a basic MCP server in Go.
  • Exposes one or more tools that can be used by AI systems supporting MCP.
  • Demonstrates integration with VS Code Copilot via MCP.

🛠 Technologies Used

  • Go (Golang)
  • MCP Protocol (Open Standard)
  • VS Code Copilot (with MCP support)

📦 How to Use

1. Clone the repository:

git clone https://github.com/rickKoch/go-mcp.git
cd go-mcp

2. Build the docker image:

./build.sh

3. Copy the following configuration at the bottom of the VS Code user settings file(settings.json):

"mcp": {
    "servers": {
        "simplemcp": {
        "command": "docker",
        "args": ["run", "-i", "--rm", "simplemcp"]
        },
    }
}

4. Once the server is running you should toggle the Agent and try it out