Agent-MCP is a framework for creating multi-agent systems that enables coordinated, efficient AI collaboration through the Model Context Protocol (MCP). The system is designed for developers building
🚀 Advanced Tool Notice: This framework is designed for experienced AI developers who need sophisticated multi-agent orchestration capabilities. Agent-MCP requires familiarity with AI coding workflows, MCP protocols, and distributed systems concepts. We're actively working to improve documentation and ease of use. If you're new to AI-assisted development, consider starting with simpler tools and returning when you need advanced multi-agent capabilities.
📅 Weekend Workshop: Join our hands-on Agent-MCP workshop this weekend! Connect with us on Discord to participate and learn directly from the maintainers how to implement multi-agent development workflows.
Multi-Agent Collaboration Protocol for coordinated AI software development.
<div align="center"> <img src="assets/images/agent-network-viz.png" alt="Agent Network Visualization" width="600"> </div>Think Obsidian for your AI agents - a living knowledge graph where multiple AI agents collaborate through shared context, intelligent task management, and real-time visualization. Watch your codebase evolve as specialized agents work in parallel, never losing context or stepping on each other's work.
Beyond the philosophical issues, traditional AI coding assistants hit practical limitations:
Agent-MCP transforms AI development from a single assistant to a coordinated team:
<div align="center"> <img src="assets/images/dashboard-overview.png" alt="Multi-Agent Collaboration Network" width="800"> </div>Real-time visualization shows your AI team at work - purple nodes represent context entries, blue nodes are agents, and connections show active collaborations. It's like having a mission control center for your development team.
Parallel Execution
Multiple specialized agents work simultaneously on different parts of your codebase. Backend agents handle APIs while frontend agents build UI components, all coordinated through shared memory.
Persistent Knowledge Graph
<div align="center"> <img src="assets/images/memory-bank.png" alt="Memory Bank Interface" width="800"> </div>Your project's entire context lives in a searchable, persistent memory bank. Agents query this shared knowledge to understand requirements, architectural decisions, and implementation details. Nothing gets lost between sessions.
Intelligent Task Management
<div align="center"> <img src="assets/images/agent-fleet.png" alt="Agent Fleet Management" width="800"> </div>Monitor every agent's status, assigned tasks, and recent activity. The system automatically manages task dependencies, prevents conflicts, and ensures work flows smoothly from planning to implementation.
# Clone and setup
git clone https://github.com/rinadelph/Agent-MCP.git
cd Agent-MCP
# Check version requirements
python --version # Should be >=3.10
node --version # Should be >=18.0.0
npm --version # Should be >=9.0.0
# If using nvm for Node.js version management
nvm use # Uses the version specified in .nvmrc
# Configure environment
cp .env.example .env # Add your OpenAI API key
uv venv && uv pip install -e .
# Start the server
uv run -m agent_mcp.cli --project-dir /path/to/your/project
# Launch dashboard (recommended for full experience)
cd agent_mcp/dashboard && npm install && npm run dev
graph LR
A[Step 1] --> B[Step 2] --> C[Step 3] --> D[Step 4] --> E[Done!]
style A fill:#4ecdc4,color:#fff
style E fill:#ff6b6b,color:#fff
Every task can be broken down into linear steps. This is the core insight that makes Agent-MCP powerful.
graph TD
A["Build User Authentication"] -->|Single Agent Tries Everything| B{???}
B --> C[Database?]
B --> D[API?]
B --> E[Frontend?]
B --> F[Security?]
B --> G[Tests?]
C -.->|Confused| H[Incomplete Implementation]
D -.->|Overwhelmed| H
E -.->|Context Lost| H
F -.->|Assumptions| H
G -.->|Forgotten| H
style A fill:#ff6b6b,color:#fff
style H fill:#666,color:#fff
graph TD
A["Build User Authentication"] -->|Break Down| B[Linear Tasks]
B --> C["Agent 1: Database"]
B --> D["Agent 2: API"]
B --> E["Agent 3: Frontend"]
C --> C1[Create users table]
C1 --> C2[Add indexes]
C2 --> C3[Create sessions table]
D --> D1[POST /register]
D1 --> D2[POST /login]
D2 --> D3[POST /logout]
E --> E1[Login Form]
E1 --> E2[Register Form]
E2 --> E3[Auth Context]
C3 --> F[Working System]
D3 --> F
E3 --> F
style A fill:#4ecdc4,color:#fff
style F fill:#4ecdc4,color:#fff
Each agent focuses on their linear chain. No confusion. No context pollution. Just clear, deterministic progress.
You are the admin agent.
Admin Token: "your_admin_token_from_server"
Your role is to:
- Coordinate all development work
- Create and manage worker agents
- Maintain project context
- Assign tasks based on agent specializations
Add this MCD (Main Context Document) to project context:
[paste your MCD here - see docs/mcd-guide.md for structure]
Store every detail in the knowledge graph. This becomes the single source of truth for all agents.
The MCD (Main Context Document) is your project's comprehensive blueprint - think of it as writing the book of your application before building it. It includes:
See our MCD Guide for detailed examples and templates.
Create specialized agents for parallel development:
- backend-worker: API endpoints, database operations, business logic
- frontend-worker: UI components, state management, user interactions
- integration-worker: API connections, data flow, system integration
- test-worker: Unit tests, integration tests, validation
- devops-worker: Deployment, CI/CD, infrastructure
Each agent specializes in their domain, leading to higher quality implementations and faster development.
# In new window for each worker:
You are [worker-name] agent.
Your Admin Token: "worker_token_from_admin"
Query the project knowledge graph to understand:
1. Overall system architecture
2. Your specific responsibilities
3. Integration points with other components
4. Coding standards and patterns to follow
5. Current implementation status
Begin implementation following the established patterns.
AUTO --worker --memory
Important: Setting Agent Modes
Agent modes (like --worker
, --memory
, --playwright
) are not just flags - they activate specific behavioral patterns. In Claude Code, you can make these persistent by:
#
to open Claude's memory featureExample for Claude Code memory:
# When I use "AUTO --worker --memory", follow these patterns:
- Always check file status before editing
- Query project RAG for context before implementing
- Document all changes in task notes
- Work on one file at a time, completing it before moving on
- Update task status after each completion
This ensures consistent behavior across your entire session without repeating instructions.
The dashboard provides real-time visibility into your AI development team:
Network Visualization - Watch agents collaborate and share information
Task Progress - Track completion across all parallel work streams
Memory Health - Ensure context remains fresh and accessible
Activity Timeline - See exactly what each agent is doing
Access at http://localhost:3847
after launching the dashboard.
Agent modes fundamentally change how agents behave. They're not just configuration - they're behavioral contracts that ensure agents follow specific patterns optimized for their role.
Standard Worker Mode
AUTO --worker --memory
Optimized for implementation tasks:
Frontend Specialist Mode
AUTO --worker --playwright
Enhanced with visual validation capabilities:
Research Mode
AUTO --memory
Read-only access for analysis and planning:
Memory Management Mode
AUTO --memory --manager
For context curation and optimization:
Each mode enforces specific behaviors that prevent common mistakes and ensure consistent, high-quality output.
The system maintains several types of memory:
Project Context - Architectural decisions, design patterns, conventions
Task Memory - Current status, blockers, implementation notes
Agent Memory - Individual agent learnings and specializations
Integration Points - How different components connect
All memory is:
File-level locking prevents agents from overwriting each other's work:
This happens automatically - no manual coordination needed.
Most AI coding assistants maintain conversations across entire projects:
Each agent is purpose-built for a single task:
Traditional Approach: "Update the user authentication system"
Agent: I'll update your auth system. I see from our previous conversation about
database migrations, UI components, API endpoints, deployment scripts, and that
bug in the payment system... wait, which auth approach did we decide on? Let me
try to piece this together from our 50+ message history...
[Agent produces confused implementation mixing multiple patterns]
Agent-MCP Approach: Same request, broken into focused tasks
Agent 1 (Database): Create auth tables with exactly these fields...
Agent 2 (API): Implement /auth endpoints following REST patterns...
Agent 3 (Frontend): Build login forms using existing component library...
Agent 4 (Tests): Write auth tests covering these specific scenarios...
Agent 5 (Integration): Connect components following documented interfaces...
[Each agent completes their specific task without confusion]
Most AI development approaches suffer from a fundamental flaw: they try to maintain massive context windows with a single, long-running agent. This leads to:
Agent-MCP implements a radically different approach:
Short-Lived, Focused Agents
Each agent lives only as long as their specific task. They:
Shared Knowledge Graph (RAG)
Instead of cramming everything into context windows:
Result: Agents that are fast, focused, and safe. They can't be manipulated to reveal full project details because they never have access to it all at once.
Traditional long-context agents are like giving someone your entire codebase, documentation, and secrets in one conversation. Our approach is like having specialized contractors who only see the blueprint for their specific room.
Agent-MCP enforces strict lifecycle management:
Maximum 10 Active Agents
Automatic Cleanup Rules
Why This Matters
This isn't just housekeeping - it's fundamental to the security and performance benefits of the short-lived agent model.
Any task that cannot be expressed as Step 1 → Step 2 → Step N
is not atomic enough.
This principle drives everything in Agent-MCP:
Traditional Approach: "Build a user authentication system"
Agent-MCP Approach:
Chain 1: Database Layer
1.1: Create users table with id, email, password_hash
1.2: Add unique index on email
1.3: Create sessions table with user_id, token, expiry
1.4: Write migration scripts
Chain 2: API Layer
2.1: Implement POST /auth/register endpoint
2.2: Implement POST /auth/login endpoint
2.3: Implement POST /auth/logout endpoint
2.4: Add JWT token generation
Chain 3: Frontend Layer
3.1: Create AuthContext provider
3.2: Build LoginForm component
3.3: Build RegisterForm component
3.4: Implement protected routes
Each step is atomic, testable, and has zero ambiguity. Multiple agents can work these chains in parallel without conflict.
The Power of Parallel Development
Instead of waiting for one agent to finish the backend before starting the frontend, deploy specialized agents to work simultaneously. Your development speed is limited only by how well you decompose tasks.
No More Lost Context
Every decision, implementation detail, and architectural choice is stored in the shared knowledge graph. New agents instantly understand the project state without reading through lengthy conversation histories.
Predictable, Reliable Outputs
Focused agents with limited context produce consistent results. The same task produces the same quality output every time, making development predictable and testable.
Built-in Conflict Prevention
File-level locking and task assignment prevent agents from stepping on each other's work. No more merge conflicts from simultaneous edits.
Complete Development Transparency
Watch your AI team work in real-time through the dashboard. Every action is logged, every decision traceable. It's like having a live view into your development pipeline.
For Different Team Sizes
Solo Developers: Transform one AI assistant into a coordinated team. Work on multiple features simultaneously without losing track.
Small Teams: Augment human developers with AI specialists that maintain perfect context across sessions.
Large Projects: Handle complex systems where no single agent could hold all the context. The shared memory scales infinitely.
Learning & Teaching: Perfect for understanding software architecture. Watch how tasks decompose and integrate in real-time.
For consistent development environment:
# Using nvm (Node Version Manager)
nvm use # Automatically uses Node v22.16.0 from .nvmrc
# Or manually check versions
node --version # Should be >=18.0.0
npm --version # Should be >=9.0.0
python --version # Should be >=3.10
"Admin token not found"
Check the server startup logs - token is displayed when MCP server starts.
"Worker can't access tasks"
Ensure you're using the worker token (not admin token) when initializing workers.
"Agents overwriting each other"
Verify all workers are initialized with the --worker
flag for proper coordination.
"Dashboard connection failed"
"Memory queries returning stale data"
Run memory garbage collection through the dashboard or restart with --refresh-memory
.
Get Help
Contributing
We welcome contributions! See our Contributing Guide for:
MIT License - see LICENSE for details.
Built by developers who believe AI collaboration should be as sophisticated as human collaboration.
rinadelph/Agent-MCP
May 13, 2025
July 7, 2025
Python