mcp-simple-server-go

MotonoKohei/mcp-simple-server-go

3.1

If you are the rightful owner of mcp-simple-server-go and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

A simple Model Context Protocol (MCP) server implemented in Go, designed for easy deployment and use with MCP-compatible clients.

Tools
4
Resources
0
Prompts
0

Simple MCP Server (Go)

A simple Model Context Protocol (MCP) server implemented in Go with basic tools. This version compiles to a single binary for easy deployment.

Features

  • echo: Echo the input message
  • concat-abc: Concatenate 'abc' to the input text
  • now: Get current timestamp
  • nonce: Generate a random nonce

Installation

Build from source

  1. Clone the repository
  2. Build the binary:
    make build
    
  3. Install globally:
    make install
    

Cross-platform builds

Build for multiple platforms:

make build-all

This creates binaries for:

  • macOS (Intel and Apple Silicon)
  • Linux (x64)
  • Windows (x64)

Usage

The server can be used with Claude Desktop or any MCP-compatible client by adding the following to your configuration:

{
  "mcpServers": {
    "simple-tools-go": {
      "command": "/path/to/mcp-simple-server-go"
    }
  }
}

Development

# Build
make build

# Format code
make fmt

# Clean build artifacts
make clean

# Run directly
go run main.go

Tools

echo

Echoes the provided message.

Parameters:

  • message (string): Message to echo

concat-abc

Concatenates 'abc' to the provided text.

Parameters:

  • text (string): Text to concatenate with 'abc'

now

Returns the current timestamp.

Parameters: None

nonce

Generates a random nonce.

Parameters:

  • length (number, optional): Length of the nonce (default: 16)

Binary Distribution

The compiled binary has no external dependencies and can be distributed as a single file. This makes it ideal for:

  • Easy deployment across different environments
  • Containerized applications
  • Environments where package managers are not available
  • Corporate environments with restricted software installation