MCP Python SDK Document Resource Template
A small Python reference resource template for learning how named document URIs map to MCP resource handlers.
About this listing
This reference component in the official MCP Python SDK registers file://documents/{name} as a parameterized resource. A client supplies a document name in the URI, and the handler receives that name as a string. It is useful for developers learning resource-template registration and building client integrations that read named resources.
The example returns a generated text response containing the supplied name. It does not actually read a file from disk or provide a document store. The same sample server also registers a separate fixed settings resource, helping illustrate the difference between a parameterized resource and a concrete resource.
Free refers to the MIT-licensed example code. Running a Python environment, client, model or infrastructure may have separate costs. This is a development example, not a hosted document service.