Prompt template

MCP Python SDK Styled Greeting Prompt

A reusable FastMCP example prompt that turns a recipient name and greeting style into an instruction for an MCP host.

About this listing

This greet_user prompt is a concrete component of the official MCP Python SDK v1 quickstart, rather than a standalone hosted service. It accepts a name and an optional style, then returns an instruction asking the host's model to write an appropriate greeting. The example supports friendly, formal and casual wording. Friendly is the default, and an unknown style also falls back to the friendly instruction. Developers can use it to understand argument-driven prompt registration and adapt the pattern for a local MCP server. The example code is available under the SDK's MIT licence. Free refers to the code only; any model provider or infrastructure used to run it may charge separately.

Source: Visionary Junction · Reuse terms