End To End Agentic AI Automation Lab MCP Server
This repository contains hands-on projects, code examples, and deployment workflows. Explore multi-agent systems, LangChain, LangGraph, AutoGen, CrewAI, RAG, MCP, automation with n8n, and scalable agent deployment using Docker, AWS, and BentoML.
End To End Agentic AI Automation Lab is an open-source mcp server by MDalamin5, written mainly in Jupyter Notebook, with 104 GitHub stars and the MIT license. Its code was last updated Oct 31, 2026.
🤖 End-to-End Agentic AI & Automation Lab
A comprehensive, production-grade repository for building, deploying, and managing intelligent AI agents, RAG pipelines, and automated workflows.
Overview • Key Highlights • Agent Harness • Project Architecture • Tech Stack • Getting Started
</div>📖 Overview
Welcome to the End-to-End Agentic AI Automation Lab. This repository is a massive, hands-on engineering playbook demonstrating how to transition from basic LLM API calls to complex, multi-agent autonomous systems and production-ready AI products.
Whether you are looking to build highly reliable Agentic workflows using LangGraph, orchestrate multi-agent collaboration via AutoGen, implement cutting-edge Model Context Protocol (MCP), or serve fine-tuned local models using vLLM and Unsloth, this repository has you covered.
🚀 Key Highlights
- Advanced Agentic Frameworks: Deep dives into LangGraph (StateGraphs, subgraphs, memory, HITL) and AutoGen (RoundRobin, Swarm, custom tools).
- Model Context Protocol (MCP): Industry-grade implementations of Anthropic's MCP for tool execution, web search, and Notion integration.
- Production RAG Systems: Implementation of Hybrid Search, BM25, LlamaParse, Semantic Routing, and Long/Short-Term Memory (Mem0).
- AI Workflow Automation: Zero-code/low-code multi-agent orchestration using n8n and LangFlow.
- LLM Fine-Tuning & Serving: Hands-on pipelines for fine-tuning with LoRA/Unsloth and deploying high-throughput inference endpoints with vLLM.
- End-to-End Products: Complete full-stack implementations of an AI Interviewer, a Production ATS, and SynapseAI (a stateful, persistent chatbot).
🧰 What is an Agent Harness?
An LLM on its own can only take text in and send text out. The agent harness is everything you build around the model so it can work in the real world and finish multi-step tasks. A simple way to put it: Agent = Model + Harness.
What's in a harness
| Component | Role |
|---|---|
| System prompt | Sets the agent's role, rules, and how it should behave |
| Tools | Functions the model can call: search, SQL, code execution, APIs, MCP servers |
| Context management | Picks what goes into the context window: summarization, context offloading, prompt caching |
| Memory | Short-term (the conversation/state) and long-term (facts kept across sessions) |
| Filesystem / sandbox | A place to write notes, save large results, and run code safely |
| Planning | A to-do list that breaks a big task into steps |
| Subagents | Specialized helper agents the main agent hands work to, each with its own clean context |
| Skills | Reusable instructions and resources loaded only when they're needed |
| Human-in-the-loop (HITL) | Pauses so a human can approve, edit, or reject sensitive actions |
| Middleware / hooks | Code that runs before or after the model call to change inputs, outputs, or tool calls |
The job of a harness: give the model the right context at the right time for the task in front of it.
Why you need one
- Lets the agent take actions in an environment, not just answer questions.
- Connects the agent to your data and systems.
- Keeps a growing context under control over long tasks.
- Supports HITL approval for risky steps.
- Runs work in parallel through subagents.
- Helps the agent improve over time through memory and feedback.
How the agent loop works
┌──────────────────────────────────────────┐
User ───► │ Harness builds context │
task │ (system prompt + memory + history + │
│ available tools/skills) │
└───────────────┬──────────────────────────┘
▼
┌───────────────────┐
│ LLM (reasoning) │◄──────────────┐
└─────────┬─────────┘ │
final answer? │ tool call? │
┌─────────────┴─────────────┐ │
▼ ▼ │
Return to user Harness runs the tool │
(middleware, HITL │
checks, sandbox) │
│ │
└─ result ─┘
added back to context
- Input – The user sends a task. The harness builds the prompt from the system prompt, memory, conversation history, and the tool definitions.
- Reason – The model decides what to do: answer right away, call a tool, write a plan, or hand work to a subagent.
- Act – The harness runs the tool call. Middleware can check or change it first, and HITL can pause for approval.
- Observe – The tool result goes back into the context. Large outputs can be saved to the filesystem so the context stays small.
- Repeat – The loop keeps going until the model gives a final answer or hits a stop condition.
Working with an agent harness (Deep Agents example)
deepagents is a ready-made harness built on LangGraph. It already includes planning, a virtual filesystem, subagents, and summarization, so you only add your model, prompt, and tools:
from deepagents import create_deep_agent
def get_sum(a: int, b: int) -> int:
"""Return the sum of two numbers."""
return a + b
agent = create_deep_agent(
model=model, # any LangChain chat model
system_prompt="You are a helpful math assistant.",
tools=[get_sum], # your custom tools
# subagents=[...], middleware=[...], interrupt_on={...} # optional
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "What is the sum of 5 and 9?"}]}
)
print(result["messages"][-1].content)
Tips for working with agents
- Write a clear system prompt. Spell out the goal, the rules, and what output you expect.
- Keep tools small and well documented. The model picks tools based on their names, docstrings, and type hints.
- Give the agent only the tools it needs. Too many tools make it worse at choosing.
- Use subagents for big or separate subtasks so the main agent's context stays clean.
- Add HITL for irreversible actions such as sending emails, writing to a database, or making payments.
- Watch and trace runs (for example with LangSmith) to debug the agent's decisions.
👉 Hands-on code: 28-Intorduction-to-deep-and-Agents-Harness
📂 Repository Modules & Projects
The lab is structured progressively. Click to expand each module to see the underlying projects:
<details> <summary><b>1️⃣ Foundations & Data Ingestion (Modules 01 - 02)</b></summary> <br>01-Pydantic-Data-Validation: Data structuring, field validation, and structured LLM outputs.02-LangChain-Basics: Embedding models, VectorDBs (FAISS, Pinecone), and basic Retrieval-Augmented Generation (RAG) scratchpads.
03-LangGraph-Introduction: StateGraphs, Agentic workstations, multi-tool calling.04-LangGraph-Agentic-Workflows: Agentic RAG, Multi-Agent Supervisors, Human-in-the-Loop (HITL), and Corrective RAG (CRAG).13-e2e-Deep-Agents: Observation, evaluation, and reliable LangGraph applications.14-e2e-Ambient-Agent: Building background-running autonomous agents.
05-Autogen-Introduction: Async capabilities, tools, and basic teams.06-Autogen-HITL-and-Agentic-Orchestrator: Selector Group Chats, Docker code execution, and Graph-based AutoGen.07-End-To-End-Projects-Autogen: GPT Analyzer (Modular architecture), AI Interviewer.08-Advanced-Autogen-Team: Swarm logic and Society of Mind teams.09-Autogen-RAG-and-Memory: Integratingmem0for cross-session AutoGen memory.
10-MCP-All-You-Need: Bridging AutoGen and LangChain with MCP. Lead collector, FireCrawl MCP, and Playwright MCP.11-MCP-based-End-to-End-Products: Building fast, robust API backends utilizing MCP architectures via ngrok and FastAPI.12-n8n: High-level automations. Chain of Agents, Social Media Content Generation, parallel agent logic, and Telegram bot integrations.
17-Guardrails-for-llm: Implementing NeMo Guardrails for secure and constrained LLM outputs.19-Productions-RAG: Industry-practice RAG includingLlamaParse, BM25/Hybrid Search, HyDE, chunking strategies, and Reranking pipelines.
21-LLM-Deployment-vLLM: Deploying models for high-throughput generation using vLLM and accessing via LangChain SDK.22-LLM-FineTune-Deployment: Model fine-tuning using Unsloth, LoRA, HuggingFace Pipelines, and quantization setups for edge devices.
18-e2e-chatbot-mem0-tools-HITL-MCP-RAG: A massive implementation of a fully-featured chatbot with long/short-term memory, PostgreSQL persistence, and streaming UI.20-e2e-Productions-grade-ATS: End-to-end Applicant Tracking System backed by Alembic, SQLModel, and LangGraph.23-e2e-multi-agent-plan-research-write-blog: A multi-agent writer architecture with a beautiful web frontend.24-SynapseAI-parsitence-chatbot: A modern API-first chatbot backend via FastAPI with complex graph routing.
28-Intorduction-to-deep-and-Agents-Harness: What an agent harness is, Deep Agents architecture (execution environment, context management, delegation, steering), middleware, system prompts, prompt caching, and search/SQL agents built withdeepagents.
🛠️ Tech Stack & Tools
Core AI/ML:
Agentic & Orchestration:
Backend & Data:
⚙️ Getting Started
1. Clone the Repository
git clone https://github.com/MDalamin5/End-to-End-Agentic-Ai-Automation-Lab.git
cd End-to-End-Agentic-Ai-Automation-Lab
2. Set Up Virtual Environment
It is recommended to use conda or venv to manage dependencies.
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
3. Install Dependencies
Dependencies may vary per module. Navigate to the specific project folder and install the requirements:
cd 18-e2e-chatbot-mem0-tools-HITL-MCP-RAG
pip install -r requirements.txt
4. Environment Variables
Copy the .env.example file (if available in the module) to .env and add your API keys (OpenAI, Anthropic, HuggingFace, etc.):
OPENAI_API_KEY="your_api_key_here"
ANTHROPIC_API_KEY="your_api_key_here"
TAVILY_API_KEY="your_api_key_here"
🤝 Contributing
This repository is continuously evolving! Contributions, bug reports, and feature requests are highly welcome.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📜 License & Connect
Distributed under the MIT License. See LICENSE for more information.
Developed with 💡 by Md Al Amin
If you find this repository helpful, don't forget to ⭐ star it!
</div>End To End Agentic AI Automation Lab alternatives
View more →Similar mcp servers in Deployment & DevOps, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.
| Name | Stars | Licence | Last updated | Scan |
|---|---|---|---|---|
| End To End Agentic AI Automation Lab (this page) MDalamin5 | 104 | MIT | Oct 31, 2026 | Scanned, see report |
| OpenMetadata open-metadata | 16k | Apache-2.0 | Nov 1, 2026 | Scanned, see report |
| Drawio Skill Agents365-ai | 10k | MIT | Nov 1, 2026 | Scanned, no flagged issues |
| Openstatus openstatusHQ | 9.2k | AGPL-3.0 | Nov 1, 2026 | Scanned, no flagged issues |
| Ghidra MCP bethington | 6k | Apache-2.0 | Oct 31, 2026 | Scanned, no flagged issues |
| Kubefwd txn2 | 4.2k | Apache-2.0 | Oct 27, 2026 | Scanned, no flagged issues |