Used as the runtime environment for the MCP server, providing fast JavaScript/TypeScript execution for the Sunsama integration.
Supports environment variable configuration for authentication and server settings through .env files.
Used for version control and development workflow of the MCP-Sunsama project.
Source code repository hosting for the MCP-Sunsama project with issue tracking capabilities.
Sunsama MCP Server
A Model Context Protocol (MCP) server that provides comprehensive task management capabilities through the Sunsama API. This server enables AI assistants to access Sunsama tasks, create new tasks, mark tasks complete, and manage your productivity workflow.
Features
Task Management
- Create Tasks - Create new tasks with notes, time estimates, due dates, and stream assignments
- Read Tasks - Get tasks by day with completion filtering, access backlog tasks
- Update Tasks - Mark tasks as complete with custom timestamps
- Delete Tasks - Permanently remove tasks from your workspace
User & Stream Operations
- User Information - Access user profile, timezone, and group details
- Stream Management - Get streams/channels for project organization
- Dual Transport - Support for both stdio and HTTP stream MCP transports
Installation
Prerequisites
- Bun runtime (for development)
- Sunsama account with API access
Using NPX (Recommended)
No installation required! Use directly with:
Development Setup
- Clone the repository:
- Install dependencies:
- Set up your environment variables:
Environment variables:
SUNSAMA_EMAIL
- Your Sunsama account email (required for stdio transport)SUNSAMA_PASSWORD
- Your Sunsama account password (required for stdio transport)SUNSAMA_SESSION_TOKEN
- Alternative session token authentication (optional)PORT
- Server port for HTTP transport (default: 3002)MCP_TRANSPORT
- Transport type:stdio
orhttpStream
(default: stdio)
Usage
Running the Server
Stdio Transport (default):
HTTP Stream Transport:
Claude Desktop Configuration
Add this configuration to your Claude Desktop MCP settings:
API Tools
Task Management
create-task
- Create new tasks with optional propertiesget-tasks-by-day
- Get tasks for a specific day with completion filteringget-tasks-backlog
- Get backlog tasksupdate-task-complete
- Mark tasks as completedelete-task
- Delete tasks permanently
User & Stream Operations
get-user
- Get current user informationget-streams
- Get streams/channels for project organization
Development
Running in Development
Testing with MCP Inspector
Then connect the MCP Inspector to test the tools interactively.
Build
Authentication
Stdio Transport: Requires SUNSAMA_EMAIL
and SUNSAMA_PASSWORD
environment variables.
HTTP Transport: The Sunsama credentials are passed in the HTTP request. No environment variables needed.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Sunsama API Documentation
- sunsama-api Library - The underlying API client
- Model Context Protocol Documentation
- Issue Tracker
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables AI assistants to manage tasks in Sunsama, including creating tasks, reading daily and backlog tasks, marking tasks complete, and organizing projects through streams.
Related MCP Servers
- AsecurityAlicenseAqualityProvides API access to a locally-hosted task management system with features for creating, updating, and organizing tasks, including support for urgency levels, effort estimates, subtasks, and bi-directional sync with Obsidian markdown files.Last updated -123PythonMIT License
- -securityFlicense-qualityProvides tools for AI assistants to interact with the Dida365 (TickTick) task management API, allowing management of tasks and projects after user authorization.Last updated -15JavaScript
- -securityAlicense-qualityThis server implementation allows AI assistants to interact with Asana's API, enabling users to manage tasks, projects, workspaces, and comments through natural language requests.Last updated -408TypeScriptMIT License
- -securityAlicense-qualityEnables AI agents to break down complex tasks into manageable pieces using a structured JSON format with task tracking, context preservation, and progress monitoring capabilities.Last updated -122JavaScriptMIT License