Loop MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Loop MCP Server initialize an array of article URLs with the task 'summarize each article'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Loop MCP Server
An MCP (Model Context Protocol) server that enables LLMs to process arrays item by item with a specific task.
Overview
This MCP server provides tools for:
Initializing an array with a task description
Fetching items one by one or in batches for processing
Storing results for each processed item or batch
Retrieving all results (only after all items are processed)
Optional result summarization
Configurable batch size for efficient processing
Related MCP server: par5-mcp
Installation
npm installUsage
Running the Server
npm startAvailable Tools
initialize_array - Set up the array and task
array: The array of items to processtask: Description of what to do with each itembatchSize(optional): Number of items to process in each batch (default: 1)
get_next_item - Get the next item to process
Returns: Current item, index, task, and remaining count
get_next_batch - Get the next batch of items based on batch size
Returns: Array of items, indices, task, and remaining count
store_result - Store the result of processing
result: The processing result (single value or array for batch processing)
get_all_results - Get all results after completion
summarize(optional): Include a summaryNote: This will error if processing is not complete
reset - Clear the current processing state
Example Workflows
Single Item Processing
// 1. Initialize
await callTool('initialize_array', {
array: [1, 2, 3, 4, 5],
task: 'Square each number'
});
// 2. Process each item
while (true) {
const item = await callTool('get_next_item');
if (item.text === 'All items have been processed.') break;
// Process the item (e.g., square it)
const result = item.value * item.value;
await callTool('store_result', { result });
}
// 3. Get final results
const results = await callTool('get_all_results', { summarize: true });Batch Processing
// 1. Initialize with batch size
await callTool('initialize_array', {
array: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
task: 'Double each number',
batchSize: 3
});
// 2. Process in batches
while (true) {
const batch = await callTool('get_next_batch');
if (batch.text === 'All items have been processed.') break;
// Process the batch
const results = batch.items.map(item => item * 2);
await callTool('store_result', { result: results });
}
// 3. Get final results
const results = await callTool('get_all_results', { summarize: true });Running the Example
node example-client.jsIntegration with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"loop-processor": {
"command": "node",
"args": ["/path/to/loop_mcp/server.js"]
}
}
}Available Tools
6 toolsget_all_resultsB
Get all results after all items have been processed. This tool will return an error if processing is not complete.
Inputs: summarize.
get_next_batchB
Get the next batch of items to process based on the configured batch size
Inputs: no named parameters.
get_next_itemC
Get the next item to process along with the task
Inputs: no named parameters.
initialize_arrayC
Initialize the array and task to be processed
Inputs: array (required), task (required), batchSize.
resetC
Reset the processing state
Inputs: no named parameters.
store_resultC
Store the result of processing the current item or batch of items
Inputs: result (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: initialize_array sets up processing, get_next_item and get_next_batch retrieve work, store_result saves outcomes, get_all_results aggregates final results, and reset clears state. The descriptions make it unambiguous when to use each tool.
All tools follow a consistent verb_noun naming pattern (e.g., get_all_results, store_result, initialize_array). The naming is uniform and predictable, using snake_case throughout with clear action-object pairs.
With 6 tools, this server is well-scoped for processing tasks, covering initialization, retrieval, storage, aggregation, and reset. Each tool earns its place without redundancy, fitting a typical workflow efficiently.
The toolset provides complete coverage for a processing loop domain: initialize, retrieve items/batches, store results, get final results, and reset. There are no obvious gaps, enabling agents to handle the full lifecycle without dead ends.
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
AI-native task management: list, create, update and archive tasks with rich context for AI agents
Shared task layer for AI agents: tasks, handoffs and decisions that persist across tools.
Reliable async execution for agent tool calls: schema gating, retries, idempotency, audit trail.
Related MCP Servers
AlicenseAqualityDmaintenanceEnables efficient AI workflow orchestration by chaining multi-step LLM operations while keeping intermediate results out of the context window, reducing token usage by 90%+ and supporting multiple AI providers.71MIT- AlicenseAqualityAmaintenanceEnables parallel execution of shell commands and AI coding agents (Claude, Gemini, Codex) across lists of items like files or URLs, with batched processing and real-time streaming output for batch operations.8172 npm6Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides memory and orchestration capabilities to reduce AI waste, enabling recall before re-deriving and parallel task dispatch for any model.Apache 2.0
- AlicenseNot gradedqualityFmaintenanceLets Claude Code, Claude Desktop, or Codex delegate busywork to many cheap AI models at once and receive structured answers as data.1MIT