
What You Are Making
A JetBrains AI Assistant prompt that reads yesterday's screen time data from ScreenTimerAI and generates a short daily productivity report inside your IDE.
Works in IntelliJ IDEA, WebStorm, PyCharm, GoLand, Rider, and every other JetBrains IDE.
Why JetBrains AI
JetBrains AI Assistant is an AI-powered plugin built into all JetBrains IDEs. It provides an inline chat, code generation, refactoring suggestions, and — since version 2025.1 — full Model Context Protocol (MCP) tool support. Professional developers who spend their entire workday inside IntelliJ IDEA, WebStorm, PyCharm, or another JetBrains IDE benefit from getting productivity insights without switching to a browser. Connecting ScreenTimerAI as an MCP server means your screen time data flows directly into the AI Assistant chat panel, eliminating the friction of context-switching to a separate dashboard. Because MCP support is a first-class feature in JetBrains 2025.1 and later, the integration is straightforward and requires no extra plugins beyond AI Assistant itself.
Step 1: Connect ScreenTimerAI To JetBrains
Open Settings, go to Tools, then AI Assistant, then Model Context Protocol (MCP).
Click Add (+), then select "As JSON" in the top-left corner of the dialog.
Paste this configuration:
{
"mcpServers": {
"screentimerai-activities": {
"command": "/Applications/ScreenTimerAI.app/Contents/MacOS/activity-mcp-server",
"args": []
}
}
}
Click OK, then completely quit and restart the IDE to load the new MCP server.
If you want to test that Step 1 worked, try one of these prompts in AI Assistant:
| MCP function | Test prompt |
|---|---|
get_current_activity | What am I doing right now? |
get_activity_logs | Get my raw activity logs for yesterday. |
show_activity_timeline | Show me an activity timeline for yesterday. |
summarize_activity_range | Summarize my activity for yesterday. |
analyze_focus_segments | Analyze my focus segments for yesterday afternoon. |
show_focus_score_timeline | Show me a focus score timeline for today. |
show_focus_score_trends | Show me my focus score last week. |
Step 2: Generate Your Daily Report
Open the AI Assistant chat panel and paste this prompt:
Generate a daily productivity text report based on yesterday's Screen Time AI data.
Follow these steps:
1. Fetch yesterday's activity data from Screen Time AI.
2. Write a short productivity report (~150 words) from the perspective of a dark, witty productivity coach reacting to the data.
Rules:
- Focus more on failures than successes
- Use short, punchy sentences
- Be dark and witty, commanding not polished
- Swearing is allowed sparingly for impact
- Return only the final report text, nothing else
Return the report as plain text directly in the chat.AI Assistant will use the ScreenTimerAI tools to fetch your data and return the report in the chat panel.
Other Prompts To Try
The daily report prompt above is just one example. Here are more prompts you can paste into JetBrains AI Assistant to explore your screen time data in different ways:
- "Show me my top 5 apps by time spent yesterday." Get a ranked breakdown of where your hours actually went, so you can see at a glance whether your IDE or your browser dominated the day.
- "How many context switches did I have yesterday afternoon?" Context switches are productivity killers. This prompt surfaces how often you bounced between apps during a specific time window.
- "Compare my screen time this week vs last week." A week-over-week comparison helps you spot trends — are you spending more time in meetings, or did deep-work hours increase?
- "Analyze my focus segments for yesterday and identify my most productive hours." Focus segments highlight uninterrupted stretches of work. Knowing when your best focus blocks happen helps you protect that time on future calendars.
Troubleshooting
- Tools not loading after adding config? You must completely quit and restart the IDE (not just close the project). JetBrains only discovers new MCP servers on a full restart.
- MCP option not visible in Settings? The MCP panel requires JetBrains IDE version 2025.1 or later with the AI Assistant plugin active. Update your IDE and confirm the plugin is installed under Settings > Plugins.
- AI Assistant not calling tools? Open Settings > Tools > AI Assistant > MCP and verify the ScreenTimerAI server shows as connected with a green status indicator. If it shows an error, check that the binary path in your config is correct.
What Happens Next
Every time you run the prompt, JetBrains AI Assistant pulls your latest screen time data through the MCP connection and generates a fresh report.
Use it as a quick morning check-in inside whatever JetBrains IDE you work in.