G

mcp-go-example

Created Oct 19, 2025 by masacento

Language:

Go

Stars:

9

Forks:

1

README

mcp-go-example

Model Context Protocol sqlite example server using Go. This is just for learning purpose. No security implications, No multiuser support.

Python version is here. https://github.com/modelcontextprotocol/servers/tree/main/src/sqlite

Python version quickstart is here. https://modelcontextprotocol.io/quickstart

Usasge

Edit Claude Desktop config at ~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "sqlite": {
      "command": "path/to/mcp-go-example",
       "args": []
    }
  }
}

build and follow quickstart.

Tasks

test

go test

build

Requires: test

CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath .

inspect

Requires: build

npx -y @modelcontextprotocol/inspector ./mcp-go-example 

log

tail -f /tmp/mcp-go-example.log

License

MIT License

Copyright (c) 2024 Masa Cento

Last updated: Oct 19, 2025

Publisher info

masacento's avatar

masacento

Tokyo, Japan
9
followers
36
following
9
repos

More MCP servers built with Go

Kubernetes

Production-Grade Container Scheduling and Management

By kubernetes 120K
fzf

:cherry_blossom: A command-line fuzzy finder

By junegunn 77.2K
Moby

The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

By moby 71.4K