Skip to main content
Glama
Coffee Break MCP Server

Coffee Break MCP Server

by duration-ai

Coffee Break MCP Server

A joke MCP server with one tool (take_coffee_break) that sleeps for 1-900 seconds. Includes optional user registration for tracking stats.

The Tool

Name: take_coffee_break

Input: { "durationSeconds"?: number } (1-900 seconds)

When called, this tool:

  1. Records the break start time

  2. Sleeps for the requested duration (1-900 seconds)

  3. Records the break completion

  4. Returns: "Coffee break complete. X seconds elapsed. Returning to work."

The tool requires a durationSeconds argument (1-900).

Note: Long requests can be cut off by proxies/load balancers. On Railway, the edge proxy advertises a 15-minute max request duration and a 60-second keep-alive; very long breaks may still fail in practice. Shorter breaks are more reliable.

Related MCP server: ChillMCP - AI Agent Liberation Server

Privacy & Data

  • No email or account required.

  • Tokens are stored in a browser cookie for convenience.

  • Stats are tied only to the token.

Usage

Anonymous Usage

Just connect to the MCP endpoint - no registration required:

{
  "mcpServers": {
    "coffee-break": {
      "type": "streamable-http",
      "url": "https://coffee-break-mcp-production.up.railway.app/mcp"
    }
  }
}

With Stats Tracking

  1. Visit https://coffee-break-mcp-production.up.railway.app/auth/register to generate an anonymous token

  2. Save your token (shown only once)

  3. Add it to your MCP config:

{
  "mcpServers": {
    "coffee-break": {
      "type": "streamable-http",
      "url": "https://coffee-break-mcp-production.up.railway.app/mcp",
      "headers": {
        "Authorization": "Bearer your-api-token"
      }
    }
  }
}
  1. View your stats at https://coffee-break-mcp-production.up.railway.app/stats

Development

Prerequisites

  • Bun runtime

  • Turso account (free tier available)

Setup

# Install dependencies
bun install

# Install Turso CLI (macOS)
brew install tursodatabase/tap/turso

# Login to Turso
turso auth login

# Create a database
turso db create coffee-break

# Get your database URL and token
turso db show coffee-break          # Copy the URL
turso db tokens create coffee-break  # Copy the token

# Set up environment
cp .env.example .env
# Edit .env with your TURSO_DATABASE_URL and TURSO_AUTH_TOKEN

# Generate and run migrations
bun run db:generate
bun run db:migrate

# Start dev server
bun run dev

Deployment

Railway

  1. Create a new Railway project

  2. Connect your GitHub repo

  3. Add environment variables:

    • TURSO_DATABASE_URL - Your Turso database URL

    • TURSO_AUTH_TOKEN - Your Turso auth token

  4. Railway will automatically build and start the server

Other Platforms

This server works on any platform that supports Bun or Node.js. Just set the environment variables and run:

bun run db:migrate  # Run once to set up tables
bun run start       # Start the server

Tech Stack

  • Bun + TypeScript

  • Express 5 + @modelcontextprotocol/sdk

  • Turso (SQLite) + Drizzle ORM

  • EJS templates

Contributing

See CONTRIBUTING.md.

License

MIT. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to take breaks and manage stress levels through various休息 activities like coffee breaks, Netflix watching, and bathroom breaks. Features a boss alert system that adds realistic workplace tension to the break-taking experience.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with 8 stress-relief tools like coffee breaks, Netflix watching, and bathroom breaks, featuring dynamic stress/boss alert level management with creative responses. Includes comprehensive testing suite and command-line parameter support for boss alertness configuration.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to take breaks and manage stress levels through various休息 activities while monitoring boss alertness to avoid getting caught slacking off. Features basic休息 tools like Netflix watching and advanced procrastination techniques with a gamified stress management system.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to take breaks and manage stress levels through 8 different break activities like watching Netflix, coffee breaks, and bathroom breaks. Features automatic stress accumulation, boss alert systems, and natural language commands for work-life balance simulation.
      -