mcp-go-multitool-demo
This is a demo server built using the [MCP Go SDK](https://github.com/mark3labs/mcp-go). It demonstrates how to build and serve multiple tools via a single MCP-compatible server.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
104
Forks
0
Issues
0
README
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
Tags