Back to Home
modelcontextprotocol icon

example-remote-server

Verified Safe

by modelcontextprotocol

Overview

A reference server demonstrating all Model Context Protocol (MCP) features and OAuth 2.0 authentication patterns.

Installation

Run Command
npm run dev:internal

Environment Variables

  • AUTH_MODE
  • AUTH_SERVER_URL
  • PORT
  • BASE_URI
  • REDIS_URL
  • REDIS_PASSWORD
  • REDIS_TLS

Security Notes

The server implements OAuth 2.0 with PKCE, robust token validation via introspection, and secure session management with user isolation. It utilizes environment variables for sensitive configuration and includes rate limiting for authentication and static assets. Permissive CORS is intentionally enabled for a public reference server to facilitate testing, but should be tightened for production deployments. No hardcoded secrets, obfuscation, or explicit malicious patterns were identified. Duplicate authorization code usage is detected and leads to token revocation, preventing replay attacks.

Similar Servers

Stats

Interest Score48
Security Score9
Cost ClassMedium
Avg Tokens100
Stars62
Forks21
Last Update2026-01-16

Tags

MCPOAuth2.0AI IntegrationReference ServerNode.js