windows-context-mcp
Allows Google Gemini to access real-time Windows context, including active window, system performance, productivity metrics, and historical usage analytics.
Allows OpenAI ChatGPT to access real-time Windows context, including active window, system performance, productivity metrics, and historical usage analytics.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@windows-context-mcpWhat's my current active window and system performance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Windows Context MCP ๐ชโก
Windows Context MCP is a high-performance, native backend service and Model Context Protocol (MCP) server for Windows. It exposes real-time PC activity, focused foreground application telemetry, system resource stats, and historical productivity analytics to AI agents like Google Gemini, OpenAI ChatGPT, and Claude.
๐ Backend Features & Architecture
๐๏ธ Zero-Dependency SQLite Time-Series Engine (
src/db.ts): Built on nativenode:sqlitefor high-throughput persistence, indexed minute-by-minute focus session recording, and fast historical aggregations.๐ Dual Transport Support:
Streamable HTTP / JSON-RPC 2.0 (
src/server.ts): REST + JSON-RPC on port3001for remote AI assistants (Gemini remote MCP & ChatGPT Actions).Native STDIO Transport (
src/stdio.ts): Fast standard I/O stream for Claude Desktop, Cursor, and local CLI agents (node dist/index.js --stdio).
๐ช Win32 Native Interop (
src/collector.ts): Direct User32 / CIM queries for active window titles, process binaries, CPU delta utilization, RAM usage, user idle detection, and battery telemetry.๐ Advanced Productivity & Transition Tracking (
src/tracker.ts): Hourly breakdown curves, 24-hour timelines, transition chains, and multi-day date range analytics.๐งช Automated Test Suite: 17 unit and integration tests across storage, telemetry, and tools (
npm test).
Related MCP server: AETHER_01
๐ ๏ธ MCP Tools Reference (12 Tools)
Tool Name | Type | Description |
| Real-time | Full real-time snapshot: active window, screen time, CPU/RAM telemetry, battery. |
| Real-time | Focused foreground window title, process name, and category. |
| Aggregation | Today's screen time categorized by Productive, Entertainment, Communication, Browsing. |
| Telemetry | CPU load %, RAM total/free/used %, battery charge %, and AC state. |
| Analytics | Automated productivity score (0-100), balance ratio, and top distraction apps. |
| Search | Search application usage history today by process or window title query. |
| Presence | User presence & idle duration (detects if user is actively typing or away). |
| Chain | Chronological sequence of recent window and application switches. |
| Diagnostics | System resource health check, memory pressure level, and uptime. |
| Analytics | Identifies entertainment and distraction apps consuming the most time today. |
| Historical | 24-hour timeline of productive vs entertainment minutes per hour for any date. |
| Historical | Multi-day productivity scores, duration trends, and top apps across a date range. |
๐ Quick Start
1. Build
npm install
npm run build2. Run Tests
npm test3. Run Backend in HTTP Mode (for Gemini & ChatGPT)
npm startHTTP server starts on port 3001 with endpoint http://localhost:3001/mcp.
4. Run Backend in STDIO Mode (for Claude Desktop & Local MCP Clients)
node dist/index.js --stdio๐ Claude Desktop Configuration (claude_desktop_config.json)
{
"mcpServers": {
"windowsContext": {
"command": "node",
"args": ["C:/Users/smnk2/.gemini/antigravity/scratch/windows-context-mcp/dist/index.js", "--stdio"]
}
}
}๐ Google Gemini Configuration
{
"mcpServers": {
"windowsContext": {
"url": "http://localhost:3001/mcp",
"transport": "http"
}
}
}๐ License
MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceEnables comprehensive Windows desktop automation including screen capture, OCR text extraction, mouse/keyboard control, window management, process control, and clipboard operations through 25+ tools for AI agents.3MIT
- Alicense-qualityCmaintenanceEnables AI agents to perform extensive Windows system administration, file operations, process management, network configuration, registry editing, GUI automation, and more through a comprehensive set of MCP tools.1MIT
- Alicense-qualityBmaintenanceEnables AI agents to monitor system resources and control media, brightness, volume, and other Windows PC functions through natural language commands.1MIT
- Alicense-qualityAmaintenanceEnables Windows desktop automation via MCP, allowing AI agents to control mouse, keyboard, and screen capture with the same interface as Anthropic's computer-use tool.1MIT
Related MCP Connectors
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Free public MCP for AI agents โ 193 tools, 44 workflows. No API key.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nandhakumar-murugan/windows-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server