main
Go MCP Servers
A pure Go implementation of Model Context Protocol (MCP) servers.
Quick Start
Installation
# Build all servers
make build
# Install to /usr/local/bin (requires sudo)
sudo make install
Development
Prerequisites
- Go
- Make
Building
# Build all servers
make build
Testing
# Run all tests
make test
# Run tests with coverage
make test-coverage
# Run specific server tests
go test ./pkg/git/...
go test ./pkg/filesystem/...
Adding New Servers
- Create a new directory under
cmd/ - Implement the server using the
pkg/mcppackage - Add comprehensive tests
- Add build targets to Makefile
Each server is a standalone binary that communicates via JSON-RPC over stdin/stdout, following the MCP specification. The modular package structure allows for easy reuse and testing of server implementations.
License
MIT License - see LICENSE file for details.
Acknowledgments
- Inspired by the Python MCP servers
- Follows the Model Context Protocol specification