PydanticAI + MCP + Ollama examples for your local tool-use LLM

This blog post is for you if you’ve heard of the model context protocol (MCP) and are curious how you could implement something in Python such that you can try it with your local models that are capable of tool use, e.g. via Ollama. Maybe you even looked at the documentation but felt there still was something missing for you to get started? At least that’s how I felt. The “easiest” / Stdio server verison worked immediately but when I wanted to use a HTTP server I was sort of stranded. It was unclear to me how to actually run the server and what the client needs where so it can successfully talk to the server. Don’t get me wrong, the MCP and PydanticAI documentation is pretty good, but things could always be easier, could they not? :-P Maybe I’ll save you some time with this post. ...

June 4, 2025 · 4 min · ericschmidt

Fully Utilizing Your Supermarket Receipts

Introduction Want to track how much you spend on what but don’t want to download every supermarket’s app / manually fill some sort of spreadsheet? The app ( github) described here can be hosted on your machine or online so you can take a picture of your receipt with your phone upload it and later download the extracted data using a desktop machine. App Overview If you have a receipt like ...

October 21, 2024 · 3 min · ericschmidt