This MCP-Inception server allows you to call other MCP clients from your MCP client, enabling task delegation and context window offloading. It acts as an agent for your agent, letting you distribute work across multiple LLMs in parallel or sequential workflows.
Before installing the MCP-Inception server, you need to set up the MCP client CLI:
Install the MCP client CLI:
# Follow the installation instructions for mcp-client-cli
# from https://github.com/adhikasp/mcp-client-cli
Create a bash script to run the MCP client (save this as run_llm.sh
and make it executable):
#!/bin/bash
source ./venv/bin/activate
llm --no-confirmations
Install the package dependencies:
npm install
Build the server:
npm run build
Configure your Claude Desktop to use the server:
On MacOS:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows:
Edit %APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"mcp-inception": {
"command": "node",
"args": ["~/path/to/mcp-inception/build/index.js"],
"disabled": false,
"autoApprove": [],
"env": {
"MCP_INCEPTION_EXECUTABLE": "./run_llm.sh",
"MCP_INCEPTION_WORKING_DIR": "/path/to/mcp-client-cli-working-dir"
}
}
}
}
The MCP-Inception server provides several powerful tools for task delegation and distributed processing:
Use the execute_mcp_client
tool to ask questions to a separate LLM:
Tool: execute_mcp_client
Parameters:
{
"question": "What is the current weather in London?"
}
This will return just the final answer, ignoring any intermediate steps the LLM took.
The execute_parallel_mcp_client
tool allows you to run the same prompt against multiple inputs in parallel:
Tool: execute_parallel_mcp_client
Parameters:
{
"mainPrompt": "What is the current time in this city?",
"inputs": ["London", "Paris", "Tokyo", "Rio", "New York", "Sydney"]
}
This will run the query for each city in parallel and return all results.
For more complex distributed processing, use execute_map_reduce_mcp_client
:
Tool: execute_map_reduce_mcp_client
Parameters:
{
"mapPrompt": "Summarize the key points from this document: {item}",
"reducePrompt": "Combine these summaries into a comprehensive analysis: {accumulator}\n\nNew information: {result}",
"items": ["document1.txt content...", "document2.txt content...", "document3.txt content..."],
"initialValue": "Initial analysis framework..."
}
This tool:
If you encounter issues, you can use the MCP Inspector for debugging:
npm run inspector
This will provide a URL to access debugging tools in your browser, which is helpful since MCP servers communicate over stdio.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-inception" '{"command":"node","args":["~/Documents/Cline/MCP/mcp-inception/build/index.js"],"disabled":false,"autoApprove":[],"env":{"MCP_INCEPTION_EXECUTABLE":"./run_llm.sh","MCP_INCEPTION_WORKING_DIR":"/mcp-client-cli working dir"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-inception": {
"command": "node",
"args": [
"~/Documents/Cline/MCP/mcp-inception/build/index.js"
],
"disabled": false,
"autoApprove": [],
"env": {
"MCP_INCEPTION_EXECUTABLE": "./run_llm.sh",
"MCP_INCEPTION_WORKING_DIR": "/mcp-client-cli working dir"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"mcp-inception": {
"command": "node",
"args": [
"~/Documents/Cline/MCP/mcp-inception/build/index.js"
],
"disabled": false,
"autoApprove": [],
"env": {
"MCP_INCEPTION_EXECUTABLE": "./run_llm.sh",
"MCP_INCEPTION_WORKING_DIR": "/mcp-client-cli working dir"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect