Integrations
Manages environment variables for the MCP server, allowing secure storage of API keys and configuration settings for the mem0 cloud service.
Provides version control capabilities for project management, referenced in the configuration setup for tracking project changes.
Supports structured data formatting for project management information using JavaScript object notation, enhancing searchability and organization of project data.
mem0 MCP Server for Project Management
Version: 0.3.2
mem0 MCP Server bridges MCP Host applications and the mem0 cloud service, enabling structured project memory management and semantic search for project-related information.
Release Notes
v0.3.1 and v0.3.2
- Fix: "add project memory" tool to works properly by adjusting message format to mem0 API.
- Added version specification to the MCP Host configuration example. (for caching troubleshoot)
v0.3.0
- Fix: as mem0 cloud service has changed the way of handling data, the way of handling data has been changed.
- Change from JavaScript object-based templates to TOML-based templates and guide, which is more efficient for data extraction by mem0 cloud service.
- Added logging functionality (check MCP Host Configuration section for details).
v0.2.0
- Switched from SSE-based to stdio-based invocation for better compatibility with MCP Hosts
- Added support for pipx-based installation and execution
- Simplified deployment via
pyproject.toml
script entrypoint
Features
- Project memory storage and retrieval
- Semantic search for project information
- Structured project management data handling
- Fully tested stdio-based MCP Server tools
- Flexible logging: stderr by default, file output via
--logfile
- Smart CLI invocation via pipx-compatible interface
MCP Host Configuration
When running this MCP Server, you must explicitly specify the log output mode and (if enabled) the absolute log file path via command-line arguments.
--log=off
: Disable all logging (no logs are written)--log=on --logfile=/absolute/path/to/logfile.log
: Enable logging and write logs to the specified absolute file path- Both arguments are required when logging is enabled. The server will exit with an error if either is missing, the path is not absolute, or if invalid values are given.
Example: Logging Disabled
Example: Logging Enabled (absolute log file path required)
Note:
- When logging is enabled, logs are written only to the specified absolute file path. Relative paths or omission of
--logfile
will cause an error.- When logging is disabled, no logs are output.
- If the required arguments are missing or invalid, the server will not start and will print an error message.
- The log file must be accessible and writable by the MCP Server process.
- If you have trouble to run this server, it may be due to caching older version of mem0-mcp-for-pm. Please try to run it with the latest version (set
x.y.z
to the latest version) of mem0-mcp-for-pm by the below setting.
Tools
add_project_memory
get_all_project_memories
search_project_memories
update_project_memory
delete_project_memory
delete_all_project_memories
All tools are available via stdio-based MCP protocol.
Logging
- Default: stderr
- Optional:
--logfile /path/to/logfile.log
License
See LICENSE file.
Technical details
The uniqueness of this forked is the structured format between MCP Host and mem0 is expected in coding format like TOML. Make sure you set the custom instruction to be able to handle better.
Custom instruction
In order to make mem0 working as fitting to project management purpose, this forked has the following instruction for AI.
For mem0
- Check the source code.
For MCP Host
To register project information in mem0, always use the TOML format for all entries.
Follow these guidelines to ensure optimal AI extraction, searchability, and project management usability:
1. Use TOML as the Base Format
- All project memory entries must be provided as TOML-formatted strings.
- Always include at least the following top-level fields:
category
(e.g., "Task Management", "Project Status", etc.)project
(project name)timestamp
(ISO 8601 format, e.g., "2025-04-29T16:00:00+09:00")
2. Recommended Templates
Below are TOML templates for common project management use cases.
Adapt these as needed, but keep the structure and metadata consistent for better search and extraction.
Project Status Example
Task Management Example
3. Context Management with run_id
- Use the
run_id
parameter to logically group related entries. - Recommended format:
project:project-name:category:subcategory
- Example:Copy
4. Metadata Usage
- Always add a
[metadata]
TOML table to enhance search and filtering. - Example:Copy
5. Information Lifecycle
- Use
immutable = true
to prevent updates. - Use
expiration_date = "YYYY-MM-DD"
to set expiry.
6. Best Practices
- Be consistent with field names and structure.
- Always include
project
andtimestamp
. - Use clear, descriptive tags and metadata.
- Leverage TOML comments for human/AI hints if needed.
By following these TOML-based guidelines, you will maximize the effectiveness of mem0’s project memory extraction and management.
For more advanced use cases, refer to the source code and server-side custom instructions.
- The following is just sample, find the best by yourself !!
mem0 Guide for Effective Project Memory (Enhanced)
This guide outlines strategies and templates for effectively managing project information using mem0. The aim is to improve searchability and reusability of project data through structured templates and metadata management.
Information Structure and Templates
mem0 can effectively manage the following types of information. Using structured templates improves searchability and reusability. Note that the templates provided are examples and should be adapted to fit specific project needs.
1. Project Status Management
Template:
2. Task Management
Template:
3. Meeting Summary
Template:
Effective Information Management Techniques
1. Context Management (run_id)
Using mem0's run_id
parameter, you can logically group related information. This helps maintain specific conversation flows or project contexts.
Recommended Format:
Usage Example:
2. Effective Use of Metadata
Using metadata can enhance the searchability of information. We recommend using the following schema:
3. Information Lifecycle Management
Using the immutable
and expiration_date
parameters, you can manage the lifecycle of information.
Usage Example:
Practical Usage Patterns
1. Sprint Management Example
2. Risk Management Example
Important Points
- Standard Metadata: Always include the project name and timestamp.
- Data Format: Use TOML for all entries, and include a
[metadata]
table. - Context Management: Use
run_id
hierarchically to maintain information relevance. - Search Efficiency: Consistent metadata and structure improve search efficiency.
4. Implementation Strategy
To implement the above improvements, we recommend the following steps:
- Enhance the
add_project_memory
Method:- Update documentation strings: Improve usage examples and parameter descriptions.
- Error handling: Provide more detailed error information.
- Response format: Explicitly state the parameters used.
- Update Custom Instructions:
- Enrich template examples.
- Clarify recommended usage of
run_id
(introduce hierarchical structure). - Standardize metadata schema.
- Provide practical usage examples.
These improvements will enhance the usability and efficiency of information management while maintaining compatibility with existing APIs.
5. Summary
The proposed improvements provide value in the following ways while maintaining compatibility with existing mem0 MCP server functions:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A bridge between MCP Host applications and mem0 cloud service, specialized for project management with capabilities to store, retrieve, and search project information within a structured format.
Related MCP Servers
- -securityFlicense-qualityAn MCP server that allows Claude and other LLMs to manage persistent memories across conversations through text file storage, enabling commands to add, search, delete and list memory entries.Last updated -2TypeScript
- AsecurityFlicenseAqualityAn MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.Last updated -3925
Mem0 MCP Serverofficial
-securityFlicense-qualityAn MCP server that integrates with mem0.ai to help users store, retrieve, and search coding preferences for more consistent programming practices.Last updated -120Python- -securityAlicense-qualityAn MCP server that allows users to upload projects (single files or directories) to the Yourware platform, enabling easy deployment and showcasing of projects.Last updated -5PythonMIT License