Skip to content

Agent frameworks compared

LangGraph, CrewAI, AutoGen and MCP-based composition — what each optimises for and where it fits.

8 MIN READUPDATED 2026-11-18Agents & agentic AI
ORIGINAL DIAGRAM · AI STACKAPPLICATIONinterface + workflowsPOLICY & EVALUATIONguardrails, auditsAGENT + TOOLSplanning, tool callsFOUNDATION MODELreasoning

Original stack diagram — not a copied image

§ 01Key concepts
Graph-based frameworkModels the workflow as explicit states and transitions (e.g. LangGraph).
Role-based frameworkOrganises work around agents with roles and tasks (e.g. CrewAI).
Conversation frameworkAgents collaborate through structured messages (e.g. AutoGen).
Protocol-based compositionConnects tools and agents through a standard interface such as MCP.
§ 02When to use
  • You need durable, resumable state → graph-based.
  • Work maps cleanly to roles → role-based.
  • You want vendor-neutral tool access → MCP-style composition.
§ 03How it works
  1. 01Model the workflow on paper: states, steps, tools and stop conditions.
  2. 02Pick the framework whose abstraction matches that model.
  3. 03Keep prompts, tool contracts and policy outside the framework where possible.
  4. 04Benchmark reliability before committing to a framework.
§ 04Use cases & scenarios

Auditable refund workflow

Context
Refunds must pass validation and approval before money moves.
Problem
A free-form agent loop cannot be reviewed or resumed after a failure.
Approach
Model the process as graph states with checkpoints after each transition.
Outcome
A resumable workflow that reviewers can inspect step by step.

Vendor-neutral tool access

Context
Several AI clients need the same order-lookup capability.
Problem
Each client requires its own custom integration to internal systems.
Approach
Expose tools through an MCP server while the framework owns orchestration.
Outcome
Clients can be swapped without rewriting tool integrations.
§ 05Examples

Graph states for an auditable refund

text
requested -> validated -> approved -> refunded -> closed
                      \-> rejected
checkpoint after every transition; resume from the last state on failure

Graph frameworks suit processes that must be reviewed and resumed. Keep the refund policy in your own module, not inside the framework.

MCP server alongside the framework

yaml
orchestration: langgraph   # states and transitions live here
tool_access:  mcp_server   # standard, permission-scoped tool surface
tools:        [lookup_order]  # read-only for this workflow

MCP standardises tool access; it does not decide the workflow. Keep orchestration and tool exposure separate.

§ 06Trade-offs

Graph frameworks

Up: Explicit control and resumability

Down: More setup and conceptual overhead

Role frameworks

Up: Fast prototyping

Down: Less control over transitions

Protocol composition

Up: Interoperable tools

Down: Does not provide orchestration by itself

§ 07Implementation checklist
  • Evaluate on your task set, not framework demos.
  • Avoid framework-specific locking of business rules.
  • Check observability hooks and streaming support early.
  • Pin framework versions; their APIs change quickly.
§ 08Configuration reference
KeyTypical valueNote
framework_versionpinnedAvoid surprise breaking changes.
checkpointingon for long runsEnables resume after failure.
tracingenabledInstrument before shipping.
§ 09Troubleshooting
SymptomCauseFix
Framework upgrades break workflowsBusiness logic inside framework internalsKeep domain logic in your own modules.
No visibility into failuresTracing not configuredEnable run/span tracing at integration time.
§ 10Frequently asked questions

Which framework is best?

The one matching your workflow shape. Graph frameworks suit auditable processes; role frameworks suit rapid prototyping.

Does MCP replace a framework?

No. MCP standardises tool and context access; orchestration is still your application's job.

More in Agents & agentic AI