Agent
rinadelph/agent-mcp 路 1.2k stars 路 TypeScript
MCP server 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 AI applications that benefit from multiple specialized agents working in parallel on different aspects of a project.
Install
The repo has no one-line install. Follow its README.
Files
Agent-MCP
馃殌 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. 馃挰 Join the Community: Connect with us on Discord to get help, share experiences, and collaborate with other developers building multi-agent systems.
Multi-Agent Collaboration Protocol for coordinated AI software development.
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.
Why Multiple Agents?
Beyond the philosophical issues, traditional AI coding assistants hit practical limitations:
- Context windows overflow on large codebases
- Knowledge gets lost between conversations
- Single-threaded execution creates bottlenecks
- No specialization - one agent tries to do everything
- Constant rework from lost context and confusion
The Multi-Agent Solution
Agent-MCP transforms AI development from a single assistant to a coordinated team:
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.
Core Capabilities
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
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
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.
Quick Start
Python Implementation (Recommended)
# 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 install
# Start the server
uv run -m agent_mcp.cli --port 8080 --project-dir path-to-directory
# Launch dashboard (recommended for full experience)
cd agent_mcp/dashboard && npm install && npm run dev
Node.js/TypeScript Implementation (Alternative)
# Clone and setup
git clone https://github.com/rinadelph/Agent-MCP.git
cd Agent-MCP/agent-mcp-node
# Install dependencies
npm install
# Configure environment
cp .env.example .env # Add your OpenAI API key
# Start the server
npm run server
# Or use the built version
npm run build
npm start
# Or install globally
npm install -g agent-mcp-node
agent-mcp --port 8080 --project-dir path-to-directory
MCP Integration Guide
What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools. Agent-MCP leverages MCP to provide seamless integration with various development tools and services.
Running Agent-MCP as an MCP Server
Agent-MCP can function as an MCP server, exposing its multi-agent capabilities to MCP-compatible clients like Claude Desktop, Cline, and other AI coding assistants.
#### Quick MCP Setup
# 1. Install Agent-MCP
uv venv
uv install
# 2. Start the MCP server
uv run -m agent_mcp.cli --port 8080
# 3. Configure your MCP client to connect to:
# HTTP: http://localhost:8000/mcp
# WebSocket: ws://localhost:8000/mcp/ws
#### MCP Server Configuration
Create an MCP configuration file (mcp_config.json):
{
"server": {
"name": "agent-mcp",
"version": "1.0.0"
},
"tools": [
{
"name": "create_agent",
"description": "Create a new specialized AI agent"
},
{
"name": "assign_task",
"description": "Assign tasks to specific agents"
},
{
"name": "query_project_context",
"description": "Query the shared knowledge graph"
},
{
"name": "manage_agent_communication",
"description": "Handle inter-agent messaging"
}
],
"resources": [
{
"name": "agent_status",
"description": "Real-time agent status and activity"
},
{
"name": "project_memory",
"description": "Persistent project knowledge graph"
}
]
}
#### Using Agent-MCP with Claude Desktop
- Add to Claude Desktop Config:
Open ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:
{
"mcpServers": {
"agent-mcp": {
"command": "uv",
"args": ["run", "-m", "agent_mcp.cli", "--port", "8080"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key"
}
}
}
}
- Restart Claude Desktop to load the MCP server
- Verify Connection: Claude should show "馃攲 agent-mcp" in the conversation
#### MCP Tools Available
Once connected, you can use these MCP tools directly in Claude:
Agent Management
create_agent- Spawn specialized agents (backend, frontend, testing, etc.)list_agents- View all active agents and their statusterminate_agent- Safely shut down agents
Task Orchestration
assign_task- Delegate work to specific agentsview_tasks- Monitor task progress and dependenciesupdate_task_status- Track completion and blockers
Knowledge Management
ask_project_rag- Query the persistent knowledge graphupdate_project_context- Add architectural decisions and patternsview_project_context- Access stored project information
Communication
send_agent_message- Direct messaging between agentsbroadcast_message- Send updates to all agentsrequest_assistance- Escalate complex issues
#### Advanced MCP Configuration
Custom Transport Options:
# HTTP with custom port
uv run -m agent_mcp.cli --port 8080
# WebSocket with authentication
uv run -m agent_mcp.cli --port 8080 --auth-token your-secret-token
# Unix socket (Linux/macOS)
uv run -m agent_mcp.cli --port 8080
Environment Variables:
export AGENT_MCP_HOST=0.0.0.0 # Server host
export AGENT_MCP_PORT=8000 # Server port
export AGENT_MCP_LOG_LEVEL=INFO # Logging level
export AGENT_MCP_PROJECT_DIR=/your/project # Default project directory
export AGENT_MCP_MAX_AGENTS=10 # Maximum concurrent agents
MCP Client Examples
#### Python Client
import asyncio
from mcp import Client
async def main():
async with Client("http://localhost:8000/mcp") as client:
# Create a backend agent
result = await client.call_tool("create_agent", {
"role": "backend",
"specialization": "API development"
})
# Assign a task
await client.call_tool("assign_task", {
"agent_id": result["agent_id"],
"task": "Implement user authentication endpoints"
})
# Query project context
context = await client.call_tool("ask_project_rag", {
"query": "What's our current database schema?"
})
print(context)
asyncio.run(main())
#### JavaScript Client
import { MCPClient } from '@modelcontextprotocol/client';
const client = new MCPClient('http://localhost:8000/mcp');
async function createAgent() {
await client.connect();
const agent = await client.callTool('create_agent', {
role: 'frontend',
specialization: 'React components'
});
console.log('Created agent:', agent.agent_id);
await client.disconnect();
}
createAgent().catch(console.error);
Troubleshooting MCP Connection
Connection Issues:
# Check if MCP server is running
curl http://localhost:8000/mcp/health
# Verify WebSocket connection
wscat -c ws://localhost:8000/mcp/ws
# Check server logsFacts
- Kind
- MCP server
- Repo
- rinadelph/agent-mcp
- Group
- Uncategorized
- Stars
- 1.2k
- Language
- TypeScript
- Last push
- 2026-03-28
- Forks
- 182
- 1Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 2Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
- 3Gitmodelcontextprotocol/serversA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.85.8k
- 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
- 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
- 6Timemodelcontextprotocol/serversA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.85.8k