mcp-go-multitool-demo

Ink6220/mcp-go-multitool-demo

3.1

If you are the rightful owner of mcp-go-multitool-demo 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.

The MCP Multi-Tool Server is a demonstration server built using the MCP Go SDK, showcasing how to serve multiple tools via a single MCP-compatible server.

Tools
3
Resources
0
Prompts
0

MCP Multi-Tool Server (Go)

This is a demo server built using the MCP Go SDK. It demonstrates how to build and serve multiple tools via a single MCP-compatible server.

✨ Features

  • 🧮 Calculator Tool — Basic arithmetic operations
  • 🗃️ MongoDB Tool (Mocked) — Simulated insert/find document operations
  • 📆 Google Calendar Tools (Mocked) — Simulated calendar availability check and event booking

🚀 How to Run

Prerequisites

  • Go 1.20+
  • MCP-compatible environment (e.g., ChatGPT custom tool, stdio integration)

Development Mode: Run via STDIO

go run main.go

Production Mode: Run via SSE

✅ MCP Transport can also run over Server-Sent Events (SSE). This is preferred in production.

Replace this line in main.go:

if err := server.ServeStdio(s); err != nil {

With:

if err := server.ServeSSE(s, ":8080"); err != nil {

Build

go build -o calculator-server main.go

Run with SSE

./calculator-server --transport sse --baseurl http://localhost