Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Agentic AI: Build AI Agents with MCP, FastMCP & Pydantic AI
Highest Rated
Rating: 4.8 out of 5(11 ratings)
123 students

Agentic AI: Build AI Agents with MCP, FastMCP & Pydantic AI

Learn JSON-RPC and the Model Context Protocol, build multi-agent systems, run local LLMs, and ship a JWT-secured agent
Created byNandakishor M
Last updated 7/2026
English
English [Auto],

What you'll learn

  • Build AI agents from first principles using the Model Context Protocol (MCP), understanding the JSON-RPC loop behind every agent.
  • Turn any Python function into an agent tool in minutes with FastMCP, and orchestrate multi-agent, multi-tool systems using Pydantic AI.
  • Run large language models locally with Ollama and GGUF quantization, so your agents work offline with no API bills.
  • Deploy a working AI agent as a production REST API secured with JWT authentication using FastAPI.
  • Understand LLM internals that matter for agents: tokens, embeddings, attention, FP16 and quantization.

Course content

1 section • 10 lectures • 1h 23m total length
  • Why Agents? From Chatbot to Doer7:40

    A chatbot can only talk. An agent can act. In this lesson you will see exactly what turns a language model into an agent: the tool-calling loop. We break down why LLMs need tools, how a request travels from the user to a tool and back, and the simple loop that sits behind every agent you will build in this course.



  • MCP: JSON-RPC and Three Method Names4:33

    The Model Context Protocol sounds complicated. It is not. Under the hood it is JSON-RPC 2.0 and just three method names: initialize, tools/list, and tools/call. You will learn the exact message shapes an agent and a tool server exchange, so MCP stops being a buzzword and becomes something you can read and write by hand.


  • FastMCP: The Whole Server in 10 Lines4:35

    Writing MCP by hand is tedious. FastMCP does it for you. With a single decorator, a plain Python function becomes a fully described agent tool: your type hints become the input schema and your docstring becomes the description. In this lesson you build a working MCP tool server in about ten lines and see why the contract can never drift from your code.


  • Your First Agent: Brain and Hands6:06

    Time to connect the brain to the hands. Using Pydantic AI and a local model, you build an agent that actually does something: it writes a real file to disk. You will see who decides to call a tool, why the docstring matters so much, and the three arguments that define an agent. By the end you have a complete agent running on your own machine.


  • Multi-Agent Systems: An Agent Can Be a Tool7:16

    One agent is useful. Several working together are powerful. The key idea is simple: a specialist agent can be wrapped as a tool of a manager agent. You will build a manager that delegates to a research agent and a booking agent, keep read-only and money-spending tools cleanly separated, and add a confirmation safety latch before any risky action runs.


  • LLM Architecture: What Is the Brain, Really?10:07

    To build good agents, you should understand the model driving them. This lesson opens the box: text becomes tokens, tokens become embeddings, and attention lets the model decide what matters. We keep it intuitive and visual, covering the path from raw text through embeddings and self-attention to the model that powers your agent.


  • FP16: How a Number Becomes 16 Bits3:56

    Before you can shrink a model, you need to know how it stores numbers. Here you convert a number to 16-bit floating point by hand: one sign bit, five exponent bits, ten mantissa bits, and the bias that ties it together. You will understand why FP16 halves memory versus FP32 and where it overflows, which sets up everything about quantization.


  • GGUF Quantization: 4GB to 1GB4:57

    This is the math that makes local models practical. You will see how quantization maps full-precision weights into a handful of levels with a simple scale, why a 4GB model can shrink to around 1GB, and the real tradeoff between file size and precision. GGUF stops being a mystery format and becomes something you understand.


  • Ollama: llama.cpp Wrapped as a Server1:42

    Ollama is the easiest way to run a quantized model locally. In this short lesson you learn what Ollama actually is: llama.cpp behind an OpenAI-shaped HTTP API. You will point your agent code at a local endpoint, swap the base URL, and run everything offline with no API keys and no cloud bills.


  • The Whole Thing: Agent to FastAPI to JWT to Production32:57

    This is the capstone. Starting from an empty notebook, you wrap your agent in a FastAPI service and secure it with JWT authentication, so only requests carrying a valid token can reach it. You will follow the full flow: reject a request with no token, log in for a bearer token, call the agent, and confirm a forged token is turned away. By the end you have a real, secured agent API you could deploy.


Requirements

  • Comfortable writing basic Python (functions, classes, pip). No AI or machine learning background needed, everything about agents and LLMs is taught from scratch.
  • A computer that can run Python 3. A GPU is helpful for local models but not required.

Description

Stop chatting with AI. Start building agents that do things.

Anyone can talk to a language model. Very few people can build an agent that reads files, calls tools, coordinates other agents, and runs as a real service you can deploy. This course takes you all the way there, from first principles to a secured, production-ready AI agent, with code you write and run yourself. No hand-waving, and no copy-paste magic you do not understand.

You will learn:

- The tool-calling loop that turns a plain language model into an agent that takes action

- The Model Context Protocol (MCP) explained properly: it is really just JSON-RPC 2.0 and three method names, and you will read and write it by hand

- FastMCP, so a single Python function becomes a fully described agent tool in about ten lines

- Your first real agent with Pydantic AI that writes a file to disk on your own machine

- Multi-agent, multi-tool systems where a manager agent delegates to specialist agents, with safety checks on risky actions

- What is really inside an LLM: tokens, embeddings, attention, FP16, and GGUF quantization, taught visually and from scratch

- How to run models locally with Ollama, fully offline, with no API keys and no cloud bills

- A capstone where you deploy your agent as a FastAPI REST API secured with JWT authentication, and trace the full request flow

Most courses stop at "here is a prompt." This one ends with a deployed, authenticated agent API, the part almost no one teaches. Every concept is grounded in code you write and run, so you finish with working projects, not just notes.

This course is taught by an AI researcher and founder who builds these systems for a living, with published work in applied AI. You should be comfortable writing basic Python. You do not need any AI or machine learning background, because everything about agents, MCP, and LLMs is taught from the ground up.

Enroll now and build your first production AI agent.


Who this course is for:

  • Python developers who want to build real AI agents, not just chat with them, and ship them to production.
  • Engineers and students curious about MCP, FastMCP and agentic AI who prefer building from first principles over copy-paste tutorials.
  • Anyone who wants to run LLMs locally and deploy a secured agent API without relying on paid cloud APIs.