Sponsored by Deepsite.site

Structured Memory

Created By
nmeierpolys4 months ago
Make it easy for agents to build their context about your projects over time The server provides a set of tools to help agents accumulate knowledge about a project over time in a structured way. These memory documents represent living documents that grow and evolve rich context to help the MCP client better serve requests in that area. Memory documents are stored as markdown files in the filesystem, allowing direct access and editing if you want to take a more hands-on approach. The main focus, though, is on giving the MCP client a place to deliberately keep track of info that will be helpful in the future.
Content

Structured Memory MCP Server

A Model Context Protocol (MCP) server that provides structured, domain-specific memory management through markdown files. This is particularly useful for ongoing projects around a particular area of focus where you want to accumulate valuable context over time. Examples include focused domains like travel planning, research projects, real estate search, investment theses, product planning, and career development.

Why Structured Memory?

Traditional MCP memory servers use semantic search across scattered conversation snippets. This works well for general recall but fails for focused projects that need organized, categorical information.

Structured Memory instead maintains living documents with structured content that you can scan, update, and track over time - just like you would with a personal notebook, but with AI assistance.

Memory documents are stored as markdown files, primarily updated automatically by the LLM as it learns from your conversations to build rich context over time.

Typical usage

  1. Ask your LLM client to create a memory document for your focused project Create a new travel advisor memory document and tell me how to use it. This should start empty and grow over time.

  2. Create a new Project for conversations in that area. Add the provided usage instructions to your project context

    Note: LLMs will, against all tool advice, occasionally fail to show you the installation instructions. If that happens, follow up with a request to the LLM to show you the installation instructions and it should comply.

  3. New chat conversations start by checking the available info from the project's memory. Your LLM will update this memory over time to build up valuable context.

  4. Optionally prompt your LLM to add/adjust the memory file on demand. It's also helpful to ask the LLM to prompt you for relevant info (e.g. "Ask me some questions to learn about my travel preferences")

Installation

Option 1: Install from npm (when published)

npm install -g @nmeierpolys/mcp-structured-memory

Option 2: Install from source

git clone https://github.com/nmeierpolys/mcp-structured-memory.git
cd mcp-structured-memory
npm install
npm run build

Configuration

For Claude Desktop

Edit the claude_desktop_config.json file with the following entry:

{
  "mcpServers": {
    "mcp-structured-memory": {
      "command": "npx",
      "args": ["@nmeierpolys/mcp-structured-memory"]
    }
  }
}

Available Tools

  • create_memory - Create a new memory document with optional initial content
  • list_memories - List all available memory documents
  • get_memory_summary - Get a high-level summary of a memory document
  • get_section - Retrieve a specific section from a memory document
  • get_full_memory - Retrieve the complete content of a memory document
  • search_within_memory - Search for information within a memory document
  • update_section - Update an entire section of a memory document
  • add_to_list - Add an item to a list section
  • update_list_item - Update an existing item in a list
  • move_list_item - Move an item between list sections

Flexible Structure

Memory documents support any structure you need. The AI will help you organize sections based on your use case. Common examples:

  • Travel Planning: destinations, itinerary, accommodations, activities, restaurants, travel tips, budget tracker
  • Research Project: research questions, literature review, methodology, findings, data sources, next steps
  • Real Estate Search: search criteria, active listings, visited properties, rejected properties, market insights, agent contacts

Example: Automatic Memory Building

User: "Create a new Minnesota trip memory document and tell me how to use it. This should start empty and grow over time."

Claude: "I've created a travel memory document for your Minnesota trip. As we discuss your plans, I'll automatically update it with destinations, timing, preferences, and other details I learn about your trip."

User: "I want to see fall colors, go hiking, try local cuisine, and visit both the North Shore and the Twin Cities."

Claude: "I've noted your priorities in the memory: fall foliage viewing, hiking opportunities, local restaurants, North Shore destinations, and Twin Cities attractions. I'll keep track of specific recommendations as we explore options."

[Later conversation]
User: "What hiking trails have good fall colors?"

Claude: "Based on our previous discussions, I see you're focused on fall colors in Minnesota. Let me suggest some trails and I'll add the best ones to your travel memory..."

Backup and Version Control

The server automatically creates timestamped backups before major updates.

Storage Locations

Memory document files are stored as markdown files in:

  • macOS: ~/Library/Application Support/mcp-structured-memory/
  • Windows: %LOCALAPPDATA%\mcp-structured-memory\
  • Linux: ~/.local/share/mcp-structured-memory/

Server Config

{
  "mcpServers": {
    "mcp-structured-memory": {
      "command": "npx",
      "args": [
        "@nmeierpolys/mcp-structured-memory"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop