- Explore MCP Servers
- sleep-mcp
Sleep Mcp
What is Sleep Mcp
sleep-mcp is a Model Context Protocol (MCP) server that allows AI agents to pause execution for a specified duration in milliseconds. It is particularly useful for managing delays between operations, such as waiting for API responses.
Use cases
Use cases for sleep-mcp include adding delays between API calls, testing systems that require waiting for eventual consistency, and managing timing in automated workflows.
How to use
To use sleep-mcp, clone the repository from GitHub, install the necessary dependencies using npm, and configure your MCP settings file to include the sleep server. You can then utilize the ‘sleep’ tool to introduce delays in your processes.
Key features
Key features of sleep-mcp include the ability to specify sleep durations in milliseconds, easy integration with existing MCP setups, and a straightforward installation process. It also includes a timeout setting to prevent indefinite waiting.
Where to use
sleep-mcp can be used in various fields where timing and synchronization are crucial, such as software development, API testing, and scenarios involving eventually consistent systems.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Sleep Mcp
sleep-mcp is a Model Context Protocol (MCP) server that allows AI agents to pause execution for a specified duration in milliseconds. It is particularly useful for managing delays between operations, such as waiting for API responses.
Use cases
Use cases for sleep-mcp include adding delays between API calls, testing systems that require waiting for eventual consistency, and managing timing in automated workflows.
How to use
To use sleep-mcp, clone the repository from GitHub, install the necessary dependencies using npm, and configure your MCP settings file to include the sleep server. You can then utilize the ‘sleep’ tool to introduce delays in your processes.
Key features
Key features of sleep-mcp include the ability to specify sleep durations in milliseconds, easy integration with existing MCP setups, and a straightforward installation process. It also includes a timeout setting to prevent indefinite waiting.
Where to use
sleep-mcp can be used in various fields where timing and synchronization are crucial, such as software development, API testing, and scenarios involving eventually consistent systems.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Sleep MCP Server
A Model Context Protocol (MCP) server that provides a simple sleep/wait tool. Useful for adding delays between operations, such as waiting between API calls or testing eventually consistent systems.
Available Tools
sleep: Wait for a specified duration in milliseconds
Installation
git clone https://github.com/Garoth/sleep-mcp.git
npm install
Configuration
Add to your Cline MCP settings file (ex. ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
{
"mcpServers": {
"sleep": {
"command": "node",
"args": [
"/path/to/sleep-server/build/index.js"
],
"disabled": false,
"autoApprove": [],
"timeout": 300
}
}
}
Note: The
timeoutparameter specifies the maximum time (in milliseconds) that the MCP server will wait for a response before timing out. This is particularly important for the sleep tool, as setting a timeout that’s shorter than your sleep duration will cause the operation to fail. Make sure your timeout value is always greater than the maximum sleep duration you plan to use.
Development
Setting Up Tests
The tests verify the sleep functionality with various durations:
npm test
Building
npm run build
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










