--- title: As emoji: 💻 colorFrom: purple colorTo: pink sdk: docker pinned: true license: mit short_description: simple Auth Server app_port: 7860 --- # This Oauth server is the code found at github [modelcontextprotocol/python-sdk]( https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-auth/mcp_simple_auth) with changes made to run in a Huggingface Space as an simple free standing MCP Oauth Server. Check out [AuthO]( https://auth0.com/) for a next step. The code was originally written to run with client, resource server, and auth server all on a single machine. **To run this in your own HF Space** # Duplicate this space ## Add 3 secrets to the space 1. AS_HOST_NAME ((embeded host name) eg applemuncy-as.hf.space) 2. USER_NAME 3. USER_PASSWORD Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference