MotonoKohei/mcp-simple-server-go
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.
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
- Clone the repository
- Build the binary:
make build - 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