loading…
Search for a command to run...
loading…
iwec gives AI agents structured access to your Markdown notes as a knowledge graph instead of a pile of files. Agents search, retrieve, traverse, and refactor y
iwec gives AI agents structured access to your Markdown notes as a knowledge graph instead of a pile of files. Agents search, retrieve, traverse, and refactor your notes by structure and links — not blind text similarity — working from the same plain .md files you edit by hand. No database, no cloud, no lock-in.
A markdown knowledge graph for you and your AI agent.
Crates.io Downloads License Build Documentation Discussions Twitter Reddit
IWE turns a directory of markdown files into a knowledge graph — a connected structure you browse from your editor and your AI queries from the command line. Same files, same links, two interfaces. No cloud, no database, no lock-in. Version everything with git.
Write in Markdown, structure with links, give AI agents the tools to navigate your knowledge. IWE itself has no built-in AI — it works alongside Claude, Codex, Gemini, and any tool that speaks the Model Context Protocol.
.md files in a local directory. Read them, edit them, git push them. Nothing proprietary.IWE treats your notes as a connected structure. You organize them with two types of links:
This structure makes retrieval powerful — whether you're browsing in your editor or an agent is querying via CLI, ask for a topic and get its full context in a single call.
IWE gives AI agents structured access to your notes through two interfaces: a CLI for scripting and shell-based workflows, and an MCP server for native connection with AI tools. Both expose the same operations — search, retrieve, create, refactor — so you can choose whichever fits your setup.
IWE includes a server (iwec) that lets AI tools like Claude Desktop, Cursor, and Windsurf work directly with your notes using the Model Context Protocol. The server watches your files for changes, so edits you make in your editor are reflected immediately.
The CLI lets you (and AI agents) work with your notes from the terminal or in scripts.
Example: preparing context for an AI conversation
iwe find auth
iwe retrieve --key authentication --depth 2
iwe tree --key oauth
Available commands:
| Command | What it does |
|---|---|
find |
Search notes with fuzzy matching |
retrieve |
Get a note with its children and parent context |
tree |
Show the hierarchy from any starting point |
squash |
Flatten a subtree into one document |
new |
Create a note (accepts content from stdin) |
extract |
Pull a section into its own note |
inline |
Merge a linked note back into its parent |
rename |
Rename a note; all links update automatically |
delete |
Remove a note and clean up references |
More information: Working with AI · CLI Reference · MCP Server
IWE gives your editor IDE-like features for markdown notes. It works with VS Code, Neovim, Zed, Helix, and any editor that supports the Language Server Protocol (LSP).
More information: Editor Features
Install the CLI and LSP server:
Using Homebrew (macOS/Linux):
brew tap iwe-org/iwe
brew install iwe
Or using Cargo:
cargo install iwe iwes iwec
Initialize your workspace:
cd ~/notes
iwe init
Pick your path:
Set up your editor — VS Code · Neovim · Helix · Zed
Connect your AI agent — point it at the MCP server:
{
"mcpServers": {
"iwe": {
"command": "iwec",
"args": ["--project", "~/notes"]
}
}
}
IWE is open source and community-driven. Join the discussions, report issues, or contribute to the documentation.
Community: Twitter/X · Reddit · Discussions
Editor plugins: VS Code · Neovim · Zed
Agentic skills: iwe-org/skills — agentic AI skills for knowledge graph management. Contributors welcome.
Run in your terminal:
claude mcp add iwe -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.