Resource template

MCP Python SDK Greeting Resource Template

A minimal named greeting resource for learning how Python MCP servers register parameterized resource URIs.

About this listing

The MCP Python SDK's introductory server includes a small greeting resource addressed with greeting://{name}. Its resource function accepts a name string and returns a greeting containing that name. This is a concrete tutorial component for developers learning resource-template registration, not a hosted greeting service or a production data source.

The example places the templated resource alongside a separate addition tool in the same demo server, making it useful for understanding the distinction between reading a resource and calling a tool. The official guide describes opening the demo in MCP Inspector and documents a Python 3.11 or newer requirement for the SDK.

Free refers to the MIT-licensed tutorial and SDK code. Running your own environment or using separately selected models and infrastructure can incur costs. This listing provides an original description of the reference example, not a copy of its implementation.

Source: Visionary Junction · Reuse terms