Skip to content

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.

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.

Terminal window
# stdio MCP server, scoped to one vault
weft mcp ~/notes

You normally don’t run this by hand — Claude Code starts it for you once it’s registered.

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).

CapabilityBacked by
List every noteThe vault folder on disk
Read a noteThe .html file on disk
Search the vaultSQLite FTS5 lexical search
Surface related notesThe same signals as the brain panel — backlinks, recency, co-access
Write a noteNew .html in the vault; indexed on save

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.