Back to Home
kym6464 icon

mcp-server-remote

Verified Safe

by kym6464

Overview

A remote Model Context Protocol (MCP) server demonstrating Google OAuth as an identity provider for authentication and serving basic AI tools and resources over Streamable HTTP.

Installation

Run Command
pnpm run dev

Environment Variables

  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • MCP_PORT
  • MCP_AUTH_PORT
  • DISABLE_AUTH

Security Notes

The server implements OAuth 2.0 flows using Google's official client library, ensuring standard and secure authentication practices. Sensitive credentials (Google Client ID/Secret) are correctly externalized via environment variables, preventing hardcoding. The in-memory client store for Dynamic Client Registration (DCR) is acceptable for a demonstration, but a production environment would require a persistent store. The use of a wildcard `*` for the CORS `origin` header is common for demos but should be restricted to specific trusted domains in a production setup to mitigate potential cross-site scripting (XSS) risks. No 'eval' or other malicious patterns, or obfuscation were found in the provided source code.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens150
Stars0
Forks1
Last Update2025-11-24

Tags

MCPServerOAuthGoogleTypeScriptAuthenticationAPI