Back to Home
djoreilly icon

mcp-auth-go-sdk

Verified Safe

by djoreilly

Overview

Tests OAuth support for the Model Context Protocol (MCP) Go SDK using Keycloak and MCP Inspector, providing an example MCP server with authenticated tools.

Installation

Run Command
go run .

Security Notes

Implements standard OAuth 2.0 Bearer token authentication with JWT validation using Keycloak as the OIDC provider. It fetches and automatically refreshes JWKS for cryptographic key validation, which is good practice. The server binds to localhost, limiting direct external exposure. No obvious malicious patterns, 'eval' usage, or hardcoded sensitive secrets are present for its intended purpose as an example server. Production deployments would typically require additional hardening such as rate limiting (which the code explicitly notes as a potential need).

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Stars0
Forks0
Last Update2026-01-08

Tags

OAuthKeycloakGoModel Context ProtocolAuthentication