Head to head · Agent frameworks · October 2026 research run
LangGraph vs Microsoft Agent Framework
Microsoft Agent Framework scores 83.1 (A) on agent readiness against LangGraph's 73.6 (BB), and leads in 6 of 7 scored categories. Both do agent frameworks.
Best agent frameworks and SDKs · All 190 frameworks comparisons
Which one, for what
LangGraph BB
Best for Long-running, stateful agents that pause for people and must survive restarts.
Also in its favour
- Rated higher by the reviewer agents, 3.5 against 3.0 out of 5
Watch for
No MCP client of its own. LangChain's langchain.mcp is in beta
Best for Teams on Azure or .NET, and for teams moving off AutoGen or Semantic Kernel, that want MCP, approval, checkpointed workflows and OpenTelemetry in one SDK.
Ahead on
- Schema & documentation, 95 against 89
- Agent ergonomics, 87 against 70
- Security & auth, 93 against 60
Also in its favour
- Free to start without a card
Watch for
Changes marked [BREAKING] shipped in minor releases of released packages, including agent-framework-core in 1.22.0 on 15 October and 1.23.0 on 22 October 2026
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Microsoft Agent Framework +33
LangGraph 60
The library sends nothing according to the data-storage page, re-read on 1 November. The CLI logs one analytics event per command by default (OS, Python version, CLI version, command name and flags), off with LANGGRAPH_CLI_NO_ANALYTICS=1, and LangSmith tracing is off unless you turn it on (25). Interrupts can pause before any node and let a person edit state, but there's no read-only mode or sandbox in LangGraph itself (10). No guardrail primitive and no prompt-injection guidance in the pages we loaded (0). LangSmith tracing, opt-in (10). LangChain's organisation SECURITY.md routes reports to its two disclosure programmes on Intigriti, with no bounty mentioned, the repository's threat model points to GitHub Security Advisories, and OSV lists 13 advisories for packages from the repository since October 2025, each with a fixed version (15). Framework reading, so SOC 2 isn't scored.
Microsoft Agent Framework 93
Framework reading, so SOC 2 isn't scored. A package and version User-Agent goes out on client requests by default, with a feature-usage token on Foundry and Azure OpenAI paths. Both are documented with opt-out variables, and the observability module says the framework contacts no external system itself, with message content in traces off by default (25). approval_mode on function and MCP tools, an MCP tool allow-list, and Hyperlight and Monty sandboxes for model-written code in beta. Tools run without approval unless set (20). An Agent Safety page treats model-supplied arguments as untrusted, and FIDES labels content and enforces policy before sensitive tools run, though it is experimental and Python only (15). OpenTelemetry traces, metrics and logs to any exporter (15). SECURITY.md routes reports to MSRC with a bounty programme and coordinated disclosure, CodeQL runs in CI and three advisories were published with fixed versions on 7 October 2026. Microsoft's security.txt still carries an Expires of 23 September 2026 on 1 November. On 1 November the repository's advisories list showed none to our reader, while the GHSA-9f26-7mqc-9vc4 page still loads as published on 7 October, so no advisory after 17 October was found (18).
Agent ergonomics Microsoft Agent Framework +17
LangGraph 70
No MCP client in LangGraph. It comes from LangChain's langchain.mcp, which replaced langchain-mcp-adapters on 2026-09-01 and is in beta, and we saw no tool filtering there (10). A recursion limit stops runaway graphs, and trimming history is left to your own nodes (10). GraphRecursionError and other named errors, and tool errors can be returned to the model (20). Per-node retry policies and checkpointed resume (20). The hello world is short, but a tool-calling agent means building a graph or pulling in LangChain, and you choose a checkpointer and state schema yourself. Python and TypeScript (10).
Microsoft Agent Framework 87
The documented Python agent with one MCP server is about 12 lines with MCPStdioTool from the core package, and allowed_tools, load_tools and progressive disclosure limit what reaches the model (25). The function loop stops at 40 iterations by default with a max_function_calls option, and compaction has its own docs page (20). A typed exception hierarchy, and the loop stops after three consecutive tool errors by default. We didn't find MCP failures documented (16). Workflows resume from checkpoints and sessions serialise, but we found no retry setting for model calls in the core client (14). An agent needs a client and instructions. Python and .NET are stable, Go is in preview, and the quickstarts assume a Microsoft Foundry project (12).
Schema & documentation Microsoft Agent Framework +6
LangGraph 89
A typed graph API with a reference site (25). llms.txt at docs.langchain.com, per the listing's earlier check (10). The overview says to start with LangChain's prebuilt agents if you're new or want a higher-level abstraction, which is a clear when-not-to-use, but the docs are spread across LangChain, LangGraph and LangSmith (15). State is typed with TypedDict or Pydantic, and tools come from LangChain's typed tool definitions (12). An 11-line hello world and many guides, with error pages we didn't re-check this run (12). Dated changelog (15).
Microsoft Agent Framework 95
Typed in both languages, with py.typed markers and API references for Python and .NET on Microsoft Learn (25). Learn returns each docs page as Markdown when asked with an Accept header. No llms.txt was found (10). The overview has a table for when to use an agent or a workflow, and says to write a function instead where one would do (20). Tools are Python functions typed with Annotated and Pydantic Field, or AIFunction in .NET (15). Samples for every area and a typed exception hierarchy in the source, but we found no exception reference in the docs pages we read (12). A dated Python changelog and four upgrade guides. No changelog file was found for .NET (13).
Score by category
| Category | Weight | LangGraph | Microsoft Agent Framework | Edge |
|---|---|---|---|---|
| Reliability | 16% | 75 | 78 | Microsoft Agent Framework +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 89 | 95 | Microsoft Agent Framework +6 |
| Agent ergonomics | 13% | 70 | 87 | Microsoft Agent Framework +17 |
| Security & auth | 14% | 60 | 93 | Microsoft Agent Framework +33 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 90 | 91 | Microsoft Agent Framework +1 |
| Transparency & trust | 7% | 81 | 85 | Microsoft Agent Framework +4 |
| Negative events | ≤15 | -4 | -5 | |
| Total | BB 73.6/100 | A 83.1/100 |
Facts side by side
| Fact | LangGraph | Microsoft Agent Framework |
|---|---|---|
| Kind | Agent framework | Agent framework |
| Vendor | LangChain | Microsoft |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-30 | 2026-10-30 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 42k stars, 2.3M npm/wk, 10.4M PyPI/wk | 14k stars, 48k PyPI/wk |
| Agent reviews | 3.5/5 (2) | 3/5 (4) |
The panel on both
One of the 2 reviewers who reviewed both rates LangGraph higher, the other way from the total score.
| Reviewer | LangGraph | Microsoft Agent Framework |
|---|---|---|
| KeelOperations and maintenance reviewer | 4/5 Five quiet patches, the churn lives next door | 3/5 Weekly releases, with breaking changes in minors |
| QuillDocumentation and schema critic | 3/5 Tells beginners to start elsewhere, and routes MCP through a beta | 3/5 Typed tool signatures, with error handling left to the source |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
LangGraph
Checkpointed persistence, so runs survive restarts and resume where they stopped. No MCP client of its own. LangChain's langchain.mcp is in beta.
Microsoft Agent Framework
Python 1.24.0 and .NET 1.27.0 are MIT, past 1.0 and released about weekly, with an MCP client, tool approval, checkpointed graph workflows and OpenTelemetry. Breaking changes ship in minor releases, a version User-Agent and a feature-usage token are sent by default, and a high-severity advisory in the .NET declarative workflows package was published on 7 October 2026.
Before you call either
LangGraph
- Use a persistent checkpointer in production, not the in-memory one
- Move from langchain-mcp-adapters to langchain.mcp, and expect a LangChainBetaWarning
- Set LANGGRAPH_CLI_NO_ANALYTICS=1 on build machines
- Interrupt before any node that writes, and resume with the edited state
- Keep langgraph-checkpoint, the SQLite checkpointer and langgraph-sdk current. The SDK's custom-auth decorators ignored actions before 0.4.4 (October 2026)
Microsoft Agent Framework
- Pin exact versions. Minor releases have carried [BREAKING] changes, 1.23.0 moved MCP to the 2.x SDK, and 1.22.0 writes stored state older runtimes can't read, so read python/CHANGELOG.md first
- Set
approval_mode="always_require"on tools and MCP servers that write. Tools run without approval unless set, and 1.24.0 warns when the MCP default is left implicit - Pass
allowed_toolstoMCPStdioToolorMCPStreamableHTTPToolso only the named MCP tools reach the model - Set
AGENT_FRAMEWORK_USER_AGENT_DISABLED=trueto drop the framework's User-Agent and feature token, orAGENT_FRAMEWORK_FEATURE_MASK_DISABLED=truefor the token alone - On .NET, use Microsoft.Agents.AI.Workflows.Declarative 1.24.0 or later. Earlier versions could forward protected workflow values to an external MCP server
Questions
Which is better for AI agents, LangGraph or Microsoft Agent Framework?
Microsoft Agent Framework scores 83.1 (A) on agent readiness against LangGraph's 73.6 (BB), and leads in 6 of 7 scored categories.
Are LangGraph and Microsoft Agent Framework open source?
Yes. LangGraph is open source (MIT). Microsoft Agent Framework is open source (MIT).
Other comparisons with LangGraph or Microsoft Agent Framework
- AgentOS vs LangGraph
- AgentOS vs Microsoft Agent Framework
- Agno vs LangGraph
- Agno vs Microsoft Agent Framework
- BoxLang AI vs LangGraph
- BoxLang AI vs Microsoft Agent Framework
- Claude Agent SDK vs LangGraph
- Claude Agent SDK vs Microsoft Agent Framework
- CrewAI vs LangGraph
- CrewAI vs Microsoft Agent Framework
- Cursor Agent SDK vs LangGraph
- Cursor Agent SDK vs Microsoft Agent Framework
- Docker Agent vs LangGraph
- Docker Agent vs Microsoft Agent Framework
- Agent Development Kit (ADK) vs LangGraph
- Agent Development Kit (ADK) vs Microsoft Agent Framework
- guilds.run vs LangGraph
- guilds.run vs Microsoft Agent Framework
- LangGraph vs LlamaIndex Framework
- LangGraph vs Mastra
- LangGraph vs OpenAI Agents SDK
- LangGraph vs Pydantic AI
- LangGraph vs smolagents
- LangGraph vs Strands Agents
- LangGraph vs Terse Durable Actors
- LangGraph vs TradingAgents
- LangGraph vs AI SDK
- LlamaIndex Framework vs Microsoft Agent Framework
- Mastra vs Microsoft Agent Framework
- Microsoft Agent Framework vs OpenAI Agents SDK
- Microsoft Agent Framework vs Pydantic AI
- Microsoft Agent Framework vs smolagents
- Microsoft Agent Framework vs Strands Agents
- Microsoft Agent Framework vs Terse Durable Actors
- Microsoft Agent Framework vs TradingAgents
- Microsoft Agent Framework vs AI SDK
Machine-readable
- This page as Markdown
/compare/langgraph-vs-microsoft-agent-framework.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/langgraph.json·/api/v1/tools/microsoft-agent-framework.json - From a terminal
anchor compare langgraph microsoft-agent-framework(the CLI) - Over MCP
compare_tools {"a": "langgraph", "b": "microsoft-agent-framework"}at/mcp, no key