Skip to main content
Glama
README.md
<div align="center">

# ๐Ÿค– Claude Team

**Multi-Agent MCP Server for AI-Powered Development Teams**

*Orchestrate GPT, Claude, Gemini and more to collaborate on complex tasks*

[![npm version](https://img.shields.io/npm/v/claude-team.svg?style=flat-square)](https://www.npmjs.com/package/claude-team)
[![downloads](https://img.shields.io/npm/dm/claude-team.svg?style=flat-square)](https://www.npmjs.com/package/claude-team)
[![Node.js](https://img.shields.io/badge/Node.js-18+-339933?style=flat-square&logo=node.js&logoColor=white)](https://nodejs.org/)
[![MCP](https://img.shields.io/badge/MCP-Compatible-blue?style=flat-square)](https://modelcontextprotocol.io)
[![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](LICENSE)
[![Tests](https://img.shields.io/badge/Tests-155%20passed-success?style=flat-square)](https://github.com/7836246/claude-team-mcp)

[English](README.md) | [็ฎ€ไฝ“ไธญๆ–‡](README_CN.md)

</div>

---

## โœจ Features

| Feature | Description |
|---------|-------------|
| ๐Ÿค– **Multi-Model Collaboration** | Configure multiple AI models to work together, each leveraging their strengths |
| ๐Ÿง  **Smart Task Distribution** | Tech Lead analyzes tasks and automatically assigns them to the best-suited experts |
| ๐Ÿ”— **Workflow Templates** | 5 pre-built workflows: code generation, bug fixing, refactoring, review, documentation |
| ๐ŸŽฏ **Custom Experts** | Define your own experts (Rust, K8s, Security, etc.) via environment variables |
| ๐Ÿ“Š **Observability** | Dashboard, cost estimation, and task planning preview |
| ๐ŸŒ **Proxy API Support** | Custom Base URLs, compatible with various proxy services |
| ๐Ÿ“ **Collaboration History** | Complete record of all collaborations with search support |

---

## ๐Ÿš€ Quick Start

### Installation

```bash
# Global install
npm install -g claude-team

# Or use directly with npx (no install needed)
npx claude-team
```

### Basic Configuration

Add to your IDE's MCP configuration file:

<details>
<summary><b>๐Ÿ“ Configuration File Locations</b></summary>

| IDE | Path |
|-----|------|
| **Claude Code** | `~/.claude/config.json` |
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` |
| **Cursor** | `~/.cursor/mcp.json` |

</details>

```json
{
  "mcpServers": {
    "claude-team": {
      "command": "npx",
      "args": ["-y", "claude-team"],
      "env": {
        "CLAUDE_TEAM_MAIN_KEY": "sk-your-api-key",
        "CLAUDE_TEAM_MAIN_URL": "https://api.openai.com/v1",
        "CLAUDE_TEAM_MAIN_MODEL": "gpt-4o",
        "CLAUDE_TEAM_MAIN_PROVIDER": "openai"
      }
    }
  }
}
```

### Start Using

```
> Help me build a user login feature with the team

> Have the team optimize this code for performance
```

---

## ๐ŸŽฌ How It Works

```
User: "Optimize this SQL query for performance"

Tech Lead Analysis โ†’
โ”œโ”€โ”€ Creates: SQL Optimization Expert (powerful)
โ”œโ”€โ”€ Creates: Index Analysis Expert (balanced)  
โ””โ”€โ”€ Workflow: sequential
```

```
User: "Build a settings page with dark mode"

Tech Lead Analysis โ†’
โ”œโ”€โ”€ Creates: UI Component Expert (balanced)
โ”œโ”€โ”€ Creates: Theme System Expert (fast)
โ”œโ”€โ”€ Creates: State Management Expert (balanced)
โ””โ”€โ”€ Workflow: parallel โ†’ review
```

---

## ๐Ÿ› ๏ธ Available Tools

### Core Tools

| Tool | Description |
|------|-------------|
| `team_work` | ๐Ÿš€ Team collaboration (auto-creates experts) |
| `ask_expert` | ๐Ÿ’ฌ Consult an expert (supports custom experts) |
| `code_review` | ๐Ÿ” Code review |
| `fix_bug` | ๐Ÿ› Bug fixing |

### Workflow Tools

| Tool | Description |
|------|-------------|
| `list_workflows` | ๐Ÿ“‹ List all workflow templates |
| `run_workflow` | โ–ถ๏ธ Execute a specific workflow |
| `suggest_workflow` | ๐Ÿ’ก Auto-recommend workflow based on task |

**Pre-built Workflows:**

| Workflow | Purpose | Steps |
|----------|---------|-------|
| `code-generation` | Generate code from requirements | Design โ†’ Implement โ†’ Test โ†’ Review |
| `bug-fix` | Diagnose and fix bugs | Diagnose โ†’ Fix โ†’ Verify |
| `refactoring` | Code refactoring | Analyze โ†’ Plan โ†’ Execute โ†’ Review |
| `code-review` | Multi-dimensional review | Security / Quality / Performance (parallel) |
| `documentation` | Generate documentation | Analyze โ†’ Document |

### Observability Tools

| Tool | Description |
|------|-------------|
| `team_dashboard` | ๐ŸŽ›๏ธ View team status, experts, models, stats |
| `cost_estimate` | ๐Ÿ’ฐ Estimate task cost (tokens, price, time) |
| `explain_plan` | ๐Ÿง  Preview task assignment plan |
| `usage_stats` | ๐Ÿ“ˆ View model usage statistics |

### Integration Tools

| Tool | Description |
|------|-------------|
| `read_project_files` | ๐Ÿ“„ Read project files for context |
| `analyze_project_structure` | ๐Ÿ—๏ธ Analyze project structure and tech stack |
| `generate_commit_message` | ๐Ÿ“ Generate commit message from diff |

### History Tools

| Tool | Description |
|------|-------------|
| `history_list` | ๐Ÿ“‹ View collaboration history |
| `history_get` | ๐Ÿ“„ Get history details |
| `history_search` | ๐Ÿ”Ž Search history records |
| `history_context` | ๐Ÿ“š Get recent context |

---

## โš™๏ธ Configuration

### Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `CLAUDE_TEAM_MAIN_KEY` | โœ… | Main model API Key |
| `CLAUDE_TEAM_MAIN_URL` | โŒ | Main model API URL |
| `CLAUDE_TEAM_MAIN_MODEL` | โŒ | Main model ID (default: gpt-4o) |
| `CLAUDE_TEAM_MAIN_PROVIDER` | โŒ | Provider: `openai` / `anthropic` / `gemini` |
| `CLAUDE_TEAM_MODEL{N}_*` | โŒ | Worker model N config (inherits from MAIN) |
| `CLAUDE_TEAM_CUSTOM_EXPERTS` | โŒ | Custom experts (JSON format) |

> N = 1, 2, 3... supports up to 10 worker models

### Custom Experts

Define your own experts beyond the built-in `frontend`, `backend`, `qa`:

```json
{
  "env": {
    "CLAUDE_TEAM_CUSTOM_EXPERTS": "{\"rust\":{\"name\":\"Rust Expert\",\"prompt\":\"You are a Rust expert...\",\"tier\":\"powerful\"},\"k8s\":{\"name\":\"K8s Expert\",\"prompt\":\"You are a Kubernetes expert...\",\"tier\":\"balanced\"}}"
  }
}
```

| Field | Required | Description |
|-------|----------|-------------|
| `name` | โœ… | Expert display name |
| `prompt` | โœ… | Expert role description (System Prompt) |
| `tier` | โŒ | Model tier: `fast` / `balanced` / `powerful` |
| `skills` | โŒ | Skill tags array |

### Model Tiers

| Tier | Use Case | Example Scenarios |
|------|----------|-------------------|
| `fast` | Simple, quick tasks | Formatting, simple queries, docs |
| `balanced` | Regular dev tasks | Components, APIs, unit tests |
| `powerful` | Complex reasoning | Architecture, optimization, security |

---

## ๐Ÿ“ฆ Changelog

### v0.4.0
- ๐ŸŽฏ **Custom Experts** - Define experts via environment variables
- ๐Ÿ”— **Workflow Templates** - 5 pre-built workflows
- ๐Ÿ“Š **Observability** - Dashboard, cost estimation, plan preview
- ๐Ÿ”Œ **Integration** - Project file reading, structure analysis, commit messages
- ๐Ÿ’ก **Smart Recommendations** - Auto-suggest workflows
- ๐Ÿงช **Test Coverage** - 155 test cases

### v0.3.0
- ๐Ÿ”„ Task interrupt/resume support
- ๐Ÿ’ฌ Multi-turn expert conversations
- ๐Ÿ“Š Token counting and cost estimation
- ๐Ÿ“‹ Expert templates (6 built-in + custom)
- ๐Ÿ”” Webhook notifications
- โšก Exponential backoff retry
- ๐Ÿ”ง Hot config reload

<details>
<summary>Earlier versions</summary>

### v0.2.x
- ๐ŸŒŠ Streaming output support
- ๐Ÿ“Š Usage statistics
- ๐ŸŽฏ Model strategies
- ๐Ÿ’พ Result caching
- ๐Ÿ”„ Auto model switching

### v0.1.x
- ๐ŸŽ‰ Initial release
- ๐Ÿค– Multi-model collaboration
- ๐ŸŒ Proxy API support

</details>

---

## ๐Ÿค Contributing

Contributions are welcome! Please read our:

- [Contributing Guide](CONTRIBUTING.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
- [Security Policy](SECURITY.md)

## ๐Ÿ“„ License

[MIT](LICENSE)

---

<div align="center">

## โญ Star History

[![Star History Chart](https://api.star-history.com/svg?repos=7836246/claude-team-mcp&type=Date)](https://star-history.com/#7836246/claude-team-mcp&Date)

---

**[โฌ† Back to Top](#-claude-team)**

Made with โค๏ธ by the community

</div>

TDQS

B3/5.0

Scored across 18 tools

Disambiguation4/5

Most tools have distinct purposes (e.g., analyze_project_structure vs. team_work), but some overlap exists between 'ask_expert', 'code_review', and 'fix_bug' as they all involve expert interaction, though at different stages of development.

Naming Consistency4/5

Tools predominantly use snake_case with descriptive names (e.g., 'analyze_project_structure', 'generate_commit_message'), but some like 'history_context' and 'team_dashboard' are more noun-centric, breaking the verb_noun pattern slightly.

Tool Count4/5

At 18 tools, the server is slightly above the ideal range of 3-15 but still manageable. The count aligns with the broad scope of team collaboration, workflow management, and history tracking.

Completeness4/5

The tool set covers key operations for team collaboration (analysis, code review, bug fixing, workflow execution, history) but lacks administrative features like workflow creation or team member management, leaving minor gaps.

Maintenance

ActivityInactive
ResponsivenessNo issues