# agent-loop-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/meharajM/agent-loop-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-loop-mcp

## Description
Agentic memory wrapper for autonomous AI loops with self-healing and context compaction.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agent-loop-mcp": {
    "command": "npx",
    "args": ["-y","skills"]
  }
}
```

## Documentation & README

# Agentic Loop Memory Server ♾️

[![Agent Skills](https://img.shields.io/badge/Agent%20Skills-open%20standard-111827)](https://agentskills.io/specification)
[![skills.sh](https://skills.sh/b/meharajM/agent-loop-mcp)](https://skills.sh/meharajM/agent-loop-mcp)

**The industry-standard persistent memory and state manager for long-running agentic workflows.**

Enable any AI model—especially smaller ones with limited context windows—to function with the persistence of high-end models. This project works as a two-part ecosystem: an **MCP Server** for state management and an **Agent Skill** for orchestration.

## 🛠 Complete Setup (Required)

For the best experience, you must install **both** the orchestration skill and the MCP server.

### 1. Install the Skill
Install the `agentic-loop` skill into your AI agent (Codex, Claude Code, Cursor, Gemini CLI, GitHub Copilot, and other Agent Skills hosts):
```bash
npx skills add meharajM/agent-loop-mcp@agentic-loop -g -y
```

Preview the skill before activation:

```bash
gh skill preview meharajM/agent-loop-mcp agentic-loop
```

### 2. Configure the MCP Server
Add the following to your \`mcp_config.json\`:
```json
{
  "mcpServers": {
    "agent-loop": {
      "command": "npx",
      "args": ["-y", "@mhrj/mcp-agent-loop"]
    }
  }
}
```

## 🌟 Why this approach is unique
Unlike passive memory tools, this is an **Active State Manager**. It monitors word counts to trigger compaction cycles and enforces a "Self-Healing Strategy" on every failure, preventing AI agents from getting stuck in mindless loops.

## 📂 Project Structure

- `src/`: TypeScript source for the MCP server.
- `skills/agentic-loop/SKILL.md`: The instruction manual for the AI.
- `build/`: JavaScript artifacts.

## 📄 License

ISC

