Skip to main content
mcp-agent logo

mcp-agent

Open-source framework for building agents on the Model Context Protocol

mcp#model-context-protocol#agent-framework#open-source#workflow-patterns
Free plan Claimed API Self-hosted

About mcp-agent

mcp-agent is an open-source Python framework from LastMile AI for building composable, model-agnostic agents on the Model Context Protocol using proven workflow patterns.

mcp-agent, from LastMile AI, is a lightweight framework that makes it practical to build agents on top of the Model Context Protocol. It introduces an AugmentedLLM, an LLM enhanced with tools from a collection of MCP servers, and implements every workflow pattern from Anthropic's Building Effective Agents plus the OpenAI Swarm pattern. Because each pattern is itself an AugmentedLLM, patterns compose and chain cleanly, keeping agent logic modular and model-agnostic. The framework provides full MCP client support, including tools, resources, prompts and notifications, plus advanced features like OAuth, sampling, elicitation and roots, and it supports persistent state through durable execution. MCP is low-level, and mcp-agent handles the mechanics of server connections, LLM interaction and human-in-the-loop signals so developers can focus on business logic. Documentation, an SDK and CLI are available at docs.mcp-agent.com, making it a strong open-source choice for teams standardizing on MCP.

TL;DR

mcp-agent is LastMile AI's open-source Python framework for building composable, MCP-native agents using proven workflow patterns.

Company overview

mcp-agent is an open-source project from LastMile AI focused on building agents on the Model Context Protocol. It targets developers who want to leverage MCP servers and standard agent patterns without wiring up low-level plumbing.

The project provides an SDK, CLI and documentation, positioning itself as a practical, MCP-first framework in a growing ecosystem of MCP tooling.

Product features

The framework centers on the AugmentedLLM, an LLM enhanced with MCP server tools, and implements composable workflow patterns from Anthropic's Building Effective Agents and OpenAI Swarm. It offers full MCP client support including tools, resources, prompts, OAuth, sampling and elicitation.

Durable execution enables persistent state and human-in-the-loop signals, so developers can build reliable, stateful agents while the framework handles MCP mechanics.

Target market

mcp-agent targets developers and teams building agents on MCP who want composable, model-agnostic patterns in Python.

Buyer personas

End users

Python developers and AI engineers building MCP agents.

Buyers

Engineering leads standardizing on MCP.

Key influencers

MCP community and open-source contributors.

Ideal customer profile

Developer teams committed to the Model Context Protocol that want a composable, open-source framework for building agents.

Funding & performance

mcp-agent is an open-source project from LastMile AI; verify any related company funding directly.

Pros & cons

Pros

  • Purpose-built for MCP
  • Implements proven agent patterns
  • Composable AugmentedLLM design
  • Full MCP client feature support
  • Open source and self-hostable
  • Durable execution for persistent state

Cons

  • Python-only
  • Requires understanding of MCP concepts
  • Smaller ecosystem than general frameworks
  • Best value for MCP-committed teams
  • Minimal built-in UI

Pricing plans

Open Source
$0
  • Full framework and SDK
  • MCP client support
  • Composable workflow patterns
  • Community support

Key features

API
Self-hosted
Integrations
Model Context Protocol, OpenAI, Anthropic, MCP servers, Python
Input types
text
Output types
text
Best For
MCP-based agents, composable workflows, agent developers

Compare key features

View all alternatives →
Feature
mcp-agent
FastMCP
MCP Toolbox for Databases
Pricing
Free
Freemium
Free
Free plan
Yes
Yes
Yes
Free trial
No
Yes
No
API
Yes
Yes
Yes
Self-hosted
Yes
Yes
Yes

Frequently asked questions

What is mcp-agent?+

An open-source Python framework for building agents on the Model Context Protocol with composable workflow patterns.

Who makes mcp-agent?+

It is developed by LastMile AI and maintained as an open-source project.

What is an AugmentedLLM?+

An LLM enhanced with tools from a collection of MCP servers, which is also the base unit for composing workflow patterns.

Which patterns does it implement?+

Every pattern from Anthropic's Building Effective Agents plus the OpenAI Swarm pattern.

Is mcp-agent free?+

Yes, it is open source and free; you only pay for the underlying LLM usage and infrastructure.

Reviews (0)

Write a review

Pick a rating
Loading reviews…
Compare

Compare mcp-agent with other AI tools

Side-by-side pages for pricing, features, and best-fit use cases.

All comparisons →

Similar tools you may like