Go SDK (Authplane)

v1.0.0Developer Toolsstable

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).

gomcp
Share:
4,577
Stars
0
Downloads
0
Weekly
0/5

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

Protect MCP servers using Go framework adapters and net/http.
Issue secure OAuth 2.1 tokens via Authplane authorization server.
LicenseNOASSERTION
Languagego
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx go-sdk

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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@latest
2

Create 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)
	}
}
3

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.go
4

Configure 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": []
    }
  }
}
5

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.

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.

Quick Config Preview

{ "mcpServers": { "go-sdk": { "command": "npx", "args": ["-y", "go-sdk"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides