← back

Exposing Agents as MCP servers with mcp-agent: Sarmad Qadri

7.8K views · Jun 11, 2025 · 18:05 min · Watch on YouTube ↗
Takeaway

Treat agents as MCP servers and async workflows — you get composable multi-agent systems for free over standard protocols, with no monolithic framework.

Summary

  • Last Mile AI CEO (ex-Microsoft LSP) draws parallel: MCP is to LLMs what Language Server Protocol was to IDEs — collapses N-to-N integrations into a single standard.
  • mcp-agent (open source) implements Anthropic's 'Building Effective Agents' patterns: augmented LLM, optimizer/evaluator, parallel fan-out, and dynamic orchestrator-worker.
  • Key opinion: agents themselves should be exposed as MCP servers so any MCP client (Claude, Cursor) can compose and orchestrate them, enabling multi-agent collaboration over the base MCP protocol.
  • Agents should be modeled as asynchronous workflows (Temporal/Airflow-style) — pausable, resumable, with human-in-the-loop — not in-process chat sessions.
mcpagentsworkflow-orchestration
Original description
In this talk, we will show that agents can be represented as MCP servers, allowing them to be run from any MCP client (such as Claude, Cursor and other applications).

This is made possible with [mcp-agent](https://github.com/lastmile-ai/mcp-agent), a simple, composable framework to build agents using [Model Context Protocol](https://modelcontextprotocol.io/introduction).

## Overview

Currently "agentic" behavior exists only on the MCP client side – clients like Claude or Cursor use MCP servers, which are often simple tool APIs, to solve tasks.

However, if Agents are MCP servers themselves, then any MCP client can invoke, coordinate and orchestrate agents the same way it does with any other MCP server.

This paradigm shift enables: 
1. **Agent Composition**: Build complex multi-agent systems over the same base protocol (MCP).
 2. **Platform Independence**: Use your agents from any MCP-compatible client 
3. **Scalability**: Run agent workflows on dedicated infrastructure, not just within client environments 
4. **Customization**: Develop your own agent workflows and reuse them across any MCP client.

## Background

mcp-agent was inspired by 2 foundational updates that Anthropic introduced for AI application developers:

1. [Model Context Protocol](https://www.anthropic.com/news/model-context-protocol) - a standardized interface to let any software be accessible to AI assistants via MCP servers.

2. [Building Effective Agents](https://www.anthropic.com/research/building-effective-agents) - a seminal writeup on simple, composable patterns for building production-ready AI agents.

`mcp-agent` puts these two foundational pieces into an AI application framework:

1. It handles the pesky business of managing the lifecycle of MCP server connections.

2. It implements every pattern described in Building Effective Agents, and does so in a _composable_ way, allowing you to chain these patterns together.

Now as MCP continues to grow adoption, we are exploring advanced agent architectures that allow for sophisticated workflows in simple ways.