mcp-demo-streamable-http-with-auth

The-Cortex-Hub/mcp-demo-streamable-http-with-auth

3.1

If you are the rightful owner of mcp-demo-streamable-http-with-auth and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP HTTP Auth Server is a server implementation designed to handle authentication and authorization using the Model Context Protocol (MCP) and OAuth standards.

MCP HTTP Auth Server

Quick Start

Start the Server

uv run main.py

Test with MCP Inspector

npx @modelcontextprotocol/inspector http://127.0.0.1:5000/mcp

Test Endpoints

# Test MCP endpoint
curl -i http://127.0.0.1:5000/mcp

# Test OAuth protected resource discovery
curl -s http://127.0.0.1:5000/.well-known/oauth-protected-resource | jq

# Test OAuth authorization server discovery
curl -s http://127.0.0.1:5000/.well-known/oauth-authorization-server | jq

Workflow for Testing OAuth

  1. Run one of the clear methods above
  2. Close Cursor completely
  3. Reopen Cursor
  4. Try connecting to your MCP server again
  5. The authentication flow will start fresh

Configuration

The server uses the following environment variables (with defaults):