tasks-mcp-server

dianper/tasks-mcp-server

3.2

If you are the rightful owner of tasks-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a structured summary of a Model Context Protocol (MCP) server integrated with a .NET Minimal API for task management.

Tools
8
Resources
0
Prompts
0

Tasks MCP Server PoC

This is a PoC project demonstrating the integration of a .NET Minimal API for managing tasks with a Model Context Protocol (MCP) server. The MCP server can interact with the API using tools, allowing AI models or other agents to manipulate tasks in natural language.

Project Structure

  • /Tasks.Api - Minimal API project (CRUD + search + overdue tasks + notifications)
  • /Tasks.McpServer - MCP server using .NET and TasksApiClient

API Endpoints

MethodEndpointDescription
GET/api/tasksRetrieve all tasks
GET/api/tasks/{id}Retrieve a task by ID
POST/api/tasksCreate a new task
PUT/api/tasks/{id}Update an existing task
DELETE/api/tasks/{id}Delete a task
GET/api/tasks/search/{query}Search tasks by title or description
GET/api/tasks/overdueGet tasks that are overdue and not completed
GET/api/notificationsRetrieve notifications generated by task actions

MCP Tools

The MCP server exposes the following tools to interact with the Task API:

Tool NameDescription
ListTasksRetrieves all tasks from the system, including their title, description, due date, and completion status.
GetTaskRetrieves the details of a specific task by its unique ID.
CreateTaskCreates a new task with a title, optional description, and optional due date.
UpdateTaskUpdates an existing task by ID. You can modify the title, description, completion status, or due date.
DeleteTaskDeletes a task by its unique ID.
SearchTasksSearches for tasks that match a given query in their title or description.
GetOverdueTasksRetrieves all tasks that are overdue and not yet completed.
GetNotificationsRetrieves all notifications generated by task actions such as creation, updates, or deletion.

Each tool uses the TasksApiClient to communicate with the API.