A Go implementation of the Model Context Protocol (MCP) client. This package provides a clean and idiomatic way to interact with MCP servers in Go applications.
- Full MCP client implementation
- Support for all MCP operations (tools, resources, prompts)
- Streaming support
- Easy integration with chat completion systems
go get github.com/y0ug/mcpkit
package main
import (
"context"
"log"
"github.com/yourusername/mcpkit/client"
)
func main() {
ctx := context.Background()
// Create a new MCP client
c, err := client.NewMCPClient(ctx, log.Default(), "path/to/mcp-server")
if err != nil {
log.Fatal(err)
}
defer c.Close()
// Initialize the client
info, err := c.Initialize(ctx)
if err != nil {
log.Fatal(err)
}
// Use the client...
}
Coming soon
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.