sub-agents-mcp
by shinpr·★ 83·Score 46
Define task-specific AI sub-agents in Markdown for use with any MCP-compatible tool.
Overview
This MCP server brings Claude Code-style sub-agent workflows to any MCP-compatible environment. Users define specialized agents in markdown files with clear tasks and completion criteria, which can then be invoked through various backends including Cursor CLI, Claude Code, Gemini CLI, or Codex. The server enables reusable, shareable AI agents that maintain context across sessions and work across different IDEs and tools.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when you want to reuse Claude Code-style sub-agents across different AI tools or share specialized agent definitions with team members regardless of their preferred IDE.
When NOT to choose this
Avoid if you need only simple agent definitions or if you prefer a more integrated solution without requiring separate MCP configuration.
Tools this server exposes
1 tool extracted from the READMEexecute_sub_agentExecute a specialized sub-agent defined in a markdown file to perform a specific task.
Comparable tools
Installation
Installation
- Install an execution engine (cursor-agent, claude, gemini, or codex CLI)
- Configure MCP in your IDE:
- Cursor: ~/.cursor/mcp.json - Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"sub-agents": {
"command": "npx",
"args": ["-y", "sub-agents-mcp"],
"env": {
"AGENTS_DIR": "/absolute/path/to/your-agents-folder",
"AGENT_TYPE": "cursor" // or "claude", "gemini", or "codex"
}
}
}
}- Create agent markdown files in your agents folder
FAQ
- How do I create a new agent?
- Create a markdown file in your agents directory with a structure including Agent Name, Task, and Done When sections.
- Can I use custom models with sub-agents?
- Agent execution depends on your chosen backend (Cursor CLI, Claude Code, Gemini CLI, or Codex), each with its own model selection options.
On Hacker News
Recent discussion from the developer community.
- Story by shinpr · 2025-12-14
Compare sub-agents-mcp with
Last updated · Auto-generated from public README + GitHub signals.