Back to Home
IntranetFactory icon

hono-oauth-mcp

Verified Safe

by IntranetFactory

Overview

A Hono-based Model Context Protocol (MCP) server that integrates with any MCP-compliant OAuth2 server for authentication, deployable across Supabase Edge Functions, Cloudflare Workers, and Deno Deploy.

Installation

Run Command
deno task dev

Environment Variables

  • AUTH_SERVER_URL
  • SUPABASE_URL

Security Notes

The server's bearer token verification (`verifyToken: (token: string) => { return !!token; }`) only checks for the presence of a token, not its validity. This design relies on a downstream service (e.g., Supabase PostgREST) or the OAuth client's interaction with the authorization server to perform actual JWT validation. For Supabase Edge Functions, `verify_jwt = false` is explicitly set, confirming this delegated security model. The `cors` configuration is permissive (`origin: (origin) => origin`), which may need tightening in production environments depending on direct browser access requirements. No 'eval', hardcoded secrets, or malicious patterns were found in the provided source code.

Similar Servers

Stats

Interest Score48
Security Score8
Cost ClassLow
Avg Tokens300
Stars2
Forks0
Last Update2026-01-17

Tags

MCPOAuth2HonoServerlessAuthentication