Captura del repositorio oficial de MCP Python SDK. Fuente <a href="https://github.com/modelcontextprotocol/python-sdk">GitHub</a>.
The official Python MCP SDK provides server and client implementations for tools, resources and prompts. Its arithmetic example offers a small way to understand how a call travels through the system.
Getting started and checking results
Use the quickstart for the installed SDK version. Expose a function that adds two numbers with typed inputs and output. Test a valid call and an input containing text where a number is expected, then inspect the returned error.
Licenses, resources and costs
SDK versions matter because names and interfaces evolve. Keep examples aligned with the selected documentation. The package uses MIT. A local prototype mainly costs time and computer resources. A remote service additionally needs deployment, authentication, logging and maintenance.
Primary source reviewed on November 18, 2026. Official MCP Python SDK repository.
