sleep-mcp
Allows AI Agents to sleep for a specified amount of milliseconds, like when they should wait for an API to complete
Documentation
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 installConfiguration
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 `timeout` parameter 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 testBuilding
npm run buildLicense
MIT
Frequently asked questions
What is sleep-mcp?
sleep-mcp is Allows AI Agents to sleep for a specified amount of milliseconds, like when they should wait for an API to complete
How do I install sleep-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is sleep-mcp open source?
Yes — it is hosted on GitHub at https://github.com/garoth/sleep-mcp and has 21 stars.
Related MCP tools
A model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Web search using free google search (NO API KEYS REQUIRED)
A CLI inspector for the Model Context Protocol
An experiment in software planning using MCP
Adb-mcp is a proof of concept project to enabled AI control of Adobe tools (Adobe Photoshop and Adobe Premiere) by providing an interface to LLMs via the MCP...
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP