Cover image
Try Now
2025-04-06

MCP -Server in Go

3 years

Works with Finder

1

Github Watches

1

Github Forks

3

Github Stars

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! 🛠️

Background of Gopher in a carrot field

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:

    git clone https://github.com/your-username/hello-mcp-go.git
    cd hello-mcp
    
  2. Install dependencies:

    go mod tidy
    
  3. Build the project:

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

    or for Linux:

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

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

  4. Run the server:

    ./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).

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

    {
      "servers": {
         "my-mcp-server-d73c20f3": {
             "type": "stdio",
             "command": "/path/to/your/executable"
         }
      }
    }
    
  3. Open Copilot and select Agent in dropdown

  4. Select the play icon.

    You should see the tool icon showing two tools.

  5. 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! 💻

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • GeyserMC
  • Eine Bibliothek für Kommunikation mit einem Minecraft -Client/Server.

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

  • ravitemer
  • Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)

    Reviews

    4 (1)
    Avatar
    user_p6bsAQ4q
    2025-04-17

    Hello-mcp-go by softchris is a fantastic MCP application that I've been thoroughly impressed with. The setup is user-friendly, and the documentation is clear and concise. The project hosted on GitHub (https://github.com/softchris/hello-mcp-go) showcases excellent coding practices in its language choice. Overall, it's an invaluable resource for MCP enthusiasts. Highly recommended!