#01 · AI agents and MCP · 6.3 minLocal AI Agent in Python: No API Key (Ollama)
Build and run a tool-calling AI agent on your own laptop with Python and Ollama. No API key, no bill.
Python 3.13.2 | ollama==0.6.3all videos / AI agents and MCP
24 videos · 2 hours.
#01 · AI agents and MCP · 6.3 minBuild and run a tool-calling AI agent on your own laptop with Python and Ollama. No API key, no bill.
Python 3.13.2 | ollama==0.6.3
#12 · AI agents and MCP · 6.1 minBuild a pipeline and a router in plain Python with a local model, then test the four lines that guard a supervisor loop, using a scripted stand-in.
Python 3.12.15 | ollama==0.6.3, pydantic==2.14.1
#22 · AI agents and MCP · 6.7 minOne tool kept failing. One agent loop stopped at 6 calls, one at 10, and one kept going.
Python 3.12.15 | openai-agents==0.24.0, langgraph==1.2.16, langchain-openai==1.7.2, langchain-core==1.7.0, openai==3.36.1
#23 · AI agents and MCP · 6.2 minMy agent forgot my name after four messages. When I let it remember everything, it remembered my card number too.
Python 3.12.15 | ollama==0.6.3
#24 · AI agents and MCP · 4.9 minMy prompt told the agent to ask before deleting. It deleted the file anyway. Here is a gate in code that stopped it.
Python 3.12.15 | ollama==0.6.3
#25 · AI agents and MCP · 5.7 minMy AI tool failed, and the model made up the answer. Here is how to retry and fall back inside the tool.
Python 3.12.15 | ollama==0.6.3
#26 · AI agents and MCP · 5.8 minOne example in the prompt took a small model from 2 of 6 to 6 of 6. Reflection added nothing.
Python 3.12.15 | ollama==0.6.3, pydantic==2.14.1
#27 · AI agents and MCP · 5.7 minMy agent loop could run forever. Here are the three limits that stop it, and one thing I did not expect from a real model.
Python 3.12.15 | ollama==0.6.3
#28 · AI agents and MCP · 5.3 minI gave two MCP servers a tool called search each. Merge their tools by name, and one of them vanishes.
Python 3.12.15 | mcp==2.3.0, ollama==0.6.3
#29 · AI agents and MCP · 5.3 minTools are only one of three things an MCP server can offer. Here are the other two, and the one default that stopped a file leak.
Python 3.12.15 | mcp==2.3.0
#30 · AI agents and MCP · 5.2 minAn MCP server on a network with no check answers anyone who can reach it, so I added a token check.
Python 3.12.15 | mcp==2.3.0
#31 · AI agents and MCP · 6.1 minA tool on my MCP server failed with an error a model could do nothing with. The Inspector's command line mode showed me that error exactly as a model would get it.
Python 3.12.15 | mcp==2.3.0
#32 · AI agents and MCP · 5.5 minTwo agents that share no code can still work together, if they share a protocol.
Python 3.12.15 | a2a-sdk[http-server]==1.2.3, uvicorn==0.54.0
#33 · AI agents and MCP · 6.4 minA browser script tied to one page's ids can break the day the page changes. On my two test pages, a loop that looks first did not.
Python 3.12.15 | playwright==1.64.1
#34 · AI agents and MCP · 5.5 minNo attack I tried reached another customer's order. I still moved the customer check into the code.
Python 3.12.15 | ollama==0.6.3
#35 · AI agents and MCP · 5.1 minWhich step of my agent failed, and which was slow? One trace showed both, with the time each step took.
Python 3.12.15 | opentelemetry-sdk==1.45.1
#36 · AI agents and MCP · 5.3 minTwo agents argued, and did no better than a plain vote, for more calls.
Python 3.12.15 | ollama==0.6.3
#37 · AI agents and MCP · 5.7 minA read only database stopped three of eight attacks on my SQL agent. The other five needed other layers.
Python 3.12.15 | duckdb==2.0.0
#38 · AI agents and MCP · 5.2 minMy job crashed, I restarted it, and it sent the same email twice.
Python 3.12.15
#39 · AI agents and MCP · 5.2 minI cut my chat to the last three turns and the model forgot all five facts.
Python 3.12.15 | ollama==0.6.3
#292 · AI agents and MCP · 5.7 minPeople talk about MCP like magic, so I spoke it by hand, in plain JSON lines.
Python 3.12.15 | mcp==2.3.0
#330 · AI agents and MCP · 6.8 minA plain keyword router put the right tool in a list of 5 for 28 of 30 made-up requests.
Python 3.12.15Ten tools, seven sources, and a gap is never reported as a no.
Python 3.12.15One toy, two dates: the same MCP tool said 3.16, then 3.17, because the date picked the schedule.
Python 3.12.15 | mcp==2.3.0No video matches that search.