🚀 LW MCP Agents
LW MCP Agents is a lightweight, modular framework for building and orchestrating AI agents using the Model Context Protocol (MCP). It empowers you to rapidly design multi-agent systems where each agent can specialize, collaborate, delegate, and reason—without writing complex orchestration logic.
Build scalable, composable AI systems using only configuration files.
🔍 Why Use LW MCP Agents?
- ✅ Plug-and-Play Agents: Launch intelligent agents with zero boilerplate using simple JSON configs.
- ✅ Multi-Agent Orchestration: Chain agents together to solve complex tasks—no extra code required.
- ✅ Share & Reuse: Distribute and run agent configurations across environments effortlessly.
- ✅ MCP-Native: Seamlessly integrates with any MCP-compatible platform, including Claude Desktop.
🧠 What Can You Build?
- Research agents that summarize documents or search the web
- Orchestrators that delegate tasks to domain-specific agents
- Systems that scale reasoning recursively and aggregate capabilities dynamically
🏗️ Architecture at a Glance
📚 Table of Contents
- Getting Started
- Example Agents
- Running Agents
- Custom Agent Creation
- How It Works
- Technical Architecture
- Acknowledgements
🚀 Getting Started
🔧 Installation
▶️ Run Your First Agent
🤖 Try a Multi-Agent Setup
Terminal 1 (Research Agent Server):
Terminal 2 (Orchestrator Agent):
Your orchestrator now intelligently delegates research tasks to the research agent.
🖥️ Claude Desktop Integration
Configure agents to run inside Claude Desktop:
1. Locate your Claude config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
2. Add your agent under mcpServers
:
📦 Example Agents
- Base Agent
A minimal agent that connects to tools via MCP.
📁examples/base_agent/
- Orchestrator + Researcher
Demonstrates hierarchical delegation and capability sharing.
📁examples/orchestrator_researcher/
💡 Contribute your own example! Submit a PR or reach out to the maintainers.
⚙️ Running Agents
🔹 Basic Command
🔸 Advanced Options
Option | Description |
---|---|
--server-mode | Exposes the agent as an MCP server |
--server-name | Assigns a custom MCP server name |
🛠️ Custom Agent Creation
🧱 Minimal Config
🧠 Adding Capabilities
Define specialized functions the agent can reason over:
🔄 Orchestrator Agent
🧬 How It Works
🧩 Capabilities as Reasoning Units
Each capability:
- Fills in a prompt using provided arguments
- Executes internal reasoning using LLMs
- Uses tools or external agents
- Returns the result
📖 Research Example
🧱 Technical Architecture
🧠 Key Components
Component | Role |
---|---|
AgentServer | Starts, configures, and runs an agent |
MCPServerWrapper | Wraps the agent to expose it over MCP |
CapabilityRegistry | Loads reasoning tasks from config |
ToolRegistry | Discovers tools from other agents |
🌐 Architecture Highlights
- Hierarchical Design: Compose systems of agents with recursive reasoning
- Delegated Capabilities: Agents delegate intelligently to peers
- Tool Sharing: Tools available in one agent become accessible to others
- Code-Free Composition: Create entire systems via configuration
🙌 Acknowledgements
This project draws inspiration from the brilliant work on mcp-agents by LastMile AI.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过模型上下文协议构建和协调 AI 代理的轻量级框架,使用户能够仅使用配置文件创建可扩展的多代理系统。
Related MCP Servers
- -securityAlicense-qualityA FastAPI-based implementation of the Model Context Protocol that enables standardized interaction between AI models and development environments, making it easier for developers to integrate and manage AI tasks.Last updated -10MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.Last updated -3575
- -securityAlicense-qualityAn open-source implementation of the Model Context Protocol (MCP) that bridges AI agents with enterprise systems, enabling secure access to real-world data and capabilities.Last updated -2Apache 2.0
CodeAlive MCPofficial
-securityAlicense-qualityA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.Last updated -51MIT License