drio
Open app

Mcp Agent

Source

Build effective agents using Model Context Protocol and simple workflow patterns

Catalog onlyCatalog onlySTDIO

Overview

mcp-agent is a framework designed to build effective AI agents using the Model Context Protocol (MCP) and simple workflow patterns. It simplifies the process of managing connections to MCP servers and allows developers to create robust agent applications.

To use mcp-agent, you can install it via pip with the command pip install mcp-agent. You can also explore example applications provided in the repository to get started quickly.

  • Simplifies the lifecycle management of MCP server connections. - Implements various patterns for building effective agents, including multi-agent orchestration. - Provides a composable framework that allows chaining of different agent patterns.
  1. Building multi-agent collaborative workflows.
  2. Creating human-in-the-loop workflows for enhanced decision-making.
  3. Developing applications that require integration with multiple MCP servers for data retrieval and processing.

Add to your AI client

Use these steps to connect Mcp Agent in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-agent-lastmile-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-agent-lastmile-ai"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-agent-lastmile-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-agent-lastmile-ai"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-agent-lastmile-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-agent-lastmile-ai"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-agent-lastmile-ai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-agent-lastmile-ai"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-agent-lastmile-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-agent-lastmile-ai"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-agent-lastmile-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-agent-lastmile-ai"
      ]
    }
  }
}