MCP.so
Sign In
Servers

MCP Server Go

@DillonEnge

A simple MCP server implementation written in Go

Overview

What is MCP Server Go?

MCP Server Go is a lightweight implementation of the Model Control Protocol (MCP) that communicates over standard input/output streams using JSON-RPC 2.0. It is designed for Go developers who need to enable communication between AI models and their applications via the MCP protocol.

How to use MCP Server Go?

Build the server with go build -o mcp_server ./cmd and run it with ./mcp_server. Optionally set the MCP_SERVER_NAME and MCP_SERVER_VERSION environment variables to customize the server’s identity. The server listens on stdio and responds to JSON-RPC requests for initialization, resource listing/reading, and tool listing/calling.

Key features of MCP Server Go

  • stdio-based transport using JSON-RPC 2.0
  • Supports initialize, resources/list, resources/read, tools/list, tools/call
  • Configurable server name and version via environment variables
  • Thread-safe map implementation for concurrent access
  • Clean modular code with separate packages for server, JSON-RPC, stdio, and safety

Use cases of MCP Server Go

FAQ from MCP Server Go

Tags

More from Other