kayaozkur/mcp-server-multiagent
If you are the rightful owner of mcp-server-multiagent and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides intelligent multi-agent communication system management.
multiagent_get_functionality_info
Get detailed information about a specific multi-agent functionality.
multiagent_search_functionalities
Search for functionalities by keywords, use cases, or patterns.
multiagent_get_functionalities_by_category
Get all functionalities in a specific category.
multiagent_get_functionalities_by_type
Get functionalities by implementation type.
multiagent_get_functionalities_by_complexity
Get functionalities filtered by complexity level.
multiagent_get_functionalities_by_file
Get all functionalities from a specific Python file.
multiagent_get_network_topologies
Get available network communication topologies and their characteristics.
multiagent_get_agent_roles
Get available agent roles and their permissions.
multiagent_estimate_session_count
Estimate required screen sessions for a multi-agent setup.
multiagent_generate_workflow_example
Generate complete workflow example with setup, execution, and cleanup.
multiagent_get_database_stats
Get comprehensive statistics about the multi-agent functionality database.
@lepion/mcp-server-multiagent
A Model Context Protocol (MCP) server that provides intelligent multi-agent communication system management. This server enables AI assistants like Claude to coordinate complex multi-agent workflows, manage distributed agent networks, and orchestrate collaborative AI systems.
š Overview
The Multi-Agent MCP Server provides access to 99+ functionalities from a comprehensive multi-agent system, enabling sophisticated agent coordination patterns including screen-based communication, various network topologies, and distributed intelligence capabilities.
Features
Core Capabilities
- š¤ Multi-Agent Coordination: Manage networks of AI agents with different roles and permissions
- š” Communication Patterns: Support for broadcast, multicast, and point-to-point messaging
- š Network Topologies: Linear, ring, star, mesh, and hierarchical agent configurations
- š„ļø Screen Session Management: Unix screen-based agent isolation and communication
- š Monitoring & Analytics: Real-time agent network monitoring and performance metrics
- š”ļø Role-Based Access Control: Fine-grained permissions for different agent types
- š Dynamic Configuration: Runtime topology changes and agent role modifications
- š¦ Message Queue Management: Inbox systems for asynchronous agent communication
Intelligent Features
- š§ Workflow Generation: Automatically generate multi-agent workflow examples
- šÆ Smart Search: Find functionalities by keywords, use cases, or patterns
- š Complexity Analysis: Assess computational requirements for agent networks
- š Functionality Discovery: Browse 99+ capabilities across 19 categories
- š” Session Estimation: Calculate required screen sessions for agent deployments
- šļø Architecture Patterns: Pre-built patterns for common multi-agent scenarios
Installation
# Install from npm
npm install -g @lepion/mcp-server-multiagent
# Or clone the repository for development
git clone https://github.com/lepion/mcp-server-multiagent.git
cd mcp-server-multiagent
# Install dependencies
npm install
# Build the TypeScript code
npm run build
# Parse and generate functionality database
npm run parse-agents
Configuration
Claude Desktop Integration
Add the server to your Claude Desktop configuration file (claude_desktop_config.json
):
{
"mcpServers": {
"multiagent": {
"command": "node",
"args": ["/path/to/mcp-server-multiagent/dist/index.js"],
"env": {
"LOG_LEVEL": "info"
}
}
}
}
Environment Variables
# Optional: Log level (debug, info, warn, error)
LOG_LEVEL=info
# Optional: Path to multi-agent system (defaults to standard location)
MULTIAGENT_PATH=/path/to/multi_agent_communication
Available Tools
1. multiagent_get_functionality_info
Get detailed information about a specific multi-agent functionality.
Parameters:
functionality
(string, required): Name of the functionality (e.g., 'MultiAgentNetworkManager', 'send_message')include_examples
(boolean, optional): Include usage examples and code snippets (default: true)
Example:
{
"functionality": "MultiAgentNetworkManager",
"include_examples": true
}
2. multiagent_search_functionalities
Search for functionalities by keywords, use cases, or patterns.
Parameters:
query
(string, required): Search querycategory
(string, optional): Filter by categorymax_results
(number, optional): Maximum results to return (default: 10)
Categories: agents, broadcasting, communication, configuration, dependencies, hierarchy, inbox, messaging, monitoring, permissions, roles, rules, screen, topology, triggers
3. multiagent_get_functionalities_by_category
Get all functionalities in a specific category.
Parameters:
category
(string, required): One of the available categories
4. multiagent_get_functionalities_by_type
Get functionalities by implementation type.
Parameters:
type
(string, required): Implementation type (class, function, constant)
5. multiagent_get_functionalities_by_complexity
Get functionalities filtered by complexity level.
Parameters:
complexity
(string, required): Complexity level (low, moderate, high)
6. multiagent_get_functionalities_by_file
Get all functionalities from a specific Python file.
Parameters:
filename
(string, required): Python filename (e.g., 'multi_agent_screen_network.py')
7. multiagent_get_network_topologies
Get available network communication topologies and their characteristics.
8. multiagent_get_agent_roles
Get available agent roles and their permissions.
9. multiagent_estimate_session_count
Estimate required screen sessions for a multi-agent setup.
Parameters:
agent_count
(number, required): Number of agentstopology
(string, required): Network topology type
10. multiagent_generate_workflow_example
Generate complete workflow example with setup, execution, and cleanup.
Parameters:
agent_count
(number, required): Number of agentstopology
(string, required): Communication topologyuse_case
(string, required): Specific use case description
11. multiagent_get_database_stats
Get comprehensive statistics about the multi-agent functionality database.
Examples
Example 1: Basic Agent Network Setup
// Search for network management capabilities
{
"tool": "multiagent_search_functionalities",
"arguments": {
"query": "network manager",
"category": "agents"
}
}
// Get detailed information about the network manager
{
"tool": "multiagent_get_functionality_info",
"arguments": {
"functionality": "MultiAgentNetworkManager"
}
}
// Generate a workflow example
{
"tool": "multiagent_generate_workflow_example",
"arguments": {
"agent_count": 5,
"topology": "star",
"use_case": "Distributed task processing with central coordinator"
}
}
Example 2: Communication Pattern Discovery
// Find broadcast communication patterns
{
"tool": "multiagent_search_functionalities",
"arguments": {
"query": "broadcast",
"category": "communication"
}
}
// Get all messaging functionalities
{
"tool": "multiagent_get_functionalities_by_category",
"arguments": {
"category": "messaging"
}
}
Example 3: Complex Multi-Agent Orchestration
// Estimate session requirements
{
"tool": "multiagent_estimate_session_count",
"arguments": {
"agent_count": 10,
"topology": "hierarchical"
}
}
// Get high-complexity functionalities
{
"tool": "multiagent_get_functionalities_by_complexity",
"arguments": {
"complexity": "high"
}
}
Use Cases
1. Distributed Intelligence Networks
Create networks of specialized AI agents that collaborate on complex tasks:
- Research agents gathering information
- Analysis agents processing data
- Synthesis agents creating reports
- Coordination agents managing workflows
2. Autonomous System Coordination
Manage autonomous systems with different capabilities:
- Sensor agents collecting environmental data
- Decision agents processing information
- Action agents executing commands
- Monitor agents ensuring system health
3. Multi-Modal AI Pipelines
Orchestrate pipelines with agents handling different modalities:
- Vision agents processing images
- Language agents handling text
- Audio agents managing sound
- Integration agents combining outputs
4. Collaborative Problem Solving
Deploy agent teams for complex problem-solving:
- Explorer agents searching solution spaces
- Evaluator agents testing solutions
- Optimizer agents improving results
- Reporter agents documenting findings
Architecture Overview
System Components
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Server Layer ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā ā
ā ā Tools ā ā Client ā ā Database ā ā
ā ā Handlers ā ā Interface ā ā 99+ Funcs ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Multi-Agent System Layer ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā ā
ā ā Screen ā ā Network ā ā Message ā ā
ā ā Sessions ā ā Topologies ā ā Queues ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā ā
ā ā Agent ā ā Role ā ā Monitoring ā ā
ā ā Managers ā ā Control ā ā System ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Communication Flow
- MCP Client (e.g., Claude) sends requests to the MCP Server
- Tool Handlers process requests and interact with the Multi-Agent Client
- Multi-Agent Client manages the functionality database and coordinates operations
- Generated Database contains 99+ functionalities parsed from 19 Python files
- Response Formation structures data for optimal AI understanding
Key Design Principles
- Modularity: Each agent operates independently with well-defined interfaces
- Scalability: Support for networks from 2 to 100+ agents
- Flexibility: Runtime configuration changes without system restart
- Reliability: Built-in error handling and recovery mechanisms
- Security: Role-based access control and secure communication channels
Development
Building from Source
# Clone the repository
git clone https://github.com/lepion/mcp-server-multiagent.git
cd mcp-server-multiagent
# Install dependencies
npm install
# Build TypeScript
npm run build
# Parse multi-agent system (updates functionality database)
npm run parse-agents
# Run in development mode
npm run dev
Running Tests
# Run Jest tests
npm test
# Run linting
npm run lint
# Format code
npm run format
Project Structure
mcp-server-multiagent/
āāā src/
ā āāā index.ts # Main server entry point
ā āāā tools.ts # Tool handler implementations
ā āāā multiagent-client.ts # Multi-agent system client
ā āāā logger.ts # Logging utilities
ā āāā generated-multiagent.ts # Generated functionality database
āāā scripts/
ā āāā parse-multiagent-system.cjs # Parser for Python files
āāā dist/ # Compiled JavaScript
āāā package.json # Project configuration
āāā tsconfig.json # TypeScript configuration
Troubleshooting
Common Issues
-
"Functionality not found" error
- Check spelling of functionality name
- Use search tool to find similar functionalities
- Browse by category to discover available options
-
"Failed to parse agents" error
- Ensure Python files are in the correct location
- Check file permissions
- Run
npm run parse-agents
manually
-
Performance issues with large agent networks
- Use appropriate topology for your use case
- Consider complexity ratings when selecting functionalities
- Monitor resource usage with built-in tools
-
Screen session errors
- Ensure GNU Screen is installed on your system
- Check user permissions for screen operations
- Verify session count estimates before deployment
Debug Mode
Enable detailed logging:
export LOG_LEVEL=debug
npm start
Getting Help
- Check the documentation
- Browse examples in the
/examples
directory - Search functionalities using the built-in tools
- Open an issue on GitHub for bugs or feature requests
Contributing
We welcome contributions! Please see our for details.
Development Workflow
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
License
This project is licensed under the MIT License - see the file for details.
Acknowledgments
- Built on the Model Context Protocol
- Inspired by distributed systems research and multi-agent architectures
- Special thanks to the MCP community for feedback and contributions
Note: This server requires access to the multi-agent communication system Python files. Ensure the path is correctly configured in your environment.