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
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.
go test
Requires: test
CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath .
Requires: build
npx -y @modelcontextprotocol/inspector ./mcp-go-example
tail -f /tmp/mcp-go-example.log
Copyright (c) 2024 Masa Cento