screentime-mcp-server

screentime-mcp-server

Enables querying macOS Screen Time data to retrieve app usage, hourly breakdown, and custom SQL queries through MCP.

Category
Visit Server

README

screentime-mcp-server

MCP server for querying macOS Screen Time data. Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client.

Reads app usage data directly from macOS knowledgeC.db via sqlite3 CLI — no native modules or dependencies required.

Requirements

  • macOS (Screen Time must be enabled)
  • Node.js >= 18
  • Full Disk Access must be granted to the host application (Claude Desktop, Terminal, etc.)

Granting Full Disk Access

  1. Open System SettingsPrivacy & SecurityFull Disk Access
  2. Add the application that runs the MCP server (e.g., Claude Desktop, Terminal, WezTerm)

This is required because knowledgeC.db is in a protected location.

Setup

Claude Code

claude mcp add screentime -- npx -y screentime-mcp-server

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "screentime": {
      "command": "npx",
      "args": ["-y", "screentime-mcp-server"]
    }
  }
}

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "screentime": {
      "command": "npx",
      "args": ["-y", "screentime-mcp-server"]
    }
  }
}

Tools

get_screentime

Get app usage data for a specific date with human-readable app names.

Parameters:

Parameter Type Default Description
date string today Date in YYYY-MM-DD format
min_seconds number 60 Minimum usage duration in seconds

Example output:

# Screen Time: 2026-02-14

**Total: 5h 30m**

- WezTerm: 2h 15m
- Arc: 1h 30m
- Ableton Live: 55m
- Obsidian: 50m

## Hourly Breakdown

- **09:00**: WezTerm 45m, Arc 12m
- **10:00**: Ableton Live 55m
- **11:00**: WezTerm 40m, Arc 18m

## Timeline Detail

- 09:05-09:50 WezTerm (45m)
- 09:50-10:02 Arc (12m)
- 10:02-10:57 Ableton Live (55m)

screentime_sql

Run a custom SQL query directly against knowledgeC.db.

Parameters:

Parameter Type Description
sql string SQL query to execute

Schema notes:

  • Table: ZOBJECT
  • Filter: ZSTREAMNAME = '/app/usage'
  • App bundle ID: ZVALUESTRING
  • Timestamps use Core Data epoch (add 978307200 to convert to Unix timestamp)
  • Use 'localtime' modifier for local timezone

App Name Resolution

Bundle IDs are resolved to human-readable names using:

  1. Built-in dictionary (common apps like Safari, Chrome, VS Code, Slack, etc.)
  2. mdfind + mdls lookup (finds any installed app)
  3. Fallback: last component of bundle ID, capitalized

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured