Skip to content

MCP Batchit

MCP aggregator for batching multiple tool calls into a single request. Reduces overhead, saves tokens, and simplifies complex operations in AI agent workflows.

Install: git clone https://github.com/ryanjoachim/mcp-batchit

Install

$git clone https://github.com/ryanjoachim/mcp-batchit

Install command taken from the project's README or registry entry. Always review code before running it.

MCP BatchIt

Batch multiple MCP tool calls into a single "batch_execute" request—reducing overhead and token usage for AI agents.


Table of Contents

  1. Introduction
  2. Why Use BatchIt
  3. Key Features & Limitations
  4. Installation & Startup
  5. Multi-Phase Usage
  6. FAQ
  7. License

Introduction

⚠️ NOTICE: Work in Progress

This project is actively being developed to address several complex challenges:

  • Maintaining backwards compatibility with existing MCP servers
  • Resolving transport complexities with multi-connection clients (Cline, Roo, Claude Desktop)
  • Creating a beginner-friendly implementation

While functional, expect ongoing improvements and changes as we refine the solution.

MCP BatchIt is a simple aggregator server in the Model Context Protocol (MCP) ecosystem. It exposes just one tool: batch_execute. Rather than calling multiple MCP tools (like fetch, read_file, create_directory, write_file, etc.) in separate messages, you can batch them together in one aggregator request.

This dramatically reduces token usage, network overhead, and repeated context in your AI agent or LLM conversation.


Why Use BatchIt

  • One Action per Message Problem: Normally, an LLM or AI agent can only call a single MCP tool at a time, forcing multiple calls for multi-step tasks.

  • Excessive Round Trips: 10 separate file operations might require 10 messages → 10 responses.

  • BatchIt’s Approach:

    1. Takes a single batch_execute request.
    2. Spawns (or connects to) the actual target MCP server (like a filesystem server) behind the scenes.
    3. Runs each sub-operation (tool call) in parallel up to maxConcurrent.
    4. If one sub-op fails and stopOnError is true, it halts new sub-ops.
    5. Returns one consolidated JSON result.

Key Features & Limitations

Features

  1. Single “Batch Execute” Tool

    • You simply specify a list of sub‐ops referencing your existing MCP server’s tools.
  2. Parallel Execution

    • Run multiple sub-ops at once, controlled by maxConcurrent.
  3. Timeout & Stop on Error

    • Each sub-op races a timeoutMs, and you can skip remaining ops if one fails.
  4. Connection Caching

    • Reuses the same connection to the downstream MCP server for repeated calls, closing after an idle timeout.

Limitations

  1. No Data Passing Mid-Batch
    • If sub-op #2 depends on #1’s output, do multiple aggregator calls.
  2. No Partial Progress
    • You get all sub-ops’ results together at the end of each “batch_execute.”
  3. Must Use a Real MCP Server
    • If you spawn or connect to the aggregator itself, you’ll see “tool not found.” The aggregator only has “batch_execute.”
  4. One Target Server per Call
    • Each aggregator call references a single target MCP server. If you want multiple servers, you’d do more advanced logic or separate calls.

Installation & Startup

git clone https://github.com/ryanjoachim/mcp-batchit.git
cd mcp-batchit
npm install
npm run build
npm start

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related