Back to Home
ashera96 icon

mcp-server-auth-poc

Verified Safe

by ashera96

Overview

An MCP server demonstrating dual authentication (API Key and OAuth 2.0 Client Credentials) for tool invocation in a stateless mode.

Installation

Run Command
npm start

Environment Variables

  • PORT
  • USE_HTTPS

Security Notes

Critical: Hardcoded secrets (API key, JWT secret, OAuth client ID/secret) are present in `src/index.ts`. The OAuth2 token store is in-memory and non-persistent. Broad CORS (`app.use(cors())`) is enabled. These are explicitly noted as POC limitations in the README, requiring significant hardening for production (e.g., using environment variables, persistent storage, and restricted CORS). No 'eval' or malicious patterns were found. The `./generate-certs.sh` script creates self-signed certificates suitable only for development.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Stars0
Forks0
Last Update2026-01-18

Tags

MCPAuthenticationAPI ServerStatelessPOC