timeforged-mcp
<p align="center">
<img src="timeforged.png" width="280" alt="TimeForged" />
</p>
<p align="center">
<a href="https://www.npmjs.com/package/timeforged-mcp"><img src="https://img.shields.io/npm/v/timeforged-mcp.svg" alt="npm version" /></a>
<a href="https://github.com/Blysspeak/timeforged-mcp/blob/main/LICENSE"><img src="https://img.shields.io/github/license/Blysspeak/timeforged-mcp" alt="license" /></a>
<a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-blue" alt="MCP" /></a>
</p>
<p align="center">
MCP server for <a href="https://github.com/Blysspeak/timeforged">TimeForged</a> — open-source time tracking for developers.<br/>
Connect your AI assistant to your coding time data.
</p>
---
## Quick Start
```bash
npx timeforged-mcp
```
That's it. The server communicates over stdio using the [Model Context Protocol](https://modelcontextprotocol.io).
## Configuration
All configuration is done through environment variables:
| Variable | Description | Default |
|---|---|---|
| `TF_API_KEY` | Your TimeForged API key | _(none)_ |
| `TF_SERVER_URL` | TimeForged daemon URL | `http://127.0.0.1:6175` |
## Setup
### Claude Desktop
Add to `~/.config/claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"timeforged": {
"command": "npx",
"args": ["-y", "timeforged-mcp"],
"env": {
"TF_API_KEY": "your-api-key"
}
}
}
}
```
### Claude Code
```bash
claude mcp add timeforged \
--transport stdio \
--env TF_API_KEY=your-api-key \
-- npx -y timeforged-mcp
```
### Cursor / VS Code
Add to MCP settings:
```json
{
"mcpServers": {
"timeforged": {
"command": "npx",
"args": ["-y", "timeforged-mcp"],
"env": {
"TF_API_KEY": "your-api-key"
}
}
}
}
```
## Tools
| Tool | Description |
|---|---|
| `tf_status` | Check daemon status (version, user/event counts) |
| `tf_today` | Today's coding time with project & language breakdown |
| `tf_report` | Time summary for any date range with filters |
| `tf_sessions` | List coding sessions with durations |
| `tf_send` | Send a manual heartbeat/event |
### Examples
> "How much did I code today?"
> → AI calls `tf_today`
> "Show me last week's report for the timeforged project"
> → AI calls `tf_report` with `from`, `to`, `project`
> "List my sessions from yesterday"
> → AI calls `tf_sessions` with `from`, `to`
## Requirements
- Node.js >= 18
- Running [TimeForged](https://github.com/Blysspeak/timeforged) daemon
## License
[MIT](LICENSE)
TDQS
Scored across 10 tools
Each of the five functional purposes (status, today, report, sessions, send) is clearly distinct, but every one is duplicated by a second tool with identical behavior. The descriptions explicitly label the duplicates as aliases, so an agent can break ties, but there is still built-in redundancy across half the surface.
Inside each naming family the pattern is consistent (tf_status, tf_today, tf_report, tf_sessions, tf_send), but the server ships two parallel conventions—prefixed and bare—for the same operations. That doubles the namespace and makes it unclear which convention is canonical.
The advertised count of 10 is misleading: only five tools are distinct, and the other five are pure aliases. Effective scope (5 tools) is reasonable for a small time-tracking daemon, but half the surface earns no place.
Core read paths (status, today, range report, session listing) plus an ingest path are covered, but there is no way to start/stop a session explicitly, edit or delete a recorded session, or filter by project/tag. Agents hitting those lifecycle needs would dead-end.