This is a simple MCP server that records your favorite colors
https://github.com/subnetmarco/favorite-colors-mcp.git
A Model Context Protocol server for managing favorite colors, supporting both Claude Desktop and MCP Inspector.
# Build
make build
# For Claude Desktop
./favorite-colors-mcp
# For MCP Inspector (HTTP)
./favorite-colors-mcp -transport=http
# For MCP Inspector (HTTPS)
make cert # Generate certificates
./favorite-colors-mcp -transport=https -cert=certificates/server.crt -key=certificates/server.key
./favorite-colors-mcp -transport=httpnpx @modelcontextprotocol/inspectorStreamableHttphttp://localhost:8080/mcp{
"mcpServers": {
"favorite-colors-mcp": {
"command": "/path/to/favorite-colors-mcp/favorite-colors-mcp"
}
}
}
color: string)color: string)./favorite-colors-mcp -help # Show help
./favorite-colors-mcp # Stdio (Claude Desktop)
./favorite-colors-mcp -transport=http # HTTP (MCP Inspector)
./favorite-colors-mcp -transport=https -cert=certificates/server.crt -key=certificates/server.key # HTTPS
./favorite-colors-mcp -transport=http -port=:9000 # Custom port
go test -v # Run tests
go test -bench=. # Run benchmarks
go test -cover # Test coverage
Claude Desktop: "Add blue to my favorite colors"
HTTP API:
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_color","arguments":{"color":"blue"}}}'
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.