worksnaps-mcp
Enables logging offline time and managing Worksnaps projects/tasks from Cursor chat via natural language.
README
@mhdd_24/worksnaps-mcp
MCP server for Worksnaps time tracking from Cursor chat. Verify your API token, list projects and tasks, and log offline time without opening the Worksnaps web UI.
Same architecture as Timelog / Flyway / Notepad++ / Caffeine / Workspace Build MCP packages.
Full documentation: docs/WIKI.md
How it works (30 seconds)
You (chat)
→ worksnaps-mcp
→ Worksnaps REST API (XML over HTTPS)
→ GET /me.xml | /projects.xml | /tasks.xml
→ POST /projects/{id}/time_entries.xml (offline time)
- Configure
WORKSNAPS_API_TOKEN(Profile & Settings → Web Service API in Worksnaps) - Say "list Worksnaps projects" to pick a project ID
- Say "list tasks for project 1234" to pick a task ID
- Say "log 480 minutes to Worksnaps project 1234 task 56" with an optional comment
Prerequisites
| Requirement | Notes |
|---|---|
| Node.js 18+ | Uses native fetch |
| Worksnaps API token | Profile & Settings → Web Service API → Show my API Token |
| Project + task IDs | Use list_projects / list_tasks, or set defaults in env |
Install
Option A — npm (after publish)
npm install -g @mhdd_24/worksnaps-mcp
Option B — npx
npx @mhdd_24/worksnaps-mcp
Option C — clone and build
git clone https://github.com/Mhdd-24/Worksnaps-MCP.git
cd Worksnaps-MCP
npm install
npm run build
node dist/index.js
Configure Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"worksnaps": {
"command": "npx",
"args": ["-y", "@mhdd_24/worksnaps-mcp"],
"env": {
"WORKSNAPS_API_TOKEN": "<your-api-token>",
"WORKSNAPS_DEFAULT_PROJECT_ID": "1234",
"WORKSNAPS_DEFAULT_TASK_ID": "5678"
}
}
}
}
Local development:
"command": "node",
"args": ["C:/path/to/worksnaps-mcp/dist/index.js"]
Reload MCP after saving.
Tools
| Tool | Purpose |
|---|---|
whoami |
Resolve current user from API token (GET /me.xml) |
list_projects |
List accessible projects |
list_tasks |
List tasks in a project |
log_time |
Create offline time entry for yourself |
Chat examples
- "Run whoami on Worksnaps"
- "List Worksnaps projects"
- "List tasks for Worksnaps project 3456"
- "Log 6 hours offline time to Worksnaps project 3456 task 12 — comment: Sprint development"
Environment variables
| Variable | Required | Purpose |
|---|---|---|
WORKSNAPS_API_TOKEN |
Yes* | API token (Basic auth username; password ignored) |
WORKSNAPS_DEFAULT_PROJECT_ID |
No | Default project for log_time |
WORKSNAPS_DEFAULT_TASK_ID |
No | Default task for log_time |
WORKSNAPS_BASE_URL |
No | API base URL (default https://api.worksnaps.com/api) |
*Can be passed as token per tool call instead.
Notes
log_timecreates offline time entries (Worksnaps API: POST/projects/{project_id}/time_entries.xml).from_timestampis aligned to a 10-minute boundary (Worksnaps API requirement).- Default
startHouris 9 (local time) when only a date is provided.
License
ISC
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.