Python agent framework
LangGraph
Low-level Python orchestration runtime for long-running, stateful agents that need durable execution, explicit state, and human review points.
Quick decision
What it is
LangGraph is a low-level orchestration framework for stateful agents. It provides durable execution, streaming, human-in-the-loop review, persistence, and memory, and it fits workflows that mix deterministic steps with agentic steps under tight control.
Execution resumes after failure instead of restarting. Operators can inspect and modify state at review points, memory covers short-term working state and long-term persistence, LangSmith handles debugging, and deployment targets production stateful workflows.
LangGraph runs standalone or inside the LangChain ecosystem. It pairs with LangChain integrations and LangSmith, ships an equivalent JavaScript library, and serves as the runtime under LangChain agents.
What it does
- Graph-based orchestration for long-running stateful agents and workflows, with explicit control over each step.
- Durable execution with checkpointing, so failed runs resume instead of restarting.
- Human-in-the-loop inspection and modification of agent state at defined points.
- Short-term working memory and long-term persistent memory primitives.
- LangSmith tracing for execution paths, state transitions, and runtime metrics.
What it does not do
- Teams that want a prebuilt agent should start with LangChain or another higher-level package. LangGraph is the control layer underneath.
- Search, browser, and scraping tools come from LangChain integrations or MCP servers, not from LangGraph itself.
- Production stateful workflows still need a deployment platform and an observability setup.
Setup
Install LangGraph
Repository quickstart: install the Python package with pip, then follow the linked LangGraph quickstart to build a first graph.
pip install -U langgraphEnvironment variables (names only; use your own values)
OPENAI_API_KEYLANGSMITH_API_KEY
Source: https://github.com/langchain-ai/langgraph. Examples use placeholders only.
MCP support: Agents consume MCP tools through langchain-mcp-adapters. LangChain documentation shows MCP tools loaded into agents that run on LangGraph.
Health and maintenance
44,112
Checked 2026-10-29
7,584
Checked 2026-10-29
Stars and forks read from the GitHub repository page in this run. PyPI page shows release files for langgraph 1.2.14 dated Oct 6, 2026.
Verified compatible tools
Via LangSmith debugging and observability for LangGraph. The LangGraph repository README lists Debugging with LangSmith and pairs LangGraph with LangSmith for agent evals and observability. Evidence. Setup detail
Via langchain-exa ExaSearchResults and ExaFindSimilarResults used with a LangGraph agent. The LangChain Exa search page shows Exa tools used with a LangGraph agent for search and similar-content lookup. Evidence. Setup detail
Via langchain-tavily TavilySearch used as a LangChain tool in LangGraph agents. The Tavily provider page shows langchain-tavily exposing Tavily endpoints as LangChain tools. LangGraph agents consume LangChain tools, and the LangGraph repository positions LangChain as the source of integrations and composable components. Evidence. Setup detail
Via langchain-mcp-adapters (MultiServerMCPClient, load_mcp_tools). LangChain documentation shows pip install langchain-mcp-adapters and load_mcp_tools loading remote MCP tools into an agent, the documented MCP path for LangChain and LangGraph agents. Evidence. Setup detail
Grouped view: tools for LangGraph.
Stacks featuring this framework
Sources and freshness
- GitHub repository: https://github.com/langchain-ai/langgraph
- PyPI package: https://pypi.org/project/langgraph/
- Exa tool page noting LangGraph agent use: https://docs.langchain.com/oss/python/integrations/tools/exa_search
Checked 2026-10-29. Source-verified means the claims above trace to the listed sources; it does not mean AgentsUse ran the framework. Send corrections through the contact page. Back to the framework index.