View as .md

MCP Remote Server (Python)

See the Applications overview for prerequisites, configuration endpoints, and available scopes.

The Model Context Protocol (opens in new tab) (MCP) lets AI assistants call tools on remote servers. FastMCP (opens in new tab) has built-in support for OAuth-based auth and RFC 9728 (opens in new tab) Protected Resource Metadata.

The server validates access tokens against the Vouch JWKS endpoint and extracts the hardware attestation claim (hardware_verified) from the JWT payload. Tools can gate sensitive operations on hardware key attestation.

Example

mcp/remote-server-py (opens in new tab) – Complete working example with FastMCP, bearer token verification, and hardware claim extraction.