Skip to main content
Glama
Task Manager MCP Server

Task Manager MCP Server

by TzineF

Task Manager MCP Server

Task Manager is a Python application that exposes task management operations through the Model Context Protocol (MCP). A FastMCP server stores tasks in SQLite, and a command-line agent uses Google Gemini to create, list, and update tasks from natural-language requests. Any MCP client that supports Streamable HTTP can connect directly to the server.

Prerequisites

  • Python 3.14 or later

  • uv for installing the project's locked dependencies

  • A Google Gemini API key for the command-line agent

Related MCP server: MCP Project Manager

Installation

From the repository root, install the dependencies:

uv sync --locked

To use the command-line agent, create a .env file in the repository root and set your API key:

GOOGLE_API_KEY=your_google_api_key_here

The server can run without a Gemini API key. Keep .env out of version control.

Running the application

  1. From the repository root, start the MCP server:

    uv run --locked python -m app.server

    The endpoint is http://127.0.0.1:8000/mcp. The server initializes the SQLite schema in data/tasks.db at startup. If the data/ directory is missing, create it before starting the server.

  2. In a second terminal, from the repository root, start the interactive agent:

    uv run --locked python -m app.agent

    The agent connects to the server, discovers the available tools, and uses gemini-2.5-flash to handle requests. Enter exit or quit to end the session.

Example prompts:

  • Create a high-priority task titled Review the release checklist.

  • List all tasks.

  • Mark Review the release checklist as done.

Tasks persist across restarts in SQLite. The agent keeps conversation history in memory for the current session, allowing follow-up requests about earlier tasks.

MCP tools

Tool

Inputs

Result

create_task

Required title. Optional priority (defaults to medium) and description (defaults to an empty string).

Creates a task with a generated UUID and an initial status of todo. Returns the task record.

list_tasks

None.

Returns all stored task records.

update_task_status

Required task_id and status. Accepted statuses are todo, in_progress, and done.

Returns the task ID and updated status on success, or an error if the task ID is unknown.

Project structure

Path

Purpose

app/server.py

Defines the MCP tools and starts the HTTP server.

app/database.py

Initializes the SQLite schema and handles task persistence.

app/agent.py

Runs the interactive Gemini agent through LangChain's MCPAdapter.

app/client.py

Contains an alternate client that currently fails to import MultiServerMCPClient from langchain.mcp with the installed dependencies.

data/tasks.db

SQLite task database.

pyproject.toml, uv.lock

Project metadata, dependency declarations, and locked dependency versions.

Troubleshooting

Symptom

Check

The agent cannot connect to the MCP server.

Confirm that app.server is running and that http://127.0.0.1:8000/mcp is the configured endpoint.

The agent reports that GOOGLE_API_KEY is missing.

Check the key name and value in the repository's .env file, then restart the agent.

SQLite reports unable to open database file.

Confirm that the repository's data/ directory exists and is writable.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers