Back to Home
IntranetFactory icon

hono-oauth-mcp

Verified Safe

by IntranetFactory

Overview

A Hono-based MCP (Model Context Protocol) server for AI models that integrates with any MCP-compliant OAuth2 server for authentication.

Installation

Run Command
deno run --allow-net --allow-env --watch src/index.deno.ts

Environment Variables

  • AUTH_SERVER_URL
  • SUPABASE_URL

Security Notes

The server's `bearerAuth` middleware explicitly delegates token verification to a downstream service (e.g., PostGREST), only checking if the token string is non-empty (`!!token`). For Supabase deployments, `verify_jwt = false` is configured, meaning Supabase itself will not validate the JWT. This design choice makes the security of this server entirely dependent on the correct configuration and enforcement of token validation by an *external* authorization service. If deployed without such a service, or if the external service is misconfigured or bypassed, any non-empty bearer token will be accepted, posing a significant security risk.

Similar Servers

Stats

Interest Score42
Security Score5
Cost ClassLow
Avg Tokens20
Stars1
Forks0
Last Update2026-01-17

Tags

MCPOAuth2AuthenticationHonoEdge Functions