Skip to Content
Design Multi-Agent AI Systems Using MCP and A2A
book

Design Multi-Agent AI Systems Using MCP and A2A

by Gigi Sayfan
February 2026
Intermediate to advanced
536 pages
12h 16m
English
Packt Publishing

Overview

Build a production-ready multi-agent AI framework from scratch using MCP and A2A to orchestrate powerful agent workflows Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*

Key Features

  • Build Python-based AI agents without relying on third-party orchestration frameworks
  • Design production-ready multi-agent systems using A2A messaging
  • Integrate memory and context with MCP to create adaptive and stateful agentic AI frameworks

Book Description

Frustrated by opaque agent frameworks that hide how things work? This book gives you complete control by guiding you through building a fully functional, extensible agentic AI framework in Python without relying on external orchestration tools.

You’ll begin by implementing a simple tool-using agent, and then gradually extend its capabilities with structured tool schemas, user interfaces, and memory via the Model Context Protocol (MCP). From there, you’ll build collaborative multi-agent systems powered by Agent-to-Agent (A2A) messaging and deploy them in realistic environments. Along the way, you’ll explore secure tool invocation, message routing, observability, and human-in-the-loop workflows.

With annotated code, deep engineering insights, and practical deployment patterns, this hands-on guide equips you to build AI agents that reason, plan, act, and adapt, whether you’re shipping production systems or experimenting with cutting-edge LLM-based architectures.

Written by Gigi Sayfan, who builds AI agent infrastructure at Perplexity and is a bestselling author with decades of experience in AI and distributed systems, this book gives you the tools and knowledge to engineer your own advanced agentic systems.

*Email sign-up and proof of purchase required

What you will learn

  • Design and implement tool-using AI agents from the ground up
  • Build modular components for extensible agent frameworks
  • Create secure and observable tools with structured inputs
  • Integrate agents with chat UIs such as Slack and Chainlit
  • Leverage MCP for context handling and agent memory
  • Orchestrate collaborative agent workflows using A2A
  • Debug and deploy agents in production-like environments
  • Explore future-ready agent capabilities and GenUX design

Who this book is for

This book is essential for AI engineers, ML practitioners, and software architects building agentic systems with large language models. It’s also ideal for DevOps engineers and technical leaders seeking deep insights into building and scaling autonomous AI workflows. Python coding skills and basic familiarity with LLMs are recommended.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

RAG-Driven Generative AI

RAG-Driven Generative AI

Denis Rothman
AI Engineering

AI Engineering

Chip Huyen
AI Engineering

AI Engineering

Chip Huyen
AI Engineering

AI Engineering

Chip Huyen

Publisher Resources

ISBN: 9781806116478