An introduction to the core concepts of the Model Context Protocol (MCP), explaining what it is, why it’s useful, and how it works.
POST
requests. They are used to perform an action, change state, or trigger a side effect, like sending an email, adding a user to a database, or making a calculation.
With FastMCP, creating a tool is as simple as decorating a Python function.
GET
requests. Their purpose is to retrieve information idempotently, ideally without causing side effects. A resource can be anything from a static text file to a dynamic piece of data from a database. Each resource is identified by a unique URI.
users://42/profile
to get the profile for a specific user.