dapr/dapr-agents
Python agent SDK with recoverable Dapr workflows and sidecar-discovered MCP tools
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Dapr Agents is a Python SDK layered on the Dapr runtime. A DurableAgent receives a workflow runtime; Dapr Workflow uses virtual actors underneath to persist execution progress and resume orchestration after interruptions. The sidecar exposes service invocation for synchronous calls, pub/sub for event-driven handoffs, and state stores for application data such as agent context. Workflow progress and conversational context serve different purposes and should have separate retention requirements even if they share infrastructure.
MCP integration follows the same runtime boundary. At initialization the agent reads sidecar metadata for loaded MCPServer resources. Before the first turn, DaprMCPClient enumerates tools; discovered tools are registered as workflow tools, and each invocation schedules a child workflow. AgentMCPConfig controls discovery, or callers can wire specific servers and pass converted tools explicitly. The project builds with setuptools and setuptools_scm, and separates SDK code in dapr_agents/ from quickstarts/, examples/, schemas/ and tests/.
Key Capabilities & Differentiators
The SDK combines multi-provider LLM integration, structured outputs, contextual memory, prompt configuration and tool selection with persistent workflow orchestration. Deterministic workflow steps can sit alongside model-driven decisions in a single run. Dapr bindings and state-store components connect workflows to structured and unstructured data, while distributed tracing helps operators follow work across service boundaries.
MCP tool discovery is enabled by default. With no allowed_tools filter, all tools discovered on loaded servers are eligible for registration. The default 30-second timeout applies per server to ListTools; it is not a tool execution timeout. Dapr also exposes resilience policies such as timeouts, backoff and circuit breakers, plus access scoping for components. Those infrastructure controls complement, rather than replace, authorization for what an agent can do with a registered tool.
Trade-offs & Limitations
Compared with an in-process agent library or direct model API calls, Dapr Agents makes persisted execution and cross-service coordination part of the runtime. That is valuable when restarting an entire run would be expensive, or when work needs to continue across service restarts. It adds sidecar and backend operations, more network boundaries, and more work to diagnose failures. For a single request-response agent whose work can simply be retried from scratch, those costs can outweigh the durability benefit.
Workflow recovery is not a guarantee of task success or exactly-once external effects. Give write-capable tools stable operation identifiers or make them idempotent, define what happens when retry budgets are exhausted, and test interruption around side effects. Restrict MCP tool registration in production rather than relying on the default broad discovery. Size against concurrent runs, state traffic, and model and tool latency; neither the actor architecture nor a successful local quickstart establishes production throughput.
Hardware & Deployment Guide
For a local evaluation, use the Dapr CLI, uv and a Python version within the package's declared range (>=3.11,<3.15). The documented sequence is dapr init, uv init, and uv add dapr-agents. Start with quickstarts/, then use examples/14-durable-deep-agent to exercise crash recovery. For a self-hosted Kubernetes rollout, plan for the Python application, its Dapr sidecar and a workflow-compatible state backend. Configure pub/sub and MCPServer resources where used, and provision access to the selected model service. Self-hosting orchestration alone does not provide offline inference.
The v1.1.1 release updated locked dependencies with high and critical advisories and pinned CI actions to commit SHAs. Those changes are a reason to check the resolved dependency graph in your own deployment, not evidence that every deployed environment is patched. Version 1.1.0 also added redisvl to the vectorstore extra and fixed a case where a later turn reused a tool_call_id and earlier tool results were not retained. The vectorstore change does not make Redis a baseline prerequisite.
DaprMCPClient lists tools before the first turn, with a default 30-second discovery deadline per server.>=3.11,<3.15; local quickstarts start with the Dapr CLI and uv.Teams already operating Dapr, or willing to adopt it, whose long-running research or document workflows must resume after restarts and coordinate across services.
Your agent serves short, stateless requests, retrying from scratch is acceptable, or the team cannot take on sidecar and workflow-state operations.
Quick Start & Installation
dapr init uv init uv add dapr-agents
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| dapr-agents ★ | 783 | +5 | Python | Apache-2.0 | Python agent SDK with recoverable Dapr workflows and sidecar-discovered MCP tool |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
| langgraph | 45.8k | +293 | Python | MIT | Python graph orchestration for stateful, resumable agents and workflows |
| langchain | 150.4k | +290 | Python | MIT | Modular Python framework for building agents across model providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/dapr/dapr-agents.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about dapr-agents
How does an agent discover and invoke MCP tools?
MCPServer resources. Before the first turn, DaprMCPClient lists their tools. Registered tools invoke MCP calls through child workflows. Use AgentMCPConfig.allowed_tools to limit registration, disable discovery entirely, or register tools explicitly with DaprMCPClient.Do I need a GPU, and what should I size for?
Can I use Dapr Agents commercially and self-host it?
When is this a better fit than an in-process agent SDK or a direct model API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy