Sub Agents MCP
This is an MCP server project that allows users to define AI sub - agents for specific tasks (such as code review, test writing) in Markdown files and execute them in any MCP - compatible tool through the Cursor, Claude Code, or Gemini CLI backends, realizing the reuse of AI sub - agent workflows across IDEs.
rating : 2.5 points
downloads : 0
What is Sub - Agents MCP Server?
This is a Model Context Protocol (MCP) server that allows you to define task - specific AI agents (such as 'test writer' or 'code reviewer') in Markdown files and execute them through the Cursor CLI, Claude Code CLI, or Gemini CLI backends. It makes the powerful sub - agent workflow of Claude Code portable, and any MCP - compatible tool can use the same agent definitions.How to use Sub - Agents MCP Server?
1. Create a Markdown file containing agent definitions. 2. Install and configure an execution engine (Cursor CLI, Claude Code CLI, or Gemini CLI). 3. Configure the MCP server in your MCP - compatible tool. 4. Call professional agents to complete tasks through simple instructions.Use Cases
• Team collaboration: Share agent definitions regardless of which IDE team members use. • Code review: Use a specialized code reviewer agent. • Test writing: Use a test expert agent to generate comprehensive test cases. • Documentation writing: Use a documentation expert agent to add code comments and documentation. • Security audit: Use a security inspector agent to identify potential vulnerabilities.Main Features
Cross - platform Agent Definition
Define reusable AI agents in Markdown files. Define once and use in multiple MCP - compatible tools.
Multi - engine Support
Supports three execution engines: Cursor CLI, Claude Code CLI, and Gemini CLI. Choose according to your preference.
Session Management
Optional session function allows agents to remember previous execution history, supporting iterative development and multi - step workflows.
Context Isolation
Each sub - agent runs in an independent context, ensuring task focus and no context pollution.
Team Sharing
Agent definition files can be easily shared among teams, ensuring consistent AI collaboration standards.
Advantages
Portability: Agent definitions are decoupled from the IDE and can be used in any MCP - compatible tool.
Specialization: Create specialized AI agents for specific tasks to improve task completion quality.
Team collaboration: Unified agent definitions ensure that team members use the same AI assistant standards.
Flexibility: Supports multiple execution engines to adapt to different users' technology stack preferences.
Scalability: Easily add new agents through simple Markdown files.
Limitations
Dependency on external CLI: Requires installation and configuration of Cursor CLI, Claude Code CLI, or Gemini CLI.
Permission configuration: May require manual configuration of command execution permissions.
Startup overhead: Each sub - agent runs in an independent context, with a certain startup time.
Session management: Requires explicit passing of session_id to maintain context continuity.
Path requirement: Must use absolute paths for configuration, relative paths are not supported.
How to Use
Create Agent Definitions
Create a folder to store your agent definition files. Each Markdown or TXT file represents an agent, and the file name will become the agent name.
Install the Execution Engine
Choose and install an execution engine according to your preference. Each engine corresponds to a different AI service provider.
Configure the MCP Server
Configure the server in your MCP - compatible tool. The configuration location varies by tool. You need to set environment variables to specify the agent directory and engine type.
Configure Command Permissions
To solve permission errors, you need to configure the execution engine to allow sub - agents to run necessary commands.
Start Using Agents
Restart your IDE and then call professional agents through simple instructions. Your AI assistant will automatically handle MCP calls.
Usage Examples
Code Review Workflow
Use a specialized code reviewer agent to check code quality, find potential problems, and provide improvement suggestions.
Test Generation Workflow
Use a test writing expert agent to generate comprehensive unit tests for existing code.
Documentation Writing Workflow
Use a documentation expert agent to add missing documentation and comments to the codebase.
SQL Optimization Workflow
Use an SQL expert agent to optimize database query performance.
Security Audit Workflow
Use a security inspector agent to identify security vulnerabilities in the code.
Frequently Asked Questions
Why do I need to install additional CLI tools? Can't the MCP server run agents directly?
How to solve the 'Permission Denied' error?
Why must the AGENTS_DIR use an absolute path?
What is the function of the session feature? How to enable it?
Can I use multiple execution engines at the same time?
What are the format requirements for agent definition files?
How to share agent definitions with other team members?
What should I do if the execution times out?
Related Resources
Complete Technical Article
Gain in - depth understanding of the design concept and implementation details of Sub - Agents MCP Server.
Model Context Protocol Official Documentation
Official documentation of the MCP protocol. Understand the basic concepts and working principles of MCP.
Cursor Official Website
Official website of Cursor IDE. Get installation and documentation for Cursor CLI.
Claude Code Official Website
Information related to Claude Code, including CLI installation guide.
Gemini CLI GitHub Repository
Open - source code and documentation for Gemini CLI.
npm Package Page
npm package page for Sub - Agents MCP Server. View version and installation statistics.

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.5K
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
28.6K
5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.5K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
53.9K
4.3 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
51.3K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.3K
5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.2K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
75.7K
4.7 points

