MCP Utility Tools
A collection of utility tools for the Model Context Protocol (MCP) that provide caching, retry logic, batch operations, and rate limiting capabilities to enhance any MCP-based workflow.
Features
- 🔄 Retry with Exponential Backoff - Automatically retry failed operations with configurable delays
- 💾 TTL-based Caching - Cache expensive operations with automatic expiration
- 🚀 Batch Operations - Process multiple operations in parallel with concurrency control
- 🚦 Rate Limiting - Prevent API abuse with sliding window rate limiting
- 🔍 Full TypeScript Support - Type-safe with comprehensive TypeScript definitions
Installation
Quick Start
1. Add to Claude Desktop
Add the utility tools to your Claude Desktop configuration:
2. Use with Claude
Once configured, Claude can use these tools to enhance any workflow:
Available Tools
🔄 retry_operation
Retry operations with exponential backoff and jitter.
Features:
- Tracks retry attempts across multiple calls
- Exponential backoff with configurable delays
- Optional jitter to prevent thundering herd
- Prevents duplicate retries for successful operations
💾 Cache Operations
cache_get
Retrieve values from cache with TTL support.
cache_put
Store values with automatic expiration.
Features:
- Namespace support to prevent key collisions
- Automatic cleanup of expired entries
- Configurable TTL (1 second to 24 hours)
- Memory-efficient storage
🚀 batch_operation
Process multiple operations with controlled concurrency.
Features:
- Configurable concurrency (1-20 operations)
- Per-operation timeout
- Continue or fail-fast on errors
- Optional result caching
- Maintains order of results
🚦 rate_limit_check
Implement sliding window rate limiting.
Features:
- Per-resource tracking
- Sliding window algorithm
- Automatic reset after time window
- Check without incrementing option
Integration Examples
With GitHub MCP Server
With Slack MCP Server
Architecture
Development
Testing
Run the comprehensive test suite:
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Areas for Contribution
- 🔌 Storage Backends: Add Redis, SQLite support
- 🔧 New Tools: Circuit breakers, request deduplication
- 📊 Metrics: Add performance tracking and analytics
- 🌐 Examples: More integration examples with other MCP servers
License
MIT © Jonathan Haas
Acknowledgments
Built on top of the Model Context Protocol SDK by Anthropic.
This server cannot be installed
A collection of tools that enhance MCP-based workflows with caching, retry logic, batch operations, and rate limiting capabilities.
Related MCP Servers
- AsecurityFlicenseAqualityEnables interaction with Linear resources through an MCP interface, offering functionality for issue management and resource retrieval with rate limiting and error handling support.Last updated -33241JavaScript
- -securityAlicense-qualityProvides a simple 'wait' tool that introduces deliberate pauses into workflows executed by MCP clients, allowing time for asynchronous operations to complete before proceeding to the next step.Last updated -5821JavaScriptMIT License
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -315GoMIT License
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations. It can be integrated as an SDK into your own project and includes nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -115GoMIT License