MCP Knowledge Graph MCP Server

MCP server enabling persistent memory for AI models through a local knowledge graph

Local serverstdio

What is the MCP Knowledge Graph MCP server?

MCP server enabling persistent memory for AI models through a local knowledge graph. The mcp knowledge graph mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 11 defined tools rather than through you.

What it actually does

Store and retrieve information across conversations using entities, relations, and observations. Works with Claude Code/Desktop and any MCP-compatible AI platform.

  • .aim directories — Keep AI memory files organized and easily identifiable
  • aim_ tool prefixes — Group related memory functions together in multi-tool setups
  • _aim safety markers — Each memory file starts with {"type":"_aim","source":"mcp-knowledge-graph"} to prevent accidental overwrites of unrelated JSONL files

Its toolset

Everything the assistant can do here goes through one of these:

  • aim_memory_store — Store new memories (people, projects, concepts)
  • aim_memory_add_facts — Add facts to existing memories
  • aim_memory_link — Link two memories together
  • aim_memory_search — Search memories by keyword
  • aim_memory_get — Retrieve specific memories by exact name
  • aim_memory_read_all — Read all memories in a database
  • aim_memory_list_stores — List available databases
  • aim_memory_forget — Forget memories
  • aim_memory_remove_facts — Remove specific facts from a memory
  • aim_memory_unlink — Remove links between memories
  • Parameters — The Parameters tool exposed by this server

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Configuration

  • Node.js 22+ - MCP-compatible AI platform

When to reach for it

This sits in the knowledge and memory group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Knowledge Graph's toolset — aim_memory_store, aim_memory_add_facts, aim_memory_link and 8 more — is a fair guide to whether it matches your workflow. It is maintained by shaneholloman; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 11 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCP Knowledge Graph.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp knowledge graph mcp server does with a few real requests.

Available tools

ToolWhat it does
aim_memory_storeStore new memories (people, projects, concepts)
aim_memory_add_factsAdd facts to existing memories
aim_memory_linkLink two memories together
aim_memory_searchSearch memories by keyword
aim_memory_getRetrieve specific memories by exact name
aim_memory_read_allRead all memories in a database
aim_memory_list_storesList available databases
aim_memory_forgetForget memories
aim_memory_remove_factsRemove specific facts from a memory
aim_memory_unlinkRemove links between memories
ParametersThe Parameters tool exposed by this server.

How to install the MCP Knowledge Graph MCP server

{
  "mcpServers": {
    "Aim-Memory-Bank": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-knowledge-graph",
        "--memory-path",
        "/Users/yourusername/.aim"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 22+ - MCP-compatible AI platform

Example prompts to try

  • Use MCP Knowledge Graph to aim memory store.
  • Use MCP Knowledge Graph to aim memory add facts.
  • Use MCP Knowledge Graph to aim memory link.

Frequently asked questions

It connects MCP Knowledge Graph to MCP-compatible AI assistants such as Claude and Cursor, exposing 11 tools (aim_memory_store, aim_memory_add_facts, aim_memory_link, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Knowledge Graph directly.