mcp-server-go
A simple MCP server implementation written in Go
Documentation
MCP Server Go
A simple stdio MCP server implementation written in Go
Overview
MCP Server Go implements the Model Control Protocol (MCP) over standard input/output streams using JSON-RPC 2.0. This server allows communication with AI models via the MCP protocol.
Building
go build -o mcp_server ./cmdUsage
./mcp_serverConfiguration
Environment variables:
- `MCP_SERVER_NAME`: Custom server name (default: "Baby's First MCP Server")
- `MCP_SERVER_VERSION`: Server version (default: "0.1.0")
Components
- `server`: Core server implementation handling JSON-RPC requests
- `jsonrpc`: JSON-RPC message types and MCP protocol definitions
- `stdio`: Standard IO reader/writer implementation
- `safety`: Thread-safe map implementation
Supported Methods
- `initialize`: Server initialization
- `resources/list`: List available resources
- `resources/read`: Read resource content
- `tools/list`: List available tools
- `tools/call`: Call a tool
Protocol Version
Implements MCP protocol version "2024-11-05"
Frequently asked questions
What is mcp-server-go?
mcp-server-go is A simple MCP server implementation written in Go
How do I install mcp-server-go?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-server-go open source?
Yes — it is hosted on GitHub at https://github.com/DillonEnge/mcp-server-go.
Related MCP tools
MCP server for Grafana Go-based implementation. Trusted by 1700+ developers. Trusted by 1700+ developers. Trusted by 1700+ developers.
Flux Operator is a Kubernetes controller for managing the lifecycle of Flux CD for the Model Context Protocol. Enhance AI assistants with powerful integrations.
MCP server connecting to Kubernetes Go-based implementation.
:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-gra...
MCP Toolbox for Databases is an open source MCP server for databases. Go-based implementation. Trusted by 10900+ developers.
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP