Spaces:
Sleeping
Sleeping
metadata
title: MCP Resource Server
emoji: 😻
colorFrom: indigo
colorTo: gray
sdk: docker
pinned: true
license: mit
short_description: 'Mcp Resource Server with OAuth '
app_port: 7860
This Resource Rerver is the code found at
github modelcontextprotocol/python-sdk with changes made to run in a Huggingface Space as an simple free standing MCP Resource Server.
Check out AuthO 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 secrets to the space (they don't have to be secret)
- AS_HOST_NAME ((embeded hf host name) eg applemuncy-as.hf.space)
- AR_HOST_NAME ((embeded hf host name) eg applemuncy-rs.hf.space)
- Download the main.py which is the client.
- Setup a local .venv and install mcp>=1.12.3
- Activate the .venv enviorment.
- Edit main to point to your RS
- run it at the command line with python main.py
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference