🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

wikimoth-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikimoth-mcp

npx launcher for the WikiMoth MCP server: deterministic, token-minimal memory for Claude and agents over a [[wikilink]] markdown vault. Spawns the Python `wikimoth mcp` stdio server, self-healing via uvx.

latest
Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
26
-18.75%
Maintainers
1
Weekly downloads
 
Created
Source

wikimoth-mcp

npx launcher for the WikiMoth MCP server: deterministic, token-minimal memory for Claude and agents over a [[wikilink]] markdown vault, with no LLM call in the retrieval loop.

This is a thin, zero-dependency wrapper. It spawns the Python wikimoth mcp stdio server so any MCP client can add WikiMoth with the npx pattern it already uses. The retrieval engine stays Python (that is where it lives); this package only makes it launchable from the Node/MCP world.

Requirements

  • Node.js >= 18
  • Either WikiMoth installed on a Python 3.10+ (pip install wikimoth), or uv available (the launcher will uvx --from wikimoth an ephemeral install for you).

Use it in an MCP client

Claude Code:

claude mcp add wikimoth -- npx -y wikimoth-mcp

Claude Desktop / Cursor / Windsurf (mcpServers config):

{
  "mcpServers": {
    "wikimoth": {
      "command": "npx",
      "args": ["-y", "wikimoth-mcp"],
      "env": { "WIKIMOTH_VAULT": "/absolute/path/to/your/vault" }
    }
  }
}

The server exposes recall and status; with WikiMoth 0.2+ it also exposes the memory-hygiene tools (list_conflicts, list_lint, list_duplicates, list_fading, supersede). The launcher warns on stderr when it finds an older WikiMoth (pip install -U wikimoth to upgrade).

Vault resolution

An MCP client launches the server from its own working directory, so a relative default would read the wrong (usually empty) folder. The launcher resolves the vault, in order:

  • --vault PATH passed through to the server
  • WIKIMOTH_VAULT environment variable
  • <cwd>/.wikimoth/vault (fallback)

and injects the resolved absolute path into the server's environment, printing it to stderr on startup. Set WIKIMOTH_VAULT to the folder you actually capture into (the same one wikimoth install uses) so recall reads your real notes.

Environment variables

  • WIKIMOTH_VAULT: the vault directory to serve (recommended).
  • WIKIMOTH_PYTHON: pin the exact Python interpreter to run. The pin is trusted verbatim and skips auto-detection entirely; a wrong pin fails loudly at server start.

How it works

Without a pin, the launcher looks for a Python that can import wikimoth (python3, python, and on Windows the py -3 launcher; .cmd/.bat shims are supported) and runs python -m wikimoth mcp. If none is found it falls back to uvx --from 'wikimoth>=0.2,<0.3' wikimoth mcp (an ephemeral install; the first such run downloads WikiMoth, so it may exceed a strict client startup timeout, and pip install wikimoth ahead of time avoids this). stdin/stdout are passed through untouched (the MCP JSON-RPC channel); all launcher diagnostics go to stderr.

This launcher is version-independent from the Python package: it runs whatever WikiMoth is installed (or uvx-installs a compatible one), so its own npm version does not track the Python release.

Apache-2.0.

Keywords

mcp

FAQs

Package last updated on 04 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts