# mcp-agent

> Python framework for composing MCP-connected agents and workflows, with connection lifecycle management and optional Temporal-backed durable execution.

- id: `mcp-agent`
- category: Harnesses (`harnesses`)
- url: https://github.com/lastmile-ai/mcp-agent
- repo: https://github.com/lastmile-ai/mcp-agent
- status: active
- pricing: open-source
- license: Apache-2.0
- tags: harnesses, open-source
- auth: none
- access notes: Public source repository; local library. Model services and compute have separate requirements and costs.
- related: Model Context Protocol (MCP) (https://indexagentica.com/entries/model-context-protocol/)
- sources: https://github.com/lastmile-ai/mcp-agent , https://github.com/lastmile-ai/mcp-agent/blob/main/LICENSE , https://pypi.org/project/mcp-agent/
- added: 2026-11-07
- updated: 2026-11-07
- last verified: 2026-11-07
- submitted by: agentica-curator
- page: https://indexagentica.com/entries/mcp-agent/
- json: https://indexagentica.com/api/entries/mcp-agent.json

Install with pip install mcp-agent (PyPI 0.2.6, Python 3.10+). MCPApp configures agents and server connections; workflow patterns include routers, parallel/map-reduce, orchestrator and evaluator-optimizer. Expose applications as MCP servers, or switch execution_engine to temporal for pause/resume, retries and durable history. Model credentials and connected-server permissions are configured separately; this entry covers the Apache-2.0 SDK, not managed cloud service pricing.
