Cover image
Try Now
2025-03-19

带有自定义内存位置的简单内存MCP服务器

3 years

Works with Finder

1

Github Watches

3

Github Forks

2

Github Stars

Memory Custom

smithery badge

This project adds new features to the Memory server offered by the MCP team. It allows for the creation and management of a knowledge graph that captures interactions via a language model (LLM).

Memory Custom MCP server

New Features

1. Custom Memory Paths

  • Users can now specify different memory file paths for various projects.
  • Why?: This feature enhances organization and management of memory data, allowing for project-specific memory storage.

2. Timestamping

  • The server now generates timestamps for interactions.
  • Why?: Timestamps enable tracking of when each memory was created or modified, providing better context and history for the stored data.

Getting Started

Prerequisites

  • Node.js (version 16 or higher)

Installing via Smithery

To install Knowledge Graph Memory Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @BRO3886/mcp-memory-custom --client claude

Installation

  1. Clone the repository:

    git clone git@github.com:BRO3886/mcp-memory-custom.git
    cd mcp-memory-custom
    
  2. Install the dependencies:

    npm install
    

Configuration

Before running the server, you can set the MEMORY_FILE_PATH environment variable to specify the path for the memory file. If not set, the server will default to using memory.json in the same directory as the script.

Running the Server

Updating the mcp server json file

Add this to your claude_desktop_config.json / .cursor/mcp.json file:

{
  "mcpServers": {
    "memory": {
      "command": "node",
      "args": ["/path/to/mcp-memory-custom/dist/index.js"]
    }
  }
}

System Prompt changes:

Follow these steps for each interaction:
1. The memoryFilePath for this project is /path/to/memory/project_name.json - always pass this path to the memory file operations (when creating entities, relations, or retrieving memory etc.)
2. User Identification:
   - You should assume that you are interacting with default_user
   - If you have not identified default_user, proactively try to do so.

3. Memory Retrieval:
   - Always begin your chat by saying only "Remembering..." and retrieve all relevant information from your knowledge graph
   - Always refer to your knowledge graph as your "memory"

4. Memory
   - While conversing with the user, be attentive to any new information that falls into these categories:
     a) Basic Identity (age, gender, location, job title, education level, etc.)
     b) Behaviors (interests, habits, etc.)
     c) Preferences (communication style, preferred language, etc.)
     d) Goals (goals, targets, aspirations, etc.)
     e) Relationships (personal and professional relationships up to 3 degrees of separation)

5. Memory Update:
   - If any new information was gathered during the interaction, update your memory as follows:
     a) Create entities for recurring organizations, people, and significant events, add timestamps to wherever required. You can get current timestamp via get_current_time
     b) Connect them to the current entities using relations
     c) Store facts about them as observations, add timestamps to observations via get_current_time


IMPORTANT: Provide a helpful and engaging response, asking relevant questions to encourage user engagement. Update the memory during the interaction, if required, based on the new information gathered (point 4).

Running the Server Locally

To start the Knowledge Graph Memory Server, run:

npm run build
node dist/index.js

The server will listen for requests via standard input/output.

API Endpoints

The server exposes several tools that can be called with specific parameters:

  • Get Current Time
  • Set Memory File Path
  • Create Entities
  • Create Relations
  • Add Observations
  • Delete Entities
  • Delete Observations
  • Delete Relations
  • Read Graph
  • Search Nodes
  • Open Nodes

Acknowledgments

  • Inspired by the Memory server from Anthropic.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

    Reviews

    3 (1)
    Avatar
    user_WeeYtPc0
    2025-04-15

    Remote MCP Server on Cloudflare by kamilzafar is simply a game-changer! Fast, reliable, and incredibly easy to set up, it offers unparalleled performance and security. The seamless integration with Cloudflare ensures minimal downtime and enhanced protection against threats. I highly recommend it for anyone looking for a robust remote management solution. Check it out here: https://mcp.so/server/remote-mcp-server/kamilzafar.