
Structured Memory
Maintains structured markdown documents that accumulate and organize information across multiple AI conversations for focused projects like travel planning or research.
Maintains structured markdown documents as living memory for focused projects, enabling systematic organization, search, and updates of accumulated context across multiple conversations.
What it does
- Create structured memory documents with markdown formatting
- Search within memory documents for specific information
- Update and organize content in structured sections and lists
- Track accumulated context across multiple conversations
- Retrieve summaries or full content of memory documents
- Move and manage list items between sections
Best for
About Structured Memory
Structured Memory is a community-built MCP server published by nmeierpolys that provides AI assistants with tools and capabilities via the Model Context Protocol. Maintain, search, and update structured markdown documents with syntax support. Export to PDF and integrate with mkdocs It is categorized under ai ml, productivity. This server exposes 10 tools that AI clients can invoke during conversations and coding sessions.
How to install
You can install Structured Memory in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Structured Memory is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Tools (10)
Create a new structured memory document with optional initial content. IMPORTANT: After using this tool, you MUST show the user the complete installation instructions returned by the tool - the memory will not work without proper MCP server setup and project context configuration.
Add an item to a list section in a memory document
Retrieve a specific section from a memory document
List all available memory documents
Get a high-level summary of a memory document
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
-
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. -
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.
-
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.
-
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/
Alternatives
Related Skills
Browse all skillsCreates educational Teams channel posts for internal knowledge sharing about Claude Code features, tools, and best practices. Applies when writing posts, announcements, or documentation to teach colleagues effective Claude Code usage, announce new features, share productivity tips, or document lessons learned. Provides templates, writing guidelines, and structured approaches emphasizing concrete examples, underlying principles, and connections to best practices like context engineering. Activates for content involving Teams posts, channel announcements, feature documentation, or tip sharing.
Compact current session memory into structured text for session recovery. Supports custom descriptions and tagging.
Fix bugs in SkiaSharp C# bindings. Structured workflow for investigating, fixing, and testing bug reports. Triggers: Crash, exception, AccessViolationException, incorrect output, wrong behavior, memory leak, disposal issues, "fails", "broken", "doesn't work", "investigate issue", "fix issue", "look at #NNNN", any GitHub issue number referencing a bug. For adding new APIs, use `add-api` skill instead.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Continuous self-improvement through structured reflection and memory
Automated daily planning and reflection system with morning briefs, wind-down prompts, sleep nudges, and weekly reviews. Use when the user wants to set up a structured daily routine, morning briefings, evening reflection prompts, or weekly planning sessions. Triggers include requests for daily schedules, morning briefs, wind-down routines, sleep reminders, weekly reviews, productivity systems, or daily planning automation.