MCP for Claude Code
Weft ships an MCP server. Point Claude Code at your vault and it can list, read, search, surface, and write notes — directly, without copy-paste.
What it does
Section titled “What it does”weft mcp <vault-path> runs an MCP server over stdio. Claude Code launches it as a subprocess, talks to it on stdin/stdout, and gets access to the same vault the daemon owns: it can read notes, run full-text search, ask for what the brain panel would surface, and write new notes back to disk.
The vault stays plain .html on disk. Claude Code is just another surface over the one source of truth.
Run the server
Section titled “Run the server”# stdio MCP server, scoped to one vaultweft mcp ~/notesYou normally don’t run this by hand — Claude Code starts it for you once it’s registered.
Register it with Claude Code
Section titled “Register it with Claude Code”Add an MCP server entry that runs weft mcp against your vault. In your Claude Code MCP config:
{ "mcpServers": { "weft": { "command": "weft", "args": ["mcp", "/Users/you/notes"] } }}Use the absolute path to your vault. If weft isn’t on Claude Code’s PATH, give the full path to the binary as command (for example /usr/local/bin/weft).
What Claude Code can do
Section titled “What Claude Code can do”| Capability | Backed by |
|---|---|
| List every note | The vault folder on disk |
| Read a note | The .html file on disk |
| Search the vault | SQLite FTS5 lexical search |
| Surface related notes | The same signals as the brain panel — backlinks, recency, co-access |
| Write a note | New .html in the vault; indexed on save |
Notes stay safe
Section titled “Notes stay safe”Weft never deletes notes. Writes from Claude Code create or update .html files; nothing is removed by the system. As with every Weft surface, the vault is yours and remains openable in any browser.
See also the CLI reference for weft capture and weft clip, and concepts for how surfacing works.