MCP Subagents

MCP Subagents

Enables hierarchical task planning and execution through recursive code and analysis subagents. Provides a planner tool that decomposes complex tasks and delegates them to specialized subagents with session-aware persistence.

Category
Visit Server

README

mcp-subagents

MCP stdio server that exposes a planner tool plus recursive code/analysis subagents. It is built for Codex MCP-server mode: start the process and point your MCP-capable client at stdio.

Features

  • Planner tool that decomposes tasks and delegates.
  • Code and analysis subagents that can delegate recursively (depth limited).
  • Session-aware scratchpad persisted to data/sessions/*.json.
  • Uses MCP client sampling (no server-side API key needed).
  • Includes a patch-package fix for GHSA-8r9q-7v3j-jr4g (UriTemplate ReDoS) in @modelcontextprotocol/sdk@1.25.1.

Requirements

  • Node 18.18+.
  • MCP client capable of createMessage (Codex CLI covers this).

Optional fallback (when the client does not support sampling):

  • OPENAI_API_KEY for direct OpenAI chat completions.
  • OPENAI_BASE_URL to override the API base URL (defaults to https://api.openai.com/v1).
  • You can also pass openai_api_key in tool arguments to provide a key per request.

Quickstart

cd my-repos/mcp-subagents
npm install
npm run dev   # or: npm run start after npm run build

Expose via Codex MCP server mode by pointing to the stdio command above.

Tools

  • planner(task, context?, session_id?, max_depth?) – orchestrates the plan and delegates.
  • subagent(role, objective, context?, session_id?, max_depth?) – run a specific role directly.
  • session_log(session_id?) – read persisted scratchpad.
  • session_clear(session_id?) – drop persisted scratchpad.

max_depth defaults to AGENT_MAX_DEPTH env (3). Session IDs let multiple conversations stay isolated.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured