OAuth MCP proxy
mark3labs/mcp-go
import "github.com/tuannvm/oauth-mcp-proxy/mark3labs"
oauthServer, oauthOption, _ := mark3labs.WithOAuth(mux, &oauth.Config{
Provider: "okta",
Issuer: "https://your-company.okta.com",
Audience: "api://your-mcp-server",
})
mcpServer := server.NewMCPServer("Server", "1.0.0", oauthOption)
streamable := server.NewStreamableHTTPServer(mcpServer, /*options*/)
mux.HandleFunc("/mcp", oauthServer.WrapMCPEndpoint(streamable))Official SDK
Why Use This Library?
How It Works
Request Flow
Token Validation Flow
Quick Start
Using mark3labs/mcp-go
1. Install
2. Add to Your Server
3. Access Authenticated User
Using Official SDK
1. Install
2. Add to Your Server
Examples
SDK
Example
Description
Supported Providers
Provider
Best For
Setup Guide
Documentation
License
Last updated
Was this helpful?