Integrations
Cursor10x Memory System
A comprehensive memory system for Cursor using the Model Context Protocol (MCP).
🚀 ANNOUNCING CURSOR10X SYSTEM 🚀
Transform Your Development Process with AI-Powered Autonomous Systems
🔥 The Cursor10x Memory System is now part of the complete Cursor10x Platform! 🔥
Discover the full autonomous development ecosystem at GitHub featuring:
- 📋 Task Management System - Guided implementation with step-by-step tasks
- 🔄 Autonomous Memory - Context-aware AI that remembers your entire project
- 📊 Project Blueprints - Complete technical architectures created for your specifications
- 📁 File/Folder Architecture - Optimized project structure with best practices
- 📘 Implementation Guide - Comprehensive documentation for all files and components
- 📝 Detailed Tasks - Complete workflow from project initiation to completion
Generate complete project blueprints with file architecture, implementation guides, and full task sequences along with the entire Cursor10x system already implemented!
Overview
The Cursor10x Memory System creates a persistent memory layer for AI assistants (specifically Claude), enabling them to retain and recall:
- Recent messages and conversation history
- Active files currently being worked on
- Important project milestones and decisions
- Technical requirements and specifications
- Chronological sequences of actions and events (episodes)
This memory system bridges the gap between stateless AI interactions and continuous development workflows, allowing for more productive and contextually aware assistance.
System Architecture
The memory system is built on three core components:
- MCP Server: Implements the Model Context Protocol to register tools and process requests
- Memory Database: Uses Turso database for persistent storage across sessions
- Memory Subsystems: Organizes memory into specialized systems with distinct purposes
Memory Types
The system implements three complementary memory types:
- Short-Term Memory (STM)
- Stores recent messages and active files
- Provides immediate context for current interactions
- Automatically prioritizes by recency and importance
- Long-Term Memory (LTM)
- Stores permanent project information like milestones and decisions
- Maintains architectural and design context
- Preserves high-importance information indefinitely
- Episodic Memory
- Records chronological sequences of events
- Maintains causal relationships between actions
- Provides temporal context for project history
Features
- Persistent Context: Maintains conversation and project context across multiple sessions
- Importance-Based Storage: Prioritizes information based on configurable importance levels
- Multi-Dimensional Memory: Combines short-term, long-term, and episodic memory systems
- Comprehensive Retrieval: Provides unified context from all memory subsystems
- Health Monitoring: Includes built-in diagnostics and status reporting
- Banner Generation: Creates informative context banners for conversation starts
- Database Persistence: Stores all memory data in Turso database with automatic schema creation
Tool Documentation
System Tools
mcp_cursor10x_generateBanner
Generates a banner with memory system statistics and status information.
Parameters:
- None required
Returns:
- Object with memory system status and statistics
Example:
mcp_cursor10x_initConversation
Initializes a conversation by storing the user message, generating a banner, and retrieving context in one operation. This unified tool replaces the need for separate generateBanner, getComprehensiveContext, and storeUserMessage calls at the beginning of each conversation.
Parameters:
content
(string, required): Content of the user messageimportance
(string, optional): Importance level ("low", "medium", "high", "critical"), defaults to "low"metadata
(object, optional): Additional metadata for the message
Returns:
- Object with two sections:
display
: Contains the banner to be shown to the userinternal
: Contains the comprehensive context for the agent's use
Example:
mcp_cursor10x_endConversation
Ends a conversation by combining multiple operations in one call: storing the assistant's final message, recording a milestone for what was accomplished, and logging an episode in the episodic memory. This unified tool replaces the need for separate storeAssistantMessage, storeMilestone, and recordEpisode calls at the end of each conversation.
Parameters:
content
(string, required): Content of the assistant's final messagemilestone_title
(string, required): Title of the milestone to recordmilestone_description
(string, required): Description of what was accomplishedimportance
(string, optional): Importance level ("low", "medium", "high", "critical"), defaults to "medium"metadata
(object, optional): Additional metadata for all records
Returns:
- Object with status and results of each operation
Example:
mcp_cursor10x_checkHealth
Checks the health of the memory system and its database connection.
Parameters:
- None required
Returns:
- Object with health status and diagnostics
Example:
mcp_cursor10x_getMemoryStats
Retrieves detailed statistics about the memory system.
Parameters:
- None required
Returns:
- Object with comprehensive memory statistics
Example:
mcp_cursor10x_getComprehensiveContext
Retrieves a unified context from all memory subsystems, combining short-term, long-term, and episodic memory.
Parameters:
- None required
Returns:
- Object with consolidated context from all memory systems
Example:
Short-Term Memory Tools
mcp_cursor10x_storeUserMessage
Stores a user message in the short-term memory system.
Parameters:
content
(string, required): Content of the messageimportance
(string, optional): Importance level ("low", "medium", "high", "critical"), defaults to "low"metadata
(object, optional): Additional metadata for the message
Returns:
- Object with status and timestamp
Example:
mcp_cursor10x_storeAssistantMessage
Stores an assistant message in the short-term memory system.
Parameters:
content
(string, required): Content of the messageimportance
(string, optional): Importance level ("low", "medium", "high", "critical"), defaults to "low"metadata
(object, optional): Additional metadata for the message
Returns:
- Object with status and timestamp
Example:
mcp_cursor10x_trackActiveFile
Tracks an active file being accessed or modified by the user.
Parameters:
filename
(string, required): Path to the file being trackedaction
(string, required): Action performed on the file (open, edit, close, etc.)metadata
(object, optional): Additional metadata for the tracking event
Returns:
- Object with status, filename, action and timestamp
Example:
mcp_cursor10x_getRecentMessages
Retrieves recent messages from the short-term memory.
Parameters:
limit
(number, optional): Maximum number of messages to retrieve, defaults to 10importance
(string, optional): Filter by importance level
Returns:
- Object with status and array of messages
Example:
mcp_cursor10x_getActiveFiles
Retrieves active files from the short-term memory.
Parameters:
limit
(number, optional): Maximum number of files to retrieve, defaults to 10
Returns:
- Object with status and array of active files
Example:
Long-Term Memory Tools
mcp_cursor10x_storeMilestone
Stores a project milestone in the long-term memory.
Parameters:
title
(string, required): Title of the milestonedescription
(string, required): Description of the milestoneimportance
(string, optional): Importance level, defaults to "medium"metadata
(object, optional): Additional metadata for the milestone
Returns:
- Object with status, title, and timestamp
Example:
mcp_cursor10x_storeDecision
Stores a project decision in the long-term memory.
Parameters:
title
(string, required): Title of the decisioncontent
(string, required): Content of the decisionreasoning
(string, optional): Reasoning behind the decisionimportance
(string, optional): Importance level, defaults to "medium"metadata
(object, optional): Additional metadata for the decision
Returns:
- Object with status, title, and timestamp
Example:
mcp_cursor10x_storeRequirement
Stores a project requirement in the long-term memory.
Parameters:
title
(string, required): Title of the requirementcontent
(string, required): Content of the requirementimportance
(string, optional): Importance level, defaults to "medium"metadata
(object, optional): Additional metadata for the requirement
Returns:
- Object with status, title, and timestamp
Example:
Episodic Memory Tools
mcp_cursor10x_recordEpisode
Records an episode (action) in the episodic memory.
Parameters:
actor
(string, required): Actor performing the action (user, assistant, system)action
(string, required): Type of action performedcontent
(string, required): Content or details of the actionimportance
(string, optional): Importance level, defaults to "low"context
(string, optional): Context for the episode
Returns:
- Object with status, actor, action, and timestamp
Example:
mcp_cursor10x_getRecentEpisodes
Retrieves recent episodes from the episodic memory.
Parameters:
limit
(number, optional): Maximum number of episodes to retrieve, defaults to 10context
(string, optional): Filter by context
Returns:
- Object with status and array of episodes
Example:
EXAMPLE CUSTOM INSTRUCTIONS
Installation
Prerequisites
- Node.js 18 or higher
- npm or yarn package manager
- Turso database account or SQLite for local development
Setting Up Turso Database
The memory system uses Turso (LibSQL) for database storage. To set up your Turso database:
- Create a Turso accountSign up at Turso.tech if you don't have an account.
- Install the Turso CLI
- Login to Turso
- Create a database
- Get your database URLCopy
- Create an authentication tokenCopy
Save both the database URL and authentication token for use in the configuration.
Step-by-Step Installation
- Install the package from npmCopy
- Create the Cursor MCP configurationCreate or edit the
.cursor/mcp.json
file in your home directory:Add the following configuration to the file:CopyMake sure to use your actual Turso credentials.Copy - Restart CursorAfter saving the configuration, restart Cursor to load the memory system.
- Verify InstallationTest the installation by asking Claude to run the
mcp_cursor10x_generateBanner
tool.
For Developers
If you want to work on cursor10x-mcp development:
- Clone the repositoryCopy
- Install dependencies
- Create a .env.local file with your Turso credentialsCopy
- Run in development mode
- Build and publish to npmCopy
Configuration
Environment Variables
The memory system can be configured using the following environment variables:
TURSO_DATABASE_URL
: URL for the Turso database connection (required)TURSO_AUTH_TOKEN
: Authentication token for Turso database access (required)MCP_LOG_LEVEL
: Logging level ("error", "warn", "info", "debug"), defaults to "info"MCP_PORT
: Port for the MCP server if using HTTP transport, defaults to 3000
Configuration in Cursor
Add the memory system configuration to your .cursor/mcp.json
file:
Make sure to:
- Replace
/path/to/your/cursor10x-mcp/index.js
with the actual path to your index.js file - Replace
your-turso-database-url
with your Turso database URL - Replace
your-turso-auth-token
with your Turso authentication token - Create the
.cursor
directory in your home directory if it doesn't exist yet
You can verify the configuration by checking if Claude can access the memory tools after restarting Cursor.
Database Schema
The memory system automatically creates and maintains the following database tables:
messages
: Stores user and assistant messagesid
: Unique identifiertimestamp
: Creation timestamprole
: Message role (user/assistant)content
: Message contentimportance
: Importance levelarchived
: Whether the message is archived
active_files
: Tracks file activityid
: Unique identifierfilename
: Path to the fileaction
: Last action performedlast_accessed
: Timestamp of last access
milestones
: Records project milestonesid
: Unique identifiertitle
: Milestone titledescription
: Detailed descriptiontimestamp
: Creation timestampimportance
: Importance level
decisions
: Stores project decisionsid
: Unique identifiertitle
: Decision titlecontent
: Decision contentreasoning
: Decision reasoningtimestamp
: Creation timestampimportance
: Importance level
requirements
: Maintains project requirementsid
: Unique identifiertitle
: Requirement titlecontent
: Requirement contenttimestamp
: Creation timestampimportance
: Importance level
episodes
: Chronicles actions and eventsid
: Unique identifiertimestamp
: Creation timestampactor
: Actor performing the actionaction
: Type of actioncontent
: Action detailsimportance
: Importance levelcontext
: Action context
Example Workflows
Optimized Conversation Start
Starting a New Session (Alternative Method)
Tracking User Activity
Troubleshooting
Common Issues
- Database Connection Problems
- Verify your Turso database URL and authentication token are correct
- Check network connectivity to the Turso service
- Verify firewall settings allow the connection
- Missing Data
- Check that data was stored with appropriate importance level
- Verify the retrieval query parameters (limit, filters)
- Check the database health with
mcp_cursor10x_checkHealth()
- Performance Issues
- Monitor memory statistics with
mcp_cursor10x_getMemoryStats()
- Consider archiving old data if database grows too large
- Optimize retrieval by using more specific filters
- Monitor memory statistics with
Diagnostic Steps
- Check system health:Copy
- Verify memory statistics:Copy
- Generate a status banner:Copy
Importance Levels
When storing items in memory, use appropriate importance levels:
- low: General information, routine operations, everyday conversations
- medium: Useful context, standard work items, regular features
- high: Critical decisions, major features, important architecture elements
- critical: Core architecture, security concerns, data integrity issues
License
MIT
Available Tools
Short-Term Memory Tools
mcp_cursor10x_initConversation
: Initializes a conversation by storing the user message, generating a banner, and retrieving context in one operation- Parameters:
content
(required): Content of the user messageimportance
(optional, default: "low"): Importance level (low, medium, high, critical)metadata
(optional): Additional metadata for the message
- Returns: An object containing the banner and context
- Parameters:
mcp_cursor10x_storeUserMessage
: Stores a user message in the short-term memory- Parameters:
content
(required): Content of the messageimportance
(optional, default: "low"): Importance level (low, medium, high, critical)metadata
(optional): Additional metadata for the message
- Returns: The stored message ID
- Parameters:
System Tools
mcp_cursor10x_endConversation
: Finalizes a conversation by storing the assistant's final message, recording a milestone, and logging an episode in episodic memory- Parameters:
content
(required): Content of the assistant's final messagemilestone_title
(required): Title for the completion milestonemilestone_description
(required): Description of what was accomplishedimportance
(optional, default: "medium"): Importance level (low, medium, high, critical)metadata
(optional): Additional metadata for the operations
- Returns: Object with the status and results of each operation
- Parameters:
mcp_cursor10x_generateBanner
: Generates a banner containing memory system statistics and status- Parameters: None
- Returns: A formatted banner with memory system information
mcp_cursor10x_checkHealth
: Checks the health of the memory system and its database- Parameters: None
- Returns: Health status information
mcp_cursor10x_getMemoryStats
: Retrieves statistics about the memory system- Parameters: None
- Returns: Statistics about messages, active files, and other memory components
You must be authenticated.
Tools
The Cursor10x Memory System creates a persistent memory layer for AI assistants (specifically Claude), enabling them to retain and recall short-term, long-term and episodic memory on autonomously.
- 🚀 ANNOUNCING CURSOR10X SYSTEM 🚀
- Transform Your Development Process with AI-Powered Autonomous Systems
- 🔥 The Cursor10x Memory System is now part of the complete Cursor10x Platform! 🔥
- Overview
- System Architecture
- Features
- Tool Documentation
- EXAMPLE CUSTOM INSTRUCTIONS
- Installation
- Configuration
- Database Schema
- Example Workflows
- Troubleshooting
- Importance Levels
- License
- Available Tools