# mcp-agent

> A composable Python framework for building agents from MCP servers and simple workflow patterns.

## Facts
- **Category:** [Agent Frameworks](https://agentsearchengine.app/category/agent-frameworks)
- **Type:** Framework
- **Pricing:** Open source
- **GitHub stars:** 8,556
- **Language:** Python
- **License:** Apache-2.0
- **Last repo activity:** 7 months ago (Jan 25, 2026)
- **Official site:** https://github.com/lastmile-ai/mcp-agent
- **Source code:** https://github.com/lastmile-ai/mcp-agent
- **Listing on Agent Search Engine:** https://agentsearchengine.app/agents/mcp-agent
- **Data verified:** September 2026

## Best for
Python developers who want agents whose tools are MCP servers and whose control flow stays simple.

## About mcp-agent
mcp-agent, from LastMile AI, builds agents on the premise that MCP plus simple patterns beats complex architectures. It fully implements MCP and manages server connection lifecycles, implements the patterns from Anthropic's Building Effective Agents in a composable way, and scales from simple agents to durable workflows on Temporal that can pause, resume and recover.

## Install

```
pip install mcp-agent
```

## Alternatives
mcp-agent sits in agent frameworks. Related tools indexed here:
- [langchain](https://agentsearchengine.app/agents/langchain) — The agent engineering platform. · Open source · Framework · 147k★ · Python · MIT · active today
- [ruflo](https://agentsearchengine.app/agents/ruflo) — The leading agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. · Open source · Framework · 73k★ · TypeScript · MIT · active 1 day ago
- [MetaGPT](https://agentsearchengine.app/agents/metagpt) — A multi-agent framework that assigns software-company roles to LLM agents to turn a requirement into a project. · Open source · Framework · 71k★ · Python · MIT · active 8 months ago
- [autogen](https://agentsearchengine.app/agents/autogen) — A programming framework for agentic AI; upstream is in maintenance mode. · Open source · Framework · 61k★ · Python · CC-BY-4.0 · active 5 months ago
- [crewAI](https://agentsearchengine.app/agents/crewai) — Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks. · Open source · Framework · 59k★ · Python · MIT · active today
- [LlamaIndex](https://agentsearchengine.app/agents/llamaindex) — Framework for connecting LLMs and agents to your own documents and data. · Open source · Framework · 52k★ · MIT · active today
- [LangGraph](https://agentsearchengine.app/agents/langgraph-platform) — LangChain's low-level orchestration framework for stateful, controllable agents. · Open source · Framework · 42k★ · Python · MIT · active today
- [DSPy](https://agentsearchengine.app/agents/dspy) — Stanford's framework for programming, not prompting, language models, with optimisers for prompts and weights. · Open source · Framework · 38k★ · Python · MIT · active today

---
Source: [Agent Search Engine](https://agentsearchengine.app) — an independent, hand-curated index of AI agents, MCP servers, and frameworks. Rankings are never sold; sponsored placements are labeled and never numbered. Full directory: https://agentsearchengine.app/llms-full.txt
