mcpField
M
MCP Server Go

MCP Server Go

Local
github.com/DillonEngeDeveloper Tools0Updated 82w ago

About MCP Server Go

MCP Server Go is a minimal MCP server implementation in Go that communicates over stdio using JSON-RPC 2.0. It supports core resource and tool operations for clients that need a small server foundation.

Key features

  1. 01Communicate over stdio with JSON-RPC 2.0
  2. 02Initialize MCP connections
  3. 03List and read resources
  4. 04List and call tools
  5. 05Configure server name and version with environment variables

Use cases

  1. 01Building a Go-based MCP server
  2. 02Serving resources to MCP clients
  3. 03Exposing callable tools
  4. 04Testing basic MCP resource and tool operations

MCP support

Implements MCP version 2024-11-05 over stdio. It exposes initialization, resource listing and reading, and tool listing and calling.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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 ./cmd

Usage

./mcp_server

Configuration

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"

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.