MCPHub
目录@pathintegral-institutemcp-science--timer
M

timer

A minimal MCP server that functions as a countdown timer with progress notifications. Demonstrates streaming incremental updates for long-running tasks.

DevOpsstdioPythonMIT
159星标更新于2026年11月19日

Timer MCP Server

This is a minimal MCP server that acts as a count-down timer. It exposes a single tool wait that:

  • Takes two arguments, both in milliseconds:
    • time_to_wait – total duration to wait before the tool call completes.
    • notif_interval – interval between progress-update notifications.
  • Sends progress updates every notif_interval milliseconds while waiting.
  • Finishes once time_to_wait has elapsed and returns a text confirmation.

The server is primarily intended as a reference implementation that demonstrates how to stream incremental updates from a long-running task back to the client via MCP notifications.

Running locally

# Using uvx (recommended – it will build an isolated virtual-env automatically)
uvx mcp-science timer

# Or, from the server directory via Python directly:
python -m timer

The tool can be invoked from any MCP-compatible client with a prompt similar to:

“Please wait for 5 seconds, sending progress every 1 second.”

{
  "tool": "wait",
  "time_to_wait": 5000,
  "notif_interval": 1000
}

You should receive five progress notifications followed by the final “done” response.