Are you the author? Sign in to claim
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.
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.
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")
npm install -g @nmeierpolys/mcp-structured-memory
git clone https://github.com/nmeierpolys/mcp-structured-memory.git
cd mcp-structured-memory
npm install
npm run build
Edit the claude_desktop_config.json file with the following entry:
{
"mcpServers": {
"mcp-structured-memory": {
"command": "npx",
"args": ["@nmeierpolys/mcp-structured-memory"]
}
}
}
Memory documents support any structure you need. The AI will help you organize sections based on your use case. Common examples:
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..."
The server automatically creates timestamped backups before major updates.
Memory document files are stored as markdown files in:
~/Library/Application Support/mcp-structured-memory/%LOCALAPPDATA%\mcp-structured-memory\~/.local/share/mcp-structured-memory/Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows