sub-agents-mcp MCP Server
MCP server for delegating tasks to specialized AI sub-agents across coding tools
sub-agents-mcp scores 40 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Knowledge. GitHub shows 98 stars. Package registries report about 173 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
40 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 40 comes from
0 + 6 + 10 + 10 + 7 + 7 = 40. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 10 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 7 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "shinpr-sub-agents-mcp": { "command": "npx", "args": [ "-y", "sub-agents-mcp@0.15.1" ], "env": { "AGENTS_DIR": "", "AGENT_TYPE": "", "AGENT_PERMISSION": "", "AGENT_MODEL": "", "AGENT_EFFORT": "", "CURSOR_API_KEY": "YOUR_CURSOR_API_KEY", "CLI_API_KEY": "YOUR_CLI_API_KEY", "EXECUTION_TIMEOUT_MS": "", "SESSION_ENABLED": "", "SESSION_DIR": "", "SESSION_RETENTION_DAYS": "", "AGENTS_SETTINGS_PATH": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
AGENTS_DIR | Required | Absolute path to the directory containing agent definition files (.md or .txt) |
AGENT_TYPE | Required | Type of AI CLI to use: 'cursor', 'claude', 'gemini', 'codex', 'command-code', 'glm', 'kimi', 'grok', 'antigravity', 'opencode', 'mcode', or 'pi' |
AGENT_PERMISSION | Optional | Approval/sandbox level for sub-agents: 'read-only', 'safe-edit' (default), or 'yolo' |
AGENT_MODEL | Optional | Optional model override applied to every sub-agent execution by this MCP server |
AGENT_EFFORT | Optional | Optional backend-specific reasoning effort or model variant. Supported by codex, claude, command-code, glm, kimi, grok, antigravity, opencode, mcode, and pi. |
CURSOR_API_KEYSecret | Optional | API key for cursor-agent authentication (used only when AGENT_TYPE=cursor; passed via env, never via CLI args) |
CLI_API_KEYSecret | Optional | Provider API key for AGENT_TYPE=glm or kimi (passed to the claude binary via env, never via CLI args). Restart/reconnect the MCP server after changing it. |
EXECUTION_TIMEOUT_MS | Optional | Agent execution timeout in milliseconds, as a positive whole number (default: 300000). The server refuses to start on an invalid value such as "5min". |
SESSION_ENABLED | Optional | Enable session management to maintain execution history across agent calls (default: false) |
SESSION_DIR | Optional | Directory path for storing session files (default: .mcp-sessions in current working directory) |
SESSION_RETENTION_DAYS | Optional | Number of days to retain session history before automatic cleanup (default: 1) |
AGENTS_SETTINGS_PATH | Optional | Path to CLI settings file/directory. Claude: --settings arg, Cursor: CURSOR_CONFIG_DIR, Codex: CODEX_HOME. GLM/Kimi/Gemini/Grok/Antigravity/OpenCode/Command Code/MiniMax Code/Pi not supported. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Sub-Agents MCP Server
Run reusable coding agents from any MCP-compatible client.
Write a reviewer, test writer, or investigator in Markdown, then ask your assistant to use it. The MCP server runs that agent with the coding CLI you choose and returns the result to the same conversation.
What You Can Do
- Delegate code review, test writing, investigation, and documentation to focused agents
- Reuse the same agent definitions across MCP clients with one shared backend and model configuration
- Continue the same agent across multiple calls for longer work
Quick Start
You need Node.js 22 or later, an MCP-compatible client, and one supported coding CLI installed and signed in. This example uses Codex.
1. Create an Agent
Create an agents folder anywhere on your machine, then add code-reviewer.md:
# Code Reviewer
Review code for bugs and maintainability issues.
## Task
- Find concrete problems in the requested changes
- Explain why each problem matters
- Point to the affected code
## Done When
- All requested files have been reviewed
- Findings include evidence and suggested next steps
The filename becomes the agent name: code-reviewer.md becomes code-reviewer.
2. Add the MCP Server
Add the server to your client's MCP configuration. Replace AGENTS_DIR with the absolute path to the folder you created.
{
"mcpServers": {
"sub-agents": {
"command": "npx",
"args": ["-y", "sub-agents-mcp"],
"env": {
"AGENTS_DIR": "/absolute/path/to/agents",
"AGENT_TYPE": "codex"
}
}
}
}
Restart or reconnect your MCP client after saving the configuration.
3. Run the Agent
Ask your assistant:
Use the code-reviewer agent to review the authentication changes.
Your assistant runs the agent with Codex and returns the review to the conversation.
Examples
Use the test-writer agent to add unit tests for the auth module.
Use the bug-investigator agent to find the cause of the failed checkout requests.
Use the doc-writer agent to document the public API changes.
Name both the agent and the work you want it to do.
When the MCP Server Fits
Use the MCP server when you want to share the same agents across MCP clients while keeping backend and model configuration in one place.
If you prefer a lighter installation or want each agent to choose its own backend and model, see Sub-Agents Skills.
Supported Backends
Set AGENT_TYPE to the backend you already use:
AGENT_TYPE | Backend | Command |
|---|---|---|
codex | Codex | codex |
claude | Claude Code | claude |
cursor | Cursor CLI | cursor-agent |
command-code | Command Code | command-code |
glm | GLM (Z.ai) | claude |
kimi | Kimi | claude |
grok | Grok Build | grok |
antigravity | Google Antigravity | agy 1.1.12+ |
gemini | Gemini CLI (compatibility) | gemini |
opencode | OpenCode | opencode |
mcode | MiniMax Code | mcode |
pi | Pi | pi |
The selected CLI must be installed and configured before the MCP server starts.
GLM and Kimi require CLI_API_KEY in the MCP server environment. Other backends use the CLI's existing authentication.
For Google models, prefer Antigravity. Gemini CLI remains available for existing enterprise, API key, or Vertex AI configurations.
Shared Agent Settings
Set AGENT_MODEL to use one model for every agent. Omit it to use the backend's default.
AGENT_PERMISSION controls what agents may do:
read-only— review and investigationsafe-edit— edits allowed without approval (default)yolo— unrestricted execution
If an agent reports that an action was blocked, choose a less restrictive mode.
How strictly each level is enforced depends on the backend, so treat it as guidance rather than a security boundary.
Continue Work Across Calls
Set SESSION_ENABLED to "true" when you want an agent to remember earlier calls and continue a longer task. Your assistant must reuse the returned session_id on the next call to continue that session.
If It Does Not Start
- Run the selected backend command directly and confirm that it is installed and signed in
- Make sure
AGENTS_DIRis an absolute path and contains at least one.mdor.txtfile - Restart or reconnect the MCP client after changing its configuration
License
MIT
Frequently asked questions
What is sub-agents-mcp MCP Server?
MCP server for delegating tasks to specialized AI sub-agents across coding tools
How do I install sub-agents-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. sub-agents-mcp MCP Server runs locally from the npm package sub-agents-mcp with the command npx -y sub-agents-mcp@0.15.1.
Is sub-agents-mcp MCP Server free and open source?
Yes. sub-agents-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does sub-agents-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for sub-agents-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is sub-agents-mcp MCP Server's trust score calculated?
sub-agents-mcp MCP Server scores 40 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.