The Simplest MCP Example Possible in Python
Posted by Al Sweigart in misc
A large language models is, at its core, a giant blob of many billions or trillions of floating point numbers which generate text following an initial prompt. By themselves, they don't have access to clocks, calendars, web browsers, calculators, or Python interpreters. MCP (Model Context Protocol) is a standard for giving LLMs access to tools like these. This blog post has a basic example of how you can run an LLM on your local laptop (using Ollama) and give it access to the Python programs you write (using FastMCP). (This blog post assumes you have basic experience with Python, installing Python packages, and running commands on the terminal.)
