UNPKG

taskmem-mcp

Version:

TaskMem MCP Client - AI memory and task management for Claude, Cursor, and Windsurf. Connects to TaskMem Cloud.

218 lines (167 loc) โ€ข 6.14 kB
# TaskMem MCP Client [![NPM Version](https://img.shields.io/npm/v/taskmem-mcp)](https://www.npmjs.com/package/taskmem-mcp) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub Stars](https://img.shields.io/github/stars/sage-hq/TaskMem)](https://github.com/sage-hq/TaskMem) > ๐Ÿง  The first MCP-native memory system for AI coding assistants. Never lose context again. TaskMem MCP Client provides persistent memory and intelligent task management for AI assistants through the Model Context Protocol (MCP). Connects to TaskMem Cloud for secure, scalable AI memory. Compatible with **Claude Desktop**, **Cursor**, **Windsurf**, and any MCP-enabled client. ## โœจ Features - **๐Ÿง  Persistent Memory**: Store and retrieve context across all conversations - **๐Ÿ” Semantic Search**: Find relevant memories using natural language queries - **๐Ÿ“‹ Task Management**: Break down complex tasks and track progress - **๐Ÿ”ง Project Organization**: Separate contexts for different projects - **โšก Fast & Reliable**: < 200ms response times with vector search - **๐Ÿ›ก๏ธ Type Safe**: Built with TypeScript for reliability ## ๐Ÿš€ Quick Start 1. **Get your API key** from [taskmem.com](https://taskmem.com) 2. **Install the client**: ```bash npm install -g taskmem-mcp ``` 3. **Configure your AI assistant** (see [Configuration](#configuration)) ## โš™๏ธ Configuration ### Claude Desktop Add to your `claude_desktop_config.json`: ```json { "mcpServers": { "taskmem": { "command": "npx", "args": ["taskmem-mcp"], "env": { "TASKMEM_API_KEY": "your_api_key_here" } } } } ``` ### Cursor IDE Add to your Cursor settings: ```json { "mcp.servers": { "taskmem": { "command": "npx", "args": ["taskmem-mcp"], "env": { "TASKMEM_API_KEY": "your_api_key_here" } } } } ``` ### Other MCP Clients TaskMem works with any MCP-compatible client. Use the command: ```bash npx taskmem-mcp ``` ## ๐Ÿ› ๏ธ Available Tools | Tool | Description | |------|-------------| | `store_memory` | Store important information for later retrieval | | `search_memory` | Find memories using semantic search | | `get_memories` | List memories with optional filtering | | `update_memory_importance` | Adjust memory priority levels | | `create_project` | Create new project contexts | | `set_current_project` | Switch between projects | | `get_current_project` | View current project info | | `list_projects` | List all available projects | | `get_project_context` | Get comprehensive project overview | | `create_task` | Create new tasks | | `list_tasks` | List tasks with filtering options | | `update_task_status` | Update task progress | | `suggest_next_task` | Get AI-powered task suggestions | | `break_down_task` | Split complex tasks into subtasks | ## ๐Ÿ’ก Usage Examples ### Basic Memory Storage ``` Human: Remember that we're using React 18 with TypeScript for this project Assistant: I'll store that information for you. โœ… Memory stored successfully Type: tech_stack | Importance: 7/10 ``` ### Semantic Search ``` Human: What did we decide about the React setup? Assistant: ๐Ÿ” Found 1 memory for "React setup": 1. [95.2% match] We're using React 18 with TypeScript for this project Type: tech_stack | Importance: 7/10 | Created: Dec 15, 2024 ``` ### Task Management ``` Human: Break down the authentication system implementation Assistant: Task broken down into 3 subtasks: - Research: Authentication system implementation - Implement: Authentication system implementation - Test: Authentication system implementation ``` ## ๐Ÿ”ง Environment Variables | Variable | Description | Required | |----------|-------------|----------| | `TASKMEM_API_KEY` | Your TaskMem API key from [taskmem.com](https://taskmem.com) | โœ… | | `TASKMEM_API_URL` | API endpoint (default: https://api.taskmem.com) | โŒ | ## ๐Ÿ” Pricing TaskMem offers a generous free tier to get started: - **Free Tier**: 1,000 memories/month, 500 tasks/month - **Pro Tier**: Unlimited memories and tasks, priority support - **Enterprise**: Custom limits, dedicated support, SSO Visit [taskmem.com/pricing](https://taskmem.com/pricing) for current pricing. ## ๐Ÿงช Development ```bash # Install dependencies npm install # Development mode with auto-reload npm run dev # Build for production npm run build # Run tests npm test ``` ## ๐Ÿ“– API Reference ### Tool Schema Each tool follows this structure: ```typescript { name: string; // Tool identifier description: string; // Human-readable description inputSchema: { // Zod schema for parameters type: "object"; properties: { ... }; required: string[]; }; } ``` ### Response Format All tools return this format: ```typescript { content: Array<{ type: "text"; text: string; // Formatted response with emojis and structure }>; } ``` ## ๐Ÿค Contributing We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details. ### Development Setup 1. Fork the repository 2. Create a feature branch: `git checkout -b feature/amazing-feature` 3. Make your changes with proper TypeScript types 4. Add tests for new functionality 5. Run tests: `npm test` 6. Commit changes: `git commit -m 'Add amazing feature'` 7. Push to branch: `git push origin feature/amazing-feature` 8. Open a Pull Request ## ๐Ÿ“ License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## ๐Ÿ›Ÿ Support - ๐Ÿ“– **Documentation**: [docs.taskmem.com](https://docs.taskmem.com) - ๐Ÿ’ฌ **Community**: [GitHub Discussions](https://github.com/sage-hq/TaskMem/discussions) - ๐Ÿ› **Bug Reports**: [GitHub Issues](https://github.com/sage-hq/TaskMem/issues) - ๐Ÿ“ง **Email**: support@taskmem.com ## ๐ŸŒŸ Star History <a href="https://github.com/sage-hq/TaskMem/stargazers"> <img src="https://api.star-history.com/svg?repos=sage-hq/TaskMem&type=Date" alt="Star History Chart"> </a> --- **Made with โค๏ธ by the TaskMem team** *Give your AI the memory it deserves.*