iwe-org/iwe

Markdown knowledge graph — LSP for your editor, CLI + MCP memory for your AI agents

What it solves

IWE provides a way to turn a local directory of Markdown files into a queryable knowledge graph. It allows users to maintain full ownership of their notes in plain text while providing the structured, database-like retrieval capabilities needed for both human browsing in an editor and AI agents querying via a command line or API.

How it works

IWE treats Markdown files as a connected structure using two types of links: "inclusion links" for nesting (creating a hierarchy/tree) and cross-references for creating a web of relationships. It allows a single note to have multiple parents, meaning it can belong to multiple topics without duplicating files.

For AI agents, it provides a CLI and an MCP (Model Context Protocol) server that allows agents to search, retrieve, and refactor notes. It ensures safety through "expect" guards that validate the blast radius of mutations and document schemas that validate frontmatter and structure. It is built in Rust for high performance, capable of processing 20,000 files in under a second.

Who it’s for

  • Knowledge workers who use Markdown-based note-taking systems and want IDE-like features (search, refactoring, autocomplete) in their editors (VS Code, Neovim, Zed, Helix).
  • AI agent developers who want to provide their agents with a long-term, human-readable memory system that is version-controlled via Git and avoids the "similarity guessing" of vector databases.
  • Users of AI coding agents (like Claude Code) who want a structured memory for their project context.

Highlights

  • Plain Markdown ownership: No proprietary databases or cloud lock-in; everything is stored as .md files.
  • Model Context Protocol (MCP) support: Native integration with AI tools like Claude Desktop, Cursor, and Windsurf.
  • Graph-based retrieval: Retrieves notes with their parent context and children in a single call, rather than relying on simple similarity search.
  • LSP integration: Provides IDE-like features for multiple editors via the Language Server Protocol.
  • Guarded mutations: AI agent writes are validated against schemas and scope guards to prevent accidental corruption of the knowledge graph.

Related

  • Project
  • Project
  • Project
  • Project
  • Project