A simple MCP server implementation written in Go
0 stars
Go
Updated Apr 1, 2025
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
bash
go build -o mcp_server ./cmdUsage
bash
./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 requestsjsonrpc: JSON-RPC message types and MCP protocol definitionsstdio: Standard IO reader/writer implementationsafety: Thread-safe map implementation
Supported Methods
initialize: Server initializationresources/list: List available resourcesresources/read: Read resource contenttools/list: List available toolstools/call: Call a tool
Protocol Version
Implements MCP protocol version "2024-11-05"
Similar MCP
Based on tags & features
Trending MCP
Most active this week