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 (Model Context Protocol) server that provides tools for querying OCI registries and image references.
A Go framework for building Model Context Protocol (MCP) servers that enable Large Language Models (LLMs) to securely access tools and data sources.
An MCP server to create secure code sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.