Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Agents with LangGraph & MCP: Build RAG & Multi-Agents
New
5 students

AI Agents with LangGraph & MCP: Build RAG & Multi-Agents

Build tool-calling agents, RAG pipelines, MCP servers and multi-agent systems in Python with hands-on projects
Last updated 11/2026
English
English

What you'll learn

  • Build a working AI agent loop from scratch in Python: tool calling, observations, step limits and error recovery
  • Get reliable structured output from LLMs with JSON schemas, Pydantic validation and repair loops
  • Build search from scratch (BM25, embeddings, vector search, hybrid search) and use it for retrieval augmented generation (RAG)
  • Connect agents to tools and data with the Model Context Protocol (MCP), writing both a server and a client
  • Design memory, planning and multi-agent systems, and know when a single agent is the better choice
  • Evaluate agents with test sets, LLM-as-judge and tracing, and defend them against prompt injection
  • Run everything locally on a laptop for free, or switch to Claude with one setting, while tracking tokens and cost
  • Deploy an agent with FastAPI, Docker, a web UI and monitoring

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

9 sections • 65 lectures • 2h 8m total length
  • Introduction3:47

    What you will build in this course, how the sections connect, and how to use the code and cheat sheet.

  • What is an AI agent4:02

    The difference between a chatbot and an agent, and the loop of think, act and observe that every agent follows.

  • Agents in the real world wins failures and tools3:56

    Real examples of where agents deliver value, where they fail, and why tools make the difference.

  • Setup your model your project and your data3:22

    Install Python, set up the project, choose a model, and load the sample data used across the course

  • LLMs and Agent Basic
  • Lab 1: Watch the loop think0:25

    Hands-on lab: run the agent loop step by step and watch it think.

  • Coding Exercise 1: Give the agent a third tool

Requirements

  • Basic Python: functions, classes, dictionaries and lists
  • A laptop with about 8 GB of RAM. No GPU and no paid API key required
  • Optional: a Claude API key, if you want faster runs

Description

This course contains the use of artificial intelligence.

AI agents are moving from demos into real products. This course shows you how to build them properly.

You will build AI agents in Python using LangGraph, the framework for stateful agent workflows, and connect them to real tools through the Model Context Protocol (MCP). We start with a simple tool-calling agent and build up, one step at a time, to retrieval-augmented (RAG) agents and multi-agent systems that work together on a task.

Every concept comes with code. You will see why an agent picks a tool, how state moves through a graph, how to keep the agent's answers grounded in your own documents, and how to split a large job across several specialised agents.

What you will build

  • A tool-calling agent that decides when to search, calculate or call an API

  • A RAG agent that answers questions from your own documents with retrieved context

  • An MCP server that exposes your own tools to any MCP-compatible client

  • A multi-agent system in which a supervisor routes work to specialist agents

How the course works

  • Short, focused video lectures with captions

  • Complete source code for every project

  • Quizzes at the end of each section to check your understanding

  • Hands-on assignments so you write the code yourself

Who this course is for

This course is for Python developers, data scientists and ML engineers who already know the basics of LLMs and want to build agents that do real work. If you have called an LLM API before and want to go further, this course is for you.

By the end, you will be able to design, build and debug your own agent workflows with LangGraph and MCP.

Who this course is for:

  • Python developers who want to build real applications with large language models
  • Data scientists and analysts moving into AI engineering
  • Engineers who use LangChain, LangGraph or an agent SDK and want to understand what happens underneath
  • Professionals in finance, operations and IT who want to automate document and data work with agents
  • Anyone preparing for AI engineering interviews