Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-go-example

MCP.Pizza Chef: masacento

mcp-go-example is a Model Context Protocol (MCP) server implemented in Go, demonstrating how to use SQLite as a backend. Designed primarily for educational purposes, it provides a simple, no-frills example without multiuser support or security features. This server is ideal for developers looking to understand MCP server implementation, experiment with SQLite integration, or prototype MCP workflows in Go. It includes build, test, and inspection commands, and integrates easily with clients like Claude Desktop via configuration. The project is open source under the MIT License.

Use This MCP server To

Learn MCP server implementation with Go and SQLite Prototype MCP workflows using a lightweight SQLite backend Integrate MCP server with Claude Desktop client Test and inspect MCP server behavior in development Experiment with MCP server features without security concerns

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

mcp-go-example FAQ

How do I build the mcp-go-example server?
Run 'go test' to test, then 'CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath .' to build the server binary.
Is mcp-go-example suitable for production use?
No, it is intended for learning and prototyping only, with no security or multiuser support.
How do I configure Claude Desktop to use mcp-go-example?
Edit the claude_desktop_config.json file to add the mcp-go-example command under 'mcpServers' with the 'sqlite' key.
Can I inspect the server's MCP interactions?
Yes, use 'npx -y @modelcontextprotocol/inspector ./mcp-go-example' after building the server.
Does mcp-go-example support multiuser environments?
No, it currently does not support multiuser scenarios.
What license governs mcp-go-example?
It is licensed under the MIT License, allowing free use and modification.
Where can I find a Python version of this MCP server?
The Python version is available at https://github.com/modelcontextprotocol/servers/tree/main/src/sqlite.
Are there any security features in mcp-go-example?
No, this example server does not implement security features.