Resource template

MCP Python SDK User Profile Resource Template

A compact MCP resource-template example for retrieving a customer profile by user identifier.

About this listing

The Python SDK Bookshop example exposes a customer-profile resource template at users://{user_id}/profile. A caller supplies a user identifier and receives a text profile with demonstration order-history information. This is useful as a minimal pattern for parameterized, read-only application context, not a live customer database or a production identity service. The example returns fixed sample order statistics rather than looking up actual customers. The SDK code is MIT licensed and free to use; running it and connecting a separately selected model or infrastructure can incur their own costs.

Source: Visionary Junction · Reuse terms