Productivity Tracker MCP Server

Productivity Tracker MCP Server

Enables natural language task management including logging, updating, and summarizing productivity activities across multiple categories using a local SQLite database. It allows users to manage workflows and generate time-based summaries through standardized Model Context Protocol tools.

Category
Visit Server

README

LLM-Driven Productivity Tracker with MCP Integration

An intelligent task management system powered by LangChain agents and Model Context Protocol (MCP), enabling natural language interaction for productivity tracking.

Features

  • Multi-step AI Agent: Autonomous decision-making with LangChain for complex task workflows
  • Natural Language Interface: Interact with your tasks using conversational AI
  • MCP Server Integration: Exposes productivity tools via standardized protocol
  • Claude Desktop Compatible: Works seamlessly as an MCP client
  • Comprehensive Task Management:
    • Log tasks with 8 categories (work, health, learning, personal, finance, social, hobby, self_care)
    • 4 status types (todo, started, completed, blocked)
    • Update and remove tasks by ID or name
    • Time-based summaries (daily, weekly, monthly)
  • Local LLM Support: Runs on Ollama with llama3.2 (no API costs)

Technologies

  • Python 3.12
  • LangChain (Agent framework)
  • Ollama (llama3.2)
  • Model Context Protocol (MCP)
  • SQLite (Database)
  • Claude Desktop API
  • JSON-RPC

Prerequisites

  • Python 3.12+
  • Ollama installed with llama3.2 model
  • Claude Desktop (optional, for MCP integration)

Installation

  1. Clone the repository: git clone cd ProductivityTracker

  2. Install dependencies: pip install -r requirements.txt

  3. Install Ollama and pull llama3.2: ollama pull llama3.2

  4. Initialize the database: python -c "import database; database.init_db()"

Usage

Option 1: Local Agent (agent.py)

Run the agent locally with your own questions:

python agent.py

Modify the question variable in agent.py to test different queries.

Option 2: MCP Server with Claude Desktop

  1. Configure Claude Desktop by editing %APPDATA%\Claude\claude_desktop_config.json:

{ "mcpServers": { "productivity-tracker": { "command": "C:\path\to\python.exe", "args": ["C:\path\to\ProductivityTracker\mcp_server.py"] } } }

  1. Restart Claude Desktop

  2. Interact naturally:

    • "Log a task to review code for work as started"
    • "Show me today's summary"
    • "Update test task to completed"

Project Structure

ProductivityTracker/ ├── agent.py # Local LangChain agent with multi-step reasoning ├── mcp_server.py # MCP server exposing tools via protocol ├── tools.py # Tool definitions (log_task, get_summary, etc.) ├── database.py # SQLite operations with error handling ├── requirements.txt # Python dependencies └── productivity_tracker.db # SQLite database (auto-created)

Example Interactions

Log a task: "Log a morning workout for health category as completed"

Get summary: "How was my week?"

Update task: "Mark the code review task as completed"

Remove task: "Delete the duplicate dinner task"

Architecture

  • Agent Pattern: AI decides which tools to use based on user intent
  • Tool Pattern: 5 custom tools for task management operations
  • MCP Integration: Standardized protocol for external agent communication
  • Iterative Loop: Multi-step reasoning with context maintenance

Error Handling

  • Database connection errors handled gracefully
  • Invalid category/status inputs caught with helpful messages

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured