mcp-go-example
Language:
Go
Stars:
9
Forks:
1
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
Copyright (c) 2024 Masa Cento
Publisher info
More MCP servers built with Go
An MCP server for semantic code search & navigation that helps AI agents work efficiently without burning through costly tokens. Instead of reading entire files, agents can search conceptually and jump directly to the specific functions, classes, and code chunks they need.
mcp-kubernetes-ro is a Model Context Protocol (MCP) server providing read-only access to Kubernetes clusters for AI assistants. It enables AI models to list resources, get resource details, retrieve pod logs, discover API resources, and perform base64 encoding/decoding operations - all while maintaining security through read-only access.
A CLI for interacting with GitKraken APIs. Includes an MCP server via gk mcp that not only wraps GitKraken APIs, but also Jira, GitHub, GitLab, and more.