Cover image
Try Now
2025-04-06

一键启动 memory mcp ,对外提供sse服务

3 years

Works with Finder

1

Github Watches

0

Github Forks

2

Github Stars

Memory MCP 服务器

基于 MCP Servers - memory 改造的知识图谱管理服务器

功能特点

  • 支持多种启动方式:交互式、命令行、JSON配置
  • 生成符合知识图谱知识背景的短故事(实验)(查看 mcp_client.py 中的 handle_sampling_message 函数)
  • 完整的知识图谱管理功能
  • 支持MCP协议:tools、resource、sampling
  • 自动数据持久化
  • 灵活的配置选项

快速开始

启动方式

  1. 交互式启动 直接运行程序(双击),按提示输入配置:
  • 程序会提示输入端口号(默认8080)
  • 程序会提示输入内存文件路径(默认为程序所在目录的memory.json)

2. 命令行传参

启动服务

mcp_server_memory.exe --port 8080 --memory-path ./memory.json

3. JSON配置启动

通过管道传入JSON配置:

echo '{"jsonrpc": "2.0","method": "start","id": 2,"params":{"port": 8080, "memory_path": "./memory.json"}}' | ./mcp_server_memory.exe

获取帮助信息

echo '{"jsonrpc": "2.0","method": "help","id": 1}' | mcp_server_memory.exe

配置项

参数 说明 默认值
port 服务器监听端口 8080
memory_path 数据存储文件路径 ./memory.json

API 接口

实体操作

  • create_entities: 创建实体
  • delete_entities: 删除实体
  • search_nodes: 搜索节点
  • open_nodes: 打开指定节点

关系操作

  • create_relations: 创建关系
  • delete_relations: 删除关系

观察操作

  • add_observations: 添加观察
  • delete_observations: 删除观察

图谱操作

  • read_graph: 读取完整图谱

Resource 接口

  • memory://short-story/all: 获取所有基于知识图谱生成的短故事
  • memory://short-story/{topic}: 获取指定主题的短故事
    • topic: 故事主题关键词,例如 "科技"、"历史" 等

数据持久化

  • 数据以JSON行格式存储
  • 自动保存最新配置到 config.json
  • 支持相对/绝对路径
  • 自动创建不存在的目录

注意事项

  • Windows系统推荐使用 \\\ 作为路径分隔符
  • 确保程序对存储路径有读写权限
  • 首次运行自动创建存储文件

相关链接


Starting MCP Memory Server

by Mixlab

相关推荐

  • 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.

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

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • jae-jae
  • MCP server for fetch web page content using Playwright headless browser.

  • HiveNexus
  • An AI chat bot for small and medium-sized teams, supporting models such as Deepseek, Open AI, Claude, and Gemini. 专为中小团队设计的 AI 聊天应用,支持 Deepseek、Open AI、Claude、Gemini 等模型。

  • ravitemer
  • A powerful Neovim plugin for managing MCP (Model Context Protocol) servers

  • patruff
  • Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools

    Reviews

    2 (1)
    Avatar
    user_5Vj8B8GT
    2025-04-16

    As a dedicated user of memory_mcp by shadowcz007, I must say this tool is incredibly efficient! It simplifies my memory management tasks significantly. The implementation is clean and the documentation on GitHub is comprehensive, making it easy to integrate into various projects. Highly recommended for anyone looking to optimize their resource management!