MCP Hub
Back to servers

Team Manager MCP

Enables users to plan, coordinate, and govern multi-agent teams using MongoDB for shared context, token budgets, and checkpoint recovery.

glama
Stars
2
Forks
1
Updated
May 2, 2026
Validated
May 4, 2026

Team Manager MCP

A MongoDB-native control plane for arbitrary multi-agent work.

MCP server MongoDB Atlas TypeScript MCP native


Tell it the job. It proposes the team, task-estimated token budgets, execution profiles, memory rules, source policy, and checkpoints. Approve the plan, then let your MCP host run specialists with MongoDB as the durable room state.

Team Manager is an MCP server that turns a vague request into a governed specialist room. It is not a dashboard, not a vertical chatbot, and not a scripted workflow. The MCP host runs the actual worker agents; Team Manager plans, coordinates, budgets, persists, and audits the collaboration.

User request
  -> Team Manager classifies the task
  -> proposes specialists, budgets, execution profiles, memory boundaries
  -> human approves or edits
  -> MCP host runs workers
  -> MongoDB stores shared context, checkpoints, budget, and audit

Contents

Why It Exists

Multi-agent workflows usually fail in the boring places:

  • Agents are selected from prompts, not observed performance.
  • Shared context becomes either isolated silos or noisy group chat.
  • Memory has no real boundary between private, team, and global knowledge.
  • Token use grows without a group-level budget or recovery plan.
  • A killed worker loses state unless the orchestration layer writes checkpoints.

Team Manager gives the host agent a MongoDB-backed control plane for those problems.

Features

  • Task-aware team formation: classifies arbitrary requests and selects specialists from a capability pool.
  • Local onboarding: inspects MongoDB, OpenAI, Anthropic, and Bright Data configuration without exposing secrets, then persists operator preferences.
  • Real agent registry: MCP hosts can register their actual available subagents into MongoDB; built-in profiles are only cold-start templates.
  • Capability vectors: every selected agent exposes declared skills, capabilities, observed performance, token efficiency, and constraints.
  • Human-approved room plans: the manager asks concrete approval questions before dispatching work.
  • MongoDB blackboard: specialists publish findings, requests, progress, warnings, decisions, and deliverable notes into a shared collection.
  • Scoped memory: memory is private, team, or global; private cards only return to their owner agent.
  • Source-linked evidence: Team Manager can search through Bright Data MCP, ingest user or host-provided URLs, accept extracted text from native host search, and cite source ids.
  • Task-estimated token governance: one room budget estimated from the request and selected agents, with 70% warning, 90% summarizer action, and 100% configured hard action.
  • Checkpoint recovery: host-side worker interruption is recorded in MongoDB and resumed from checkpoint context.
  • Audit trail: final results link claim -> blackboard entry -> source document or artifact.

Hackathon Fit

Built for the MongoDB Agentic Evolution Hackathon theme Multi-Agent Collaboration.

Theme questionTeam Manager answer
How do agents convey their skills?agent_profiles stores declared skills, capability vectors, embeddings, and observed performance.
How does the system identify suitable peers?team_manager_plan_room classifies the request, scores candidates, and proposes a specialist room.
How do agents share context within token limits?blackboard_entries, memory_cards, source_documents, and top-k context retrieval keep shared context explicit and bounded.
How is collaboration organized and overseen?governance_plans, tasks, groups, budget thresholds, checkpoints, and audit make MongoDB the room state.

It also touches Prolonged Coordination through checkpoint/resume and Adaptive Retrieval through source, memory, and blackboard relevance.

What It Does

Given any complex request, for example:

Build a premium website for a MongoDB-native multi-agent orchestration MCP and polish the README copy.

Team Manager:

  1. Classifies the task, for example aesthetic_product_work, trading_agent_system, crypto_market_decision, technical_decision, market_strategy, legal_risk, financial_analysis, or general_decision.
  2. Scores a pool of specialist agents using capability relevance, history, recency, latency, and token efficiency.
  3. Proposes a human-approved room plan: specialists, execution profiles, task-estimated token caps, memory visibility, routing stages, and open questions.
  4. Finds or registers arbitrary sources selected by the host or user.
  5. Stores source evidence, blackboard entries, memory cards, checkpoints, budget state, and final results in MongoDB.
  6. Returns filtered context to each specialist according to visibility boundaries.
  7. Records worker interruption and returns checkpoint context for the host to resume that worker.
  8. Emits a final audited result where claims and deliverables link back to blackboard entries, source evidence, or artifact URIs.

Example Requests

Team Manager is designed for open-ended work that benefits from several specialists. Example requests:

Evaluate whether my company should get listed on Coinbase as an exchange.
Build a premium website and slide deck for our hackathon submission.
Build trading agents for a crypto strategy with backtesting, risk limits, and market-data ingestion.
Should we migrate our billing system from a monolith to event-driven services?
Plan the fastest credible market-entry strategy for a new B2B product in the UK.

The MCP host can add operational requirements to the prompt, such as: ask for approval before starting, use only user-provided sources, keep private memory private, manage a group token budget, checkpoint each specialist, and return an audited result.

Onboarding

Start with team_manager_onboard. It gives the host a clean configuration report without printing API keys:

team_manager_onboard
  -> reports MongoDB, OpenAI, Anthropic, and Bright Data availability
  -> reports model slots, source strategy, memory default, max agents, and hard-stop policy
  -> asks what to optimize for: balanced, speed, cost, or caution
  -> persists preferences in MongoDB team_manager_settings

Example preference update:

{
  "preferences": {
    "logicModel": "gpt-5.5",
    "logicReasoningEffort": "xhigh",
    "aestheticModel": "claude-opus-4-7",
    "sourceProviderPreference": "auto",
    "optimizationPreference": "caution",
    "defaultMaxAgents": 5,
    "defaultMemoryVisibility": "private",
    "budgetHardStopAction": "abort",
    "requireSourceLinkedClaims": true
  }
}

Those preferences affect future team_manager_plan_room and direct team_manager_start_room calls. Direct start is still usable: it loads onboarding preferences, estimates a task budget, builds a plan, and asks for approval unless autoApprovePlan is set.

Agent Registry

Team Manager routes against agent_profiles. In normal use, the MCP host registers the actual available subagents first:

team_manager_register_agents -> team_manager_plan_room

Registered profiles are persisted in MongoDB and include skills, capabilities, token history priors, latency priors, and description embeddings. If no registered profiles exist yet, Team Manager uses a cold-start template registry so the system can still run on a fresh hackathon machine. Those templates are explicitly marked as room snapshots when written to MongoDB; they are not presented as production history.

The bundled cold-start templates cover common collaboration lanes:

AgentSpecialty
EvidenceScoutPrimary research, source triage, fact extraction
DesignPolishUI, text polish, and aesthetic quality
FrontendCraftFrontend UI implementation and interaction polish
NarrativeEditorREADME, pitch, and text polish
ProductUXUser experience and product-flow review
PresentationCoachPresentation, slide, and submission narrative
TechnicalFitArchitecture, APIs, integration, implementation risk
MarketMapperMarket structure, customers, competitors, ecosystem
LegalRiskLegal, compliance, policy, contract, approval gates
FinanceModelerCost, ROI, revenue, budget, commercial tradeoffs
CryptoMarketExchange listings, liquidity, custody, token and market structure
TradingSystemsTrading-agent architecture, market data, backtesting, execution controls
OpsPlannerExecution plan, dependencies, owners, rollout risk
RiskRegisterCross-functional risk aggregation and mitigations
ImplementationPMStakeholders, sequencing, migration, change management
UserImpactUser, customer, and workflow impact
StrategyLeadOptions, tradeoffs, second-order effects, priorities
SynthesisCriticContradictions, evidence quality, final recommendation

The selected room depends on the prompt. A website or slide-deck prompt pulls in the aesthetic/product specialists and assigns them to Claude Opus 4.7 in the local config. A trading-agent prompt pulls in TradingSystems, TechnicalFit, FinanceModeler, and risk reviewers on GPT-5.5 xhigh. A Coinbase listing prompt pulls in CryptoMarket; a billing architecture prompt pulls in TechnicalFit.

Architecture

MCP host
  |
  | calls Team Manager tools
  v
Team Manager MCP
  |
  | plans, scores, budgets, filters, checkpoints, audits
  v
MongoDB Atlas
  |-- team_manager_settings
  |-- agent_profiles
  |-- governance_plans
  |-- tasks / groups
  |-- blackboard_entries
  |-- memory_cards
  |-- source_documents
  |-- agent_performance_records
  `-- audit

MongoDB is not just storage here. It is the collaboration substrate: routing data, room state, shared context, scoped memory, token budget, checkpoint recovery, and decision provenance all live in Atlas.

Budget Math

Team Manager does not use a fixed default budget. team_manager_plan_room and direct team_manager_start_room calls estimate the group budget from the actual task and selected room, then store the full budgetEstimate object in governance_plans.

Group Budget

request_tokens ~= ceil(word_count(request) * 1.35)

task_complexity =
  (1 + min(2.2, request_tokens / 160) + 0.14 * risk_signal_count)
  * task_type_multiplier

coordination_overhead =
  (selected_agent_count + 1) * request_tokens * 16

estimated_group_budget =
  clamp(22_000, 120_000,
    round_to_1k(
      sum(selected_agent_historical_tokens) * task_complexity
      + coordination_overhead
    )
  )

The task type multiplier is intentionally modest. It is a planning prior, not a fake scenario script:

Task typeMultiplier
trading_agent_system1.35
crypto_market_decision1.30
legal_risk1.25
technical_decision1.18
procurement_decision1.12
financial_analysis1.12
market_strategy1.10
aesthetic_product_work1.08
general_decision1.00

Risk signals are generic terms such as regulatory, legal, compliance, security, financial, audit, sources, checkpoint, private, exchange, and listing. They increase budget because the room needs more evidence, review, and audit work. Product and aesthetic tasks can still receive substantial budget because the selected specialist room carries its own historical token demand.

Per-Agent Split

After reserving budget for the manager and summarizer, the remaining budget is split by each agent's expected work demand:

reserve_ratio =
  18% if task_complexity >= 2.2
  16% if task_complexity >= 1.7
  14% otherwise

allocatable_budget = group_budget * (1 - reserve_ratio)

agent_demand =
  historical_tokens_for_this_or_general_task
  * priority_multiplier
  * cold_start_multiplier
  * capability_score_multiplier

priority_multiplier =
  1.22 for critical roles
  1.08 for high-priority roles
  1.00 for medium roles

cold_start_multiplier =
  1.12 when this agent has fewer than 3 runs for this task type
  1.00 otherwise

capability_score_multiplier =
  0.85 + 0.35 * agent_match_score

agent_token_cap =
  round_to_100(
    allocatable_budget * agent_demand / sum(all_agent_demands)
  )

This makes the split explainable: high-demand specialists get more budget, critical reviewers get a risk premium, cold-start agents get a small uncertainty buffer, and strong capability matches get slightly more room because they are likely to do useful work.

Worked Example

For a website and README task:

Build a premium website for a MongoDB native multi-agent orchestration MCP and polish the README copy.

the planner classifies the request as aesthetic_product_work, selects NarrativeEditor, DesignPolish, PresentationCoach, FrontendCraft, and ProductUX, then produces a task-estimated group budget around 61,000 tokens:

AgentHistorical tokensPriorityDemand scoreToken capLocal execution profile
NarrativeEditor8,160medium9,66910,000Claude Opus 4.7
DesignPolish8,540high10,86811,300Claude Opus 4.7
PresentationCoach8,345medium9,69310,100Claude Opus 4.7
FrontendCraft8,956medium10,39610,800Claude Opus 4.7
ProductUX8,640medium9,93910,300Claude Opus 4.7

For a logic-heavy trading-agent task:

Build trading agents for a crypto strategy with backtesting, risk limits, and market-data ingestion.

the planner classifies the request as trading_agent_system, selects TradingSystems, LegalRisk, EvidenceScout, FinanceModeler, and TechnicalFit, then produces a task-estimated group budget around 62,000 tokens:

AgentHistorical tokensPriorityDemand scoreToken capLocal execution profile
TradingSystems9,297medium10,76910,600GPT-5.5 xhigh
LegalRisk7,640critical11,93911,700GPT-5.5 xhigh
EvidenceScout7,727high10,66610,500GPT-5.5 xhigh
FinanceModeler7,816high10,77610,600GPT-5.5 xhigh
TechnicalFit7,391high10,1189,900GPT-5.5 xhigh

For a diligence-style task:

I want to evaluate whether my company should get listed on Coinbase as an exchange or not.

the planner classifies the request as crypto_market_decision, selects CryptoMarket, EvidenceScout, FinanceModeler, LegalRisk, and TechnicalFit, then produces a task-estimated group budget around 69,000 tokens:

InputValue
Request token estimate23
Task complexity score1.669
Selected agents' historical tokens39,989
Coordination overhead2,208
Group reserve9,660
Final group budget69,000

Per-agent caps are then allocated from demand:

AgentHistorical tokensPriorityDemand scoreToken cap
CryptoMarket9,415high11,54012,500
EvidenceScout7,727high10,59811,500
FinanceModeler7,816high10,69311,600
LegalRisk7,640critical11,80712,800
TechnicalFit7,391high10,06810,900

If the host passes an explicit tokenBudget, Team Manager records budgetEstimate.mode = "manual_override" and still recomputes the per-agent split from demand. Otherwise the budget is task-estimated.

Evidence Retrieval

Team Manager supports three evidence paths, all ending in the same MongoDB source_documents collection:

PathWhen usedHow it works
Bright Data MCP search/scrapeBRIGHTDATA_API_TOKEN is configuredteam_manager_find_sources discovers sources; team_manager_ingest_sources scrapes markdown through Bright Data when native fetch is thin.
Host-native searchClaude/Codex/Hermes already found good sourcesThe host calls team_manager_set_sources with URLs and optional extractedText; Team Manager stores and chunks that text.
Native fetch fallbackNo extractor is configured or a page is simple HTMLTeam Manager fetches the URL directly, strips HTML, and extracts query-relevant snippets.

This keeps retrieval honest: if a page is JS-rendered, bot-protected, or a binary PDF, Team Manager either uses Bright Data, accepts host-extracted text, or records the extraction weakness instead of fabricating evidence.

MCP Tools

ToolPurpose
team_manager_onboardInspect local provider configuration and persist model, source, memory, budget, and room-size preferences.
team_manager_register_agentsRegister actual host-available subagents into MongoDB agent_profiles for routing.
team_manager_plan_roomPropose task type, routing cascade, specialists, capability vectors, task-estimated token caps, execution profiles, memory policy, and approval questions.
team_manager_approve_planRecord human approval or revision request.
team_manager_find_sourcesUse Bright Data MCP search to discover source URLs and optionally register them.
team_manager_set_sourcesRegister arbitrary URLs chosen by the host or user.
team_manager_start_roomDispatch the approved room. If the task likely needs evidence and no sources exist, returns source-registration tools before final claims.
team_manager_ingest_sourcesExtract source evidence through auto, brightdata, or native mode and write source_documents.
team_manager_query_contextRetrieve relevant blackboard, source, and memory context with visibility filters.
team_manager_post_blackboardAppend findings, decisions, requests, progress, or warnings to shared room context.
team_manager_write_memoryStore private, team, or global memory cards.
team_manager_record_checkpointPersist agent progress and pending tool calls.
team_manager_update_budgetUpdate group token usage and return threshold actions.
team_manager_kill_agentRecord host-side worker interruption and preserve checkpoint state.
team_manager_resume_agentReturn checkpoint context for the restarted worker.
team_manager_emit_resultStore the final generic task result, deliverables, next steps, and claim-to-evidence trail.
team_manager_emit_decisionStore final verdict, votes, rationale, and claim-to-evidence trail.
team_manager_stateRead current room state, blackboard entries, checkpoints, and audit records.
team_manager_resetReset local room state and clear scoped MongoDB documents.

Typical sequence:

plan_room -> approve_plan -> find_sources or set_sources -> start_room -> ingest_sources
  -> specialists query/post/write/checkpoint/update_budget
  -> emit_result -> state

Governance Layers

LayerImplementation
Capability profilingDeclared skills plus proven task history, token efficiency, latency, and recency.
Shared blackboardAppend-only blackboard_entries with source links, visibility, embeddings, reactions, and promotion state.
Layered memorymemory_cards use private, team, and global visibility. Private memory requires owner-agent match.
Token budget governanceTask-estimated group budget in tasks and groups; warnings at 70%, summarizer action at 90%, configured action at 100%.
Checkpoint/resumeagent_performance_records stores step index, partial output, pending tool calls, and resume token.
AuditabilityFinal result claims in audit link back to blackboard entries, source ids, or artifacts.

MongoDB Collections

CollectionPurpose
agent_profilesCandidate agent cards, skills, embeddings, capabilities, and performance stats.
governance_plansProposed and approved room plans, questions, routing stages, execution profiles, budget estimates, and memory policy.
team_manager_settingsLocal operator preferences from onboarding: model slots, source strategy, memory default, max agents, and budget action.
tasksActive work item, assigned agents, task type, budget, checkpoint, and status.
groupsRoom membership and group-level token budget.
blackboard_entriesShared findings, decisions, requests, progress, and warnings.
memory_cardsPrivate, team, and global memory with filtered retrieval.
source_documentsUser-provided public sources plus extracted evidence snippets.
agent_performance_recordsTime-series execution records and recovery checkpoints.
auditAppend-only timeline and final result-to-evidence trail.

Atlas Vector Search indexes:

  • agent_profiles.agent_description_vector_index
  • blackboard_entries.blackboard_content_vector_index
  • memory_cards.memory_layered_vector_index

Quick Start

npm install
npm run mcp

For MCP client configs, call the server directly so stdout stays JSON-RPC clean:

./node_modules/.bin/tsx scripts/mcp-server.ts

Example MCP config:

{
  "mcpServers": {
    "team-manager": {
      "command": "/Users/advaitjayant/hackathon/team-manager/node_modules/.bin/tsx",
      "args": ["/Users/advaitjayant/hackathon/team-manager/scripts/mcp-server.ts"],
      "env": {
        "MONGODB_URI": "mongodb+srv://advait:<URL_ENCODED_PASSWORD>@cluster0.1hulng.mongodb.net/?appName=Cluster0",
        "TEAM_MANAGER_DB": "team_manager",
        "BRIGHTDATA_API_TOKEN": "<optional_for_search_and_scrape>",
        "OPENAI_API_KEY": "<optional_for_host_agent_execution>",
        "TEAM_MANAGER_LOGIC_MODEL": "gpt-5.5",
        "TEAM_MANAGER_LOGIC_REASONING_EFFORT": "xhigh",
        "TEAM_MANAGER_AESTHETIC_MODEL": "claude-opus-4-7",
        "TEAM_MANAGER_SUMMARIZER_MODEL": "gpt-5.5"
      }
    }
  }
}

Full operator notes are in docs/operator-guide.md.

Atlas Setup

Set the Atlas Sandbox connection string:

export MONGODB_URI="mongodb+srv://advait:<URL_ENCODED_PASSWORD>@cluster0.1hulng.mongodb.net/?appName=Cluster0"
export TEAM_MANAGER_DB=team_manager
export BRIGHTDATA_API_TOKEN="<optional>"

Initialize collections and indexes:

npm run atlas:init

Validate filtered vector retrieval on memory_cards:

npm run atlas:smoke

Validate TypeScript:

npm run build

Design Anchors

The README is product-led, but the implementation is grounded in current multi-agent systems work:

What Is Real

Implemented:

  • MCP server with generic tools.
  • Dynamic task classification.
  • Capability-based room planning.
  • Task-estimated group budgets and per-agent budget allocation with the formula stored in MongoDB.
  • Execution profile assignment without fake hard-coded model ids; real model ids can be supplied through env config.
  • Bright Data MCP search/scrape integration with native fetch and host-extracted text fallback.
  • Generic source registration and ingestion.
  • Shared blackboard writes.
  • Visibility-aware memory retrieval.
  • Group token budget threshold actions.
  • Agent checkpoint, interruption, and resume records.
  • Final audited result writes for decisions, deliverables, plans, reports, checkpoints, and other task outcomes.
  • MongoDB collection and index setup.

Boundary:

  • Team Manager does not secretly launch five LLM subprocesses itself. The MCP host runs the workers and calls Team Manager tools. Team Manager is the governance/control plane.
  • The source extractor is intentionally generic. It extracts query-relevant snippets from searched or user-provided URLs; it is not a domain-specific scraper.

Pitch Line

Team Manager MCP is the MongoDB-native control plane that turns any complex request into an approved specialist room with explicit skills, token budgets, memory boundaries, shared context, checkpoints, and an auditable final result.

Reviews

No reviews yet

Sign in to write a review