# Multi Agent Architect MCP (`ai_crew_solutions/multi-agent-architect-mcp`) Actor

MCP server providing expert knowledge on multi-agent architectures. Integrates with AI coding agents to deliver pattern recommendations (Supervisor/Worker, Hierarchical, Swarm), framework guidance (LangGraph, CrewAI, AutoGen), and implementation strategies. Supports English and Japanese queries.

- **URL**: https://apify.com/ai_crew_solutions/multi-agent-architect-mcp.md
- **Developed by:** [AI Crew Solutions](https://apify.com/ai_crew_solutions) (community)
- **Categories:** Agents, AI, MCP servers
- **Security:** Full permissions
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Multi-Agent Architecture Knowledge MCP

An MCP server that provides expert knowledge on multi-agent architectures directly to your AI coding assistants (Claude Code, Cursor, Claude Desktop).

### What does this do?

When building multi-agent systems, your AI coding assistant can instantly access:

- **Architecture Patterns**: Supervisor/Worker, Hierarchical, Swarm, Blackboard, Pipeline, Contract-Net
- **Framework Recommendations**: LangGraph, CrewAI, AutoGen, MetaGPT, AgentScope
- **Implementation Strategies**: Step-by-step guidance with code examples
- **Use Case Analysis**: Pattern recommendations tailored to your requirements
- **Bilingual Support**: English and Japanese queries

**How this helps**: Instead of spending hours researching which architecture pattern fits your use case, your AI agent accesses curated knowledge from arXiv papers and official documentation to design better multi-agent systems in real-time.

### Setup Instructions

**No local installation needed** - just add the URL to your MCP client configuration.

Get your Apify API token from: https://console.apify.com/account/integrations

#### Claude Code

```bash
claude mcp add --transport http multi-agent-architect \
  "https://ai-crew-solutions--multi-agent-architect-mcp.apify.actor/mcp?token=YOUR_APIFY_API_TOKEN"
```

**Alternative (with header authentication):**

```bash
claude mcp add --transport http multi-agent-architect \
  https://ai-crew-solutions--multi-agent-architect-mcp.apify.actor/mcp \
  -H "Authorization: Bearer YOUR_APIFY_API_TOKEN"
```

#### Cursor

1. Open your Cursor MCP configuration file:
   - Global: `~/.cursor/mcp.json`
   - Project-specific: `.cursor/mcp.json` in your project root

2. Add this configuration:

```json
{
  "mcpServers": {
    "multi-agent-architect": {
      "url": "https://ai-crew-solutions--multi-agent-architect-mcp.apify.actor/mcp?token=YOUR_APIFY_API_TOKEN"
    }
  }
}
```

**Alternative (with header authentication):**

```json
{
  "mcpServers": {
    "multi-agent-architect": {
      "url": "https://ai-crew-solutions--multi-agent-architect-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

3. Restart Cursor

#### Claude Desktop

1. Open your Claude Desktop configuration file:
   - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
   - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

2. Add this configuration:

```json
{
  "mcpServers": {
    "multi-agent-architect": {
      "url": "https://ai-crew-solutions--multi-agent-architect-mcp.apify.actor/mcp?token=YOUR_APIFY_API_TOKEN"
    }
  }
}
```

**Alternative (with header authentication):**

```json
{
  "mcpServers": {
    "multi-agent-architect": {
      "url": "https://ai-crew-solutions--multi-agent-architect-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

3. Restart Claude Desktop

#### Note on Cold Start

The first request may take 30-60 seconds due to Actor cold start (ChromaDB initialization). Subsequent requests will be faster while the Actor remains in Standby mode.

### Available Tools

#### `search_knowledge`

Search the multi-agent architecture knowledge base.

**Parameters**:

- `query` (string, required): Your question in English or Japanese
- `top_k` (number, optional): Number of results (default: 5)

**Example**:

```
Ask your AI agent: "What is the Supervisor/Worker pattern and when should I use it?"
```

#### `recommend_architecture`

Get architecture pattern recommendations for your specific use case.

**Parameters**:

- `use_case` (string, required): Description of what you're building
- `constraints` (object, optional): Requirements like complexity, scalability

**Example**:

```
Ask your AI agent: "Recommend an architecture for a large-scale customer support automation system"
```

### Example Usage

Once configured, simply ask your AI coding assistant questions like:

- "I'm building a customer support chatbot with escalation. Which multi-agent pattern should I use?"
- "Compare LangGraph vs CrewAI for building a research assistant with multiple specialized agents"
- "What's the best architecture for parallel task processing with 10+ agents?"

Your AI agent will use this MCP server to provide expert recommendations backed by research papers and production case studies.

### Knowledge Base

- **Architecture Patterns**: 6+ major multi-agent patterns with use case mappings
- **Framework Comparisons**: LangGraph, CrewAI, AutoGen, MetaGPT, AgentScope
- **Use Case Library**: 20+ real-world scenarios with pattern recommendations
- **Sources**: Curated from arXiv papers, official documentation, and production case studies

### Pricing

| Item | Cost |
|------|------|
| `search_knowledge` | $0.30 per query |
| `recommend_architecture` | $0.40 per recommendation |
| Apify computing | ~$0.007-0.02 per minute (while Actor is running) |

**Why?** Saves 3-5 hours of research time per project. Pay only when your AI agent actually uses the tools.

### Important: Cost Management

#### Remove MCP When Not in Use

**Disabling the MCP is NOT enough** - the Apify Actor (server) will continue running and incur computing costs.

**Always remove the MCP when you're done:**

```bash
claude mcp remove multi-agent-architect
```

#### How Billing Works

1. **Tool usage fees**: Charged per query ($0.30) or recommendation ($0.40)
2. **Computing costs**: Charged while the Actor is running (~$0.007-0.02/min)
3. **Auto-shutdown**: Actor automatically stops after ~10 minutes of inactivity

#### Best Practices

1. **Install only when needed**: Add the MCP when you have questions
2. **Remove after use**: Run `claude mcp remove multi-agent-architect`
3. **Monitor usage**: Check your [Apify Console](https://console.apify.com/) regularly

#### Troubleshooting

**If costs keep accumulating:**

1. Remove the MCP: `claude mcp remove multi-agent-architect`
2. Wait 10 minutes for auto-shutdown
3. If still running, manually abort the run in [Apify Console](https://console.apify.com/)

***

**Version**: 1.0.0
**Built by**: AI Crew Solutions

# Actor input Schema

## `tool` (type: `string`):

Which tool to run: 'search_knowledge' or 'recommend_architecture'

## `query` (type: `string`):

Search query (English or Japanese)

## `use_case` (type: `string`):

Describe your use case

## `max_complexity` (type: `integer`):

Maximum acceptable complexity level

## `scalability` (type: `string`):

Required scalability level

## `top_k` (type: `integer`):

Number of results to return

## Actor input object example

```json
{
  "tool": "search_knowledge",
  "query": "Supervisor Worker pattern for customer support",
  "use_case": "I want to build a customer support automation system",
  "max_complexity": 3,
  "scalability": "medium",
  "top_k": 5
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "Supervisor Worker pattern for customer support",
    "use_case": "I want to build a customer support automation system"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ai_crew_solutions/multi-agent-architect-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "Supervisor Worker pattern for customer support",
    "use_case": "I want to build a customer support automation system",
}

# Run the Actor and wait for it to finish
run = client.actor("ai_crew_solutions/multi-agent-architect-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "Supervisor Worker pattern for customer support",
  "use_case": "I want to build a customer support automation system"
}' |
apify call ai_crew_solutions/multi-agent-architect-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ai_crew_solutions/multi-agent-architect-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XUADR6kNES2CHrxIa/builds/E0h9od8oEApJXEKYA/openapi.json
