Structured Memory logo

Structured Memory

Community
nmeierpolys

Structured Memory MCP Server

Publishernmeierpolys
Repositorymcp-structured-memory
LanguageTypeScript
Forks
4
Stars
13
Available tools
10
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Structured Memory exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 10 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    13 stars and 4 forks from the linked repository.

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)

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

Option 2: Install from source

bash
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:

json
{
  "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/

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Available Tools

  • create_memory

    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_to_list

    Add an item to a list section in a memory document

  • get_section

    Retrieve a specific section from a memory document

  • list_memories

    List all available memory documents

  • get_memory_summary

    Get a high-level summary of a memory document

  • search_within_memory

    Search for information within a memory document

  • update_section

    Update an entire section of a memory document. Content supports full Markdown formatting including headings, bold, italic, code blocks, links, lists, tables, and all standard Markdown syntax.

  • update_list_item

    Update an existing item in a list section

  • move_list_item

    Move an item from one section to another

  • get_full_memory

    Retrieve the complete content of a memory document with all Markdown formatting preserved (headings, bold, italic, code, links, tables, lists, etc.)

Use Structured Memory MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Structured Memory is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Structured Memory as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Structured Memory MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "structured-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@nmeierpolys/mcp-structured-memory"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Structured Memory MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Structured Memory MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Structured Memory to help me with this task?
Structured Memory
Sure. I read it.
Here is what I found using Structured Memory.

Frequently asked questions

What is the Structured Memory MCP server used for?

Structured Memory is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Structured Memory MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Structured Memory with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Structured Memory MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Structured Memory connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Structured Memory MCP to TypingMind?

Structured Memory runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Structured Memory MCP provide in TypingMind?

Structured Memory exposes 10 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Structured Memory MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Structured Memory requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇