Go SDK (Authplane)
Go SDK for protecting MCP servers and OAuth 2.1 resource servers with tokens issued by the Authplane authorization server. Includes framework adapters (e.g. MCP, net/http).
What is Go SDK (Authplane)?
Go SDK (Authplane) is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to go sdk for protecting mcp servers and oauth 2.1 resource servers with tokens issued by the authplane authorization server. includes framework adapters (e.g. mcp, net/http).
Go SDK for protecting MCP servers and OAuth 2.1 resource servers with tokens issued by the Authplane authorization server. Includes framework adapters (e.g. MCP, net/http).
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Go SDK for protecting MCP servers and OAuth 2.1 resource ser
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx go-sdkConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Go SDK (Authplane)
The official Go SDK for the Model Context Protocol (MCP) provides idiomatic Go packages for building both MCP servers and clients, maintained directly by the Model Context Protocol organization. It implements the full MCP specification — covering tools, resources, prompts, sampling, and OAuth — and ships with transport adapters for stdio and HTTP (SSE and Streamable HTTP). Go developers who want to expose their application's capabilities to AI assistants or build MCP-compatible tooling without reaching for Python or TypeScript will find this SDK the most reliable and up-to-date option for the Go ecosystem.
Prerequisites
- Go 1.22 or later installed (go.dev/dl)
- A working Go module (go mod init) in your project
- Familiarity with Go modules and package imports
- An MCP-compatible client (Claude Desktop, Claude Code, Cursor, etc.) for testing the server
Add the SDK to your Go module
Use go get to add the MCP Go SDK as a dependency. The primary package is github.com/modelcontextprotocol/go-sdk/mcp.
go get github.com/modelcontextprotocol/go-sdk/mcp@latestCreate an MCP server with a tool
Import the mcp package, create a server with mcp.NewServer, register tools using mcp.AddTool, and run it over a transport. The example below creates a simple greeting tool served over stdio.
package main
import (
"context"
"log"
"github.com/modelcontextprotocol/go-sdk/mcp"
)
type GreetInput struct {
Name string `json:"name" jsonschema:"the name to greet"`
}
type GreetOutput struct {
Message string `json:"message"`
}
func Greet(ctx context.Context, req *mcp.CallToolRequest, in GreetInput) (*mcp.CallToolResult, GreetOutput, error) {
return nil, GreetOutput{Message: "Hello, " + in.Name + "!"}, nil
}
func main() {
server := mcp.NewServer(&mcp.Implementation{Name: "greeter", Version: "v1.0.0"}, nil)
mcp.AddTool(server, &mcp.Tool{Name: "greet", Description: "Greet a person by name"}, Greet)
if err := server.Run(context.Background(), &mcp.StdioTransport{}); err != nil {
log.Fatal(err)
}
}Build the server binary
Compile your server to a standalone binary that can be invoked by MCP clients.
go build -o my-mcp-server ./main.goConfigure the server in an MCP client
Add the compiled binary to your MCP client's configuration file so it can launch and communicate with your server over stdio.
{
"mcpServers": {
"greeter": {
"command": "/path/to/my-mcp-server",
"args": []
}
}
}Add an HTTP transport for remote access
Replace StdioTransport with an HTTP transport to expose your MCP server over the network, suitable for remote clients or production deployments.
// Serve over HTTP instead of stdio
handler := server.NewHTTPHandler(nil)
http.ListenAndServe(":8080", handler)Go SDK (Authplane) Examples
Client configuration (stdio binary)
Claude Desktop config for a Go MCP server compiled to a binary:
{
"mcpServers": {
"my-go-server": {
"command": "/usr/local/bin/my-mcp-server",
"args": [],
"env": {
"MY_API_KEY": "your-api-key-here"
}
}
}
}Prompts to try
After connecting the greeter server example to an MCP client:
- "Use the greet tool to greet Alice"
- "What tools does the greeter server expose?"
- "Call the greet tool with name set to World"
- "List all available MCP tools"Troubleshooting Go SDK (Authplane)
Server exits immediately with no output
Ensure you are passing context.Background() to server.Run and that the binary has executable permissions (chmod +x). Check for import errors with go build before running.
Client reports 'protocol version mismatch'
Update to the latest SDK version with go get github.com/modelcontextprotocol/go-sdk/mcp@latest. SDK v1.4.0+ supports MCP spec 2025-11-25. Older versions may not be compatible with newer clients.
Tool schema validation errors at runtime
Make sure your input struct fields use json tags, and that required fields do not have omitempty in their json tags. The SDK derives the JSON Schema from Go struct tags automatically.
Frequently Asked Questions about Go SDK (Authplane)
What is Go SDK (Authplane)?
Go SDK (Authplane) is a Model Context Protocol (MCP) server that go sdk for protecting mcp servers and oauth 2.1 resource servers with tokens issued by the authplane authorization server. includes framework adapters (e.g. mcp, net/http). It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Go SDK (Authplane)?
Follow the installation instructions on the Go SDK (Authplane) GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Go SDK (Authplane)?
Go SDK (Authplane) works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Go SDK (Authplane) free to use?
Yes, Go SDK (Authplane) is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
Go SDK (Authplane) Alternatives — Similar Developer Tools Servers
Looking for alternatives to Go SDK (Authplane)? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Go SDK (Authplane) in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Go SDK (Authplane)?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.