MCP Tool Chainer

v1.0.0Developer Toolsstable

An MCP (Model Context Protocol) server that chains calls to other MCP tools, reducing token usage by allowing sequential tool execution with result passing

mcp-tool-chainermcpai-integration
Share:
59
Stars
0
Downloads
0
Weekly
0/5

What is MCP Tool Chainer?

MCP Tool Chainer is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp (model context protocol) server that chains calls to other mcp tools, reducing token usage by allowing sequential tool execution with result passing

An MCP (Model Context Protocol) server that chains calls to other MCP tools, reducing token usage by allowing sequential tool execution with result passing

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • An MCP (Model Context Protocol) server that chains calls to

Use Cases

Chain sequential MCP tool calls to reduce token usage.
Pass results between tools automatically.
Optimize multi-step workflows in AI agents.
LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @thirdstrandstudio/mcp-tool-chainer

Manual Installation

npx -y @thirdstrandstudio/mcp-tool-chainer

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP Tool Chainer

MCP Tool Chainer is an MCP server that enables sequential chaining of calls across multiple MCP tools, passing the output of one tool as the input to the next using a `CHAIN_RESULT` placeholder and JSONPath expressions for precise data extraction. By executing multi-step workflows in a single Claude request instead of many separate tool calls, it significantly reduces token consumption and round-trip overhead in complex AI agent pipelines.

Prerequisites

  • Node.js 18 or higher installed
  • Other MCP servers already configured whose tools you want to chain
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • Basic familiarity with JSONPath syntax for inputPath and outputPath parameters
1

Install via npx or npm

The simplest way to use MCP Tool Chainer is directly via npx. Alternatively, install the npm package globally.

npx -y @thirdstrandstudio/mcp-tool-chainer
# or
npm install -g @thirdstrandstudio/mcp-tool-chainer
2

Add the server to your MCP client configuration

Add MCP Tool Chainer to your claude_desktop_config.json. Important: the chainer needs to discover tools from other servers, so add it AFTER all other MCP servers in your config.

3

Discover available tools

On first run, the chainer automatically discovers tools from other configured MCP servers. Use the discover_tools tool to trigger a fresh scan if tools are added later.

4

List chainable tools

Use the chainable_tools tool in Claude to see all tools available for chaining and their parameter schemas.

5

Build your first chain

Construct a chain using the mcp_chain tool, specifying each step with toolName, toolArgs (using CHAIN_RESULT as a placeholder where applicable), and optional inputPath/outputPath JSONPath filters.

MCP Tool Chainer Examples

Client configuration

Add this to your claude_desktop_config.json. Place mcp_tool_chainer LAST in the mcpServers object so it can discover tools from all other servers.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
    },
    "mcp_tool_chainer": {
      "command": "npx",
      "args": ["-y", "@thirdstrandstudio/mcp-tool-chainer"]
    }
  }
}

Prompts to try

Use these prompts to chain tools together in a single Claude interaction.

- "Use mcp_chain to fetch https://api.github.com/repos/microsoft/vscode/releases/latest and then web_search for the title of the first result"
- "Chain a filesystem read_file on config.json followed by a tool that processes the 'database.url' field from that file"
- "Use chainable_tools to show me all tools I can chain together"
- "Use discover_tools to refresh the available tool list after I added a new MCP server"

Troubleshooting MCP Tool Chainer

mcp_chain reports tools not found or chainable_tools returns an empty list

Ensure mcp_tool_chainer is listed LAST in your mcpServers configuration. If other servers are added after the initial startup, call discover_tools to trigger a fresh discovery scan. Restart your MCP client after config changes.

CHAIN_RESULT placeholder is not being substituted with the previous step's output

Verify the toolArgs string contains CHAIN_RESULT as a bare token (not quoted as a string value in JSON). Use outputPath with a JSONPath expression on the previous step to extract the specific field you want to pass forward.

JSONPath inputPath or outputPath expressions return no data

Test your JSONPath expressions using a tool like https://jsonpath.com with sample data from the tool's actual output. Common issues include missing leading $ or using dot notation on arrays where bracket notation is needed (e.g., $.results[0].title).

Frequently Asked Questions about MCP Tool Chainer

What is MCP Tool Chainer?

MCP Tool Chainer is a Model Context Protocol (MCP) server that mcp (model context protocol) server that chains calls to other mcp tools, reducing token usage by allowing sequential tool execution with result passing It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP Tool Chainer?

Install via npm with the command: npx -y @thirdstrandstudio/mcp-tool-chainer. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with MCP Tool Chainer?

MCP Tool Chainer works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP Tool Chainer free to use?

Yes, MCP Tool Chainer is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-tool-chainer": { "command": "npx", "args": ["-y", "@thirdstrandstudio/mcp-tool-chainer"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP Tool Chainer?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides