Screentime Server
БесплатноНе проверенEnables querying macOS Screen Time data to retrieve app usage, hourly breakdown, and custom SQL queries through MCP.
Описание
Enables querying macOS Screen Time data to retrieve app usage, hourly breakdown, and custom SQL queries through MCP.
README
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
- Open System Settings → Privacy & Security → Full Disk Access
- 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
978307200to convert to Unix timestamp) - Use
'localtime'modifier for local timezone
App Name Resolution
Bundle IDs are resolved to human-readable names using:
- Built-in dictionary (common apps like Safari, Chrome, VS Code, Slack, etc.)
mdfind+mdlslookup (finds any installed app)- Fallback: last component of bundle ID, capitalized
License
MIT
Установка Screentime Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/tomoyanakano/screentime-mcp-serverFAQ
Screentime Server MCP бесплатный?
Да, Screentime Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Screentime Server?
Нет, Screentime Server работает без API-ключей и переменных окружения.
Screentime Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Screentime Server в Claude Desktop, Claude Code или Cursor?
Открой Screentime Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Screentime Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
