GitHub
github.com › anthropics › anthropic-sdk-go
GitHub - anthropics/anthropic-sdk-go: Access to Anthropic's safety-first language model APIs via Go
The Anthropic Go library provides convenient access to the Anthropic REST API from applications written in Go.
Starred by 665 users
Forked by 83 users
Languages Go
Go Packages
pkg.go.dev › github.com › adamchol › go-anthropic-sdk
anthropic package - github.com/adamchol/go-anthropic-sdk - Go Packages
package main import ( "context" "fmt" anthropic "github.com/adamchol/go-anthropic-sdk" ) func main() { client := anthropic.NewClient("your-token") resp, err := client.CreateMessage(context.Background(), anthropic.MessageRequest{ Model: anthropic.Claude35SonnetModel, Messages: []anthropic.InputMessage{ { Role: anthropic.MessageRoleUser, Content: "Hello, how are you?", }, }, MaxTokens: 4096, }) if err != nil { fmt.Println(err) } fmt.Println(resp.Content[0].Text) }
Videos
GitHub
github.com › liushuangls › go-anthropic
GitHub - liushuangls/go-anthropic: Anthropic Claude API wrapper for Go
Starred by 165 users
Forked by 26 users
Languages Go
Go Packages
pkg.go.dev › github.com › staropshq › go-anthropic
go-anthropic module - github.com/staropshq/go-anthropic - Go Packages
This is a golang SDK for anthropic claude API.
GitHub
github.com › unfunco › anthropic-sdk-go
GitHub - unfunco/anthropic-sdk-go: Go client library for interacting with the Anthropic safety-first language model REST APIs.
Go client library for interacting with the Anthropic safety-first language model REST APIs. - unfunco/anthropic-sdk-go
Author unfunco
Go Packages
pkg.go.dev › github.com › liushuangls › go-anthropic
anthropic package - github.com/liushuangls/go-anthropic - Go Packages
package main import ( "errors" "fmt" "github.com/liushuangls/go-anthropic" ) func main() { client := anthropic.NewClient("your anthropic apikey") resp, err := client.CreateMessagesStream(context.Background(), anthropic.MessagesStreamRequest{ MessagesRequest: anthropic.MessagesRequest{ Model: anthropic.ModelClaudeInstant1Dot2, Messages: []anthropic.Message{ anthropic.NewUserTextMessage("What is your name?"), }, MaxTokens: 1000, }, OnContentBlockDelta: func(data anthropic.MessagesEventContentBlockDeltaData) { fmt.Printf("Stream Content: %s\n", data.Delta.Text) }, }) if err != nil { var e *anthropic.APIError if errors.As(err, &e) { fmt.Printf("Messages stream error, type: %s, message: %s", e.Type, e.Message) } else { fmt.Printf("Messages stream error: %v\n", err) } return } fmt.Println(resp.Content[0].Text) }
Go Packages
pkg.go.dev › github.com › fabiustech › anthropic
anthropic package - github.com/fabiustech/anthropic - Go Packages
Package anthropic is a client library for interacting with the Anthropic API.
Go Packages
pkg.go.dev › github.com › 3JoB › anthropic-sdk-go
anthropic package - github.com/3JoB/anthropic-sdk-go - Go Packages
github.com/3JoB/anthropic-sdk-go ... automated processing · Concise and easy-to-use API · Fast data processing · This is a third-party Claude SDK GO library, starting March 23, 2023....
Reddit
reddit.com › r/anthropic › golang mcp implementation
r/Anthropic on Reddit: Golang MCP Implementation
November 27, 2024 -
I've scaffolded a basic SDK implementation in Go with the help of the specification docs and Claude Sonnet. Would have taken forever otherwise lol.
I have a basic client implemented with stdio and sse transports. Would love to get this to parity with the JS and Python SDKs. I'm ok with Go but not an expert by any means. Happy to have some help or at least have people check out the lib and note what's missing or can be fixed.
Cheers!
https://github.com/mark3labs/mcp-go
Top answer 1 of 2
1
I've also gone ahead and implemented the filesystem-server in Go using the newly created SDK https://github.com/mark3labs/mcp-filesystem-server
2 of 2
1
Hey, I have made an alternative implementation, that is only intended to be used for servers, but provides somewhat more high level API to register tools, prompts and resources, which allows to colocate related things. It is based on "fx" DI framework to wire everything together. strowk/foxy-contexts: Foxy contexts is a library for building context servers supporting Model Context Protocol I use my own underlying server implementation, it is possible that I might switch to anything that would be an official sdk..
GitHub
github.com › 3JoB › anthropic-sdk-go
GitHub - 3JoB/anthropic-sdk-go: (Need to be maintained) Golang SDK for AnthRopic Claude AI. Provide complete encapsulated interfaces that are easy to quickly get started with.
(Need to be maintained) Golang SDK for AnthRopic Claude AI. Provide complete encapsulated interfaces that are easy to quickly get started with. - 3JoB/anthropic-sdk-go
Starred by 38 users
Forked by 6 users
Languages Go
Go Packages
pkg.go.dev › github.com › NikitosnikN › go-anthropic-api
go_anthropic_api package - github.com/NikitosnikN/go-anthropic-api - Go Packages
This is a Golang library for interacting with Anthropic's Claude AI API.
Restack
restack.io › p › anthropic-knowledge-answer-golang-sdk-cat-ai
Anthropic SDK Golang Overview | Restackio
Explore the Anthropic SDK for Golang, enabling seamless integration and advanced AI capabilities in your applications. | Restackio
Go Packages
pkg.go.dev › github.com › anthropics › anthropic-sdk-go › option
option package - github.com/anthropics/anthropic-sdk-go/option - Go Packages
RequestOption is an option for the requests made by the anthropic API Client which can be supplied to clients, services, and methods.
Claude
platform.claude.com › docs › en › api › client-sdks
Claude
This page includes brief installation instructions and links to the open-source GitHub repositories for Anthropic's Client SDKs.
Codingmall
codingmall.com › knowledge-base › 25-global › 1558-anthropic-package-for-go
Anthropic Package for Go: Integration with Claude API
At CodingMall.com we provide Joomla extensions, components, WordPress Plugins, SEO and customized web development solutions.
GitHub
github.com › madebywelch › anthropic-go
GitHub - madebywelch/anthropic-go: Go SDK for Anthropic's Claude, a next-generation AI assistant for your tasks, no matter the scale.
Go SDK for Anthropic's Claude, a next-generation AI assistant for your tasks, no matter the scale. - madebywelch/anthropic-go
Starred by 36 users
Forked by 18 users
Languages Go
Go Packages
pkg.go.dev › github.com › mengdcz › anthropic-go › v2 › pkg › anthropic
anthropic package - github.com/mengdcz/anthropic-go/v2/pkg/anthropic - Go Packages
CompletionResponse is the response from the Anthropic API for a completion request.
Go Packages
pkg.go.dev › github.com › madebywelch › anthropic-go › pkg › anthropic
anthropic package - github.com/madebywelch/anthropic-go/pkg/anthropic - Go Packages
StreamResponse is the response from the Anthropic API for a stream of completions.
Go Packages
pkg.go.dev › github.com › XiaoConstantine › anthropic-go › anthropic
anthropic package - github.com/XiaoConstantine/anthropic-go/anthropic - Go Packages
Package anthropic provides a Go client for interacting with the Anthropic API.