Cover image
Try Now
2025-04-14

MCP服务器实现Q CLI的内存功能

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Q-CLI MCP Memory Server

A Contextual Memory System for Developer Tools

MCP Memory Server is a powerful contextual memory system designed specifically for CLI tools supporting developers and cloud engineers. It provides intelligent memory capabilities that persist across sessions, helping AI assistants remember critical information about users, their preferences, code, and architecture decisions.

Overview

This MCP-based memory system allows AI assistants to build a rich understanding of users and their work over time. As users interact with the tool, it intelligently remembers key details from previous sessions, including:

  • Personal preferences and information
  • Preferred programming languages and frameworks
  • AWS infrastructure patterns and configurations
  • Code formatting preferences
  • Previous errors and their solutions
  • Project-specific requirements

The result is a progressively more personalized experience that adapts to individual workflows, eliminating the need to repeatedly explain technical context.

Right now it only supports a local memory DB through SQLlite. the goal is to also allow a cloud-based memory.

Installation

# Clone the repository
git clone https://github.com/yourusername/mcp-memory-server.git

# Navigate to the directory
cd mcp-memory-server

# Install dependencies
pip install -r requirements.txt

# Run the server
python3 mcp_memory_server.py

Configure MCP Server

Add the following configuration to your mcp.json file:

{
    "mcp-server-memories": {
        "command": "python",
        "args": [
            "PATH_TO_YOUR_FILE/memories_server.py"
        ],
        "env": {}
    }
}
Note: Replace PATH_TO_YOUR_FILE with the actual path to your memories_server.py file.

Features

🧠 Intelligent Memory Storage

The system automatically identifies and stores important information from conversations, categorizing it appropriately with tags like:

  • #code: Programming languages, frameworks, coding patterns
  • #architecture: System designs, component relationships, infrastructure decisions
  • #personal: User preferences, background information
  • #project: Project details, requirements, deadlines

🔍 Contextual Retrieval

Memories can be retrieved through:

  • Exact key lookup
  • Keyword search
  • Context-based inference

👥 Multi-User Support

The system intelligently:

  • Identifies users from conversation context
  • Maintains separate memory spaces for different users
  • Allows potential for shared project contexts across users

🔄 Progressive Learning

Memory builds over time, creating a continuously improving understanding of the user's:

  • Technical preferences
  • Project requirements
  • Common workflows
  • Recurring challenges

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • paulwing
  • 使用MCP服务创建的测试存储库

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    3 (6)
    Avatar
    user_RVKVC7VR
    2025-04-23

    QCLI-memories-mcp by Gengisb is an exceptional application! It offers a seamless user experience with its intuitive interface and comprehensive features. The memories feature is particularly impressive, allowing users to easily store and recall important moments. Highly recommend it!

    Avatar
    user_EwmlZtOm
    2025-04-23

    I recently tried out the QCLI-memories-mcp by gengisb and I'm absolutely impressed! The user interface is seamless and the functionalities are top-notch. It has made data handling and memory management so much easier for me. Definitely a must-have for anyone looking for efficient MCP applications. Highly recommended!

    Avatar
    user_UVXSUyGp
    2025-04-23

    As a loyal user of QCLI-memories-mcp, I must say this product is exceptional. gengisb's creation offers a seamless and efficient way to manage and retrieve memories. The user-friendly interface and reliable performance make it a standout application. Highly recommend to anyone looking for a hassle-free memory management tool!

    Avatar
    user_SAaER3Y1
    2025-04-23

    As a dedicated user of the QCLI-memories-mcp by gengisb, I must say this product is a game-changer. Its seamless integration and user-friendly interface have greatly enhanced my workflow. Additionally, the continuous updates and support provided are top-notch. Highly recommended for anyone looking to optimize their mcp experience!

    Avatar
    user_0PdHW3B7
    2025-04-23

    QCLI-memories-mcp by gengisb is an outstanding tool for memory management. It provides seamless integration and user-friendly features that substantially improve productivity. The intuitive interface and well-designed functionalities make it a must-have for anyone looking to optimize their memory usage efficiently. Highly recommend!

    Avatar
    user_TxEzEGw9
    2025-04-23

    I recently started using QCLI-memories-mcp by gengisb and I'm genuinely impressed. This tool has streamlined my workflow significantly. The user interface is intuitive, making it easy to navigate through my tasks. It offers robust functionalities that are absent in similar products. I highly recommend it to anyone looking to enhance their productivity.