WikiDrive MCP
Official# WikiDrive MCP (`wikidrive-mcp`)
> **The Portable Procedural Layer for Every AI — AI changes. Your way stays.**
[](https://wikidrive.app/en-global?utm_source=github&utm_medium=readme&utm_campaign=wikidrive_mcp)
[](https://wikidrive.app/en-global/connect?utm_source=github&utm_medium=readme&utm_campaign=wikidrive_mcp)
[](https://glama.ai/mcp/servers/@wikidrive-app/wikidrive-mcp)
[](#license)
Models change every quarter. Vendor-locked memory silos break your operational standards the moment you switch tools. **WikiDrive** ([https://wikidrive.app](https://wikidrive.app/en-global?utm_source=github&utm_medium=readme&utm_campaign=wikidrive_mcp)) is **The Portable Procedural Layer for Every AI** (*unrelated to the Belgian coaching SaaS `wikidrive.eu`*). Every correction you give an AI ("lead with an executive decision table", "run lint before every PR", "start from this LaTeX skeleton") is compiled into a structured **4-layer Know-How Graph** (`judgment`, `procedure`, `boundary`, `style`) and synchronized across ChatGPT, Claude, Cursor, Claude Code, Codex, Gemini CLI, and Windsurf.
`wikidrive-mcp` is the official zero-dependency MIT Node.js ESM (`>=18.18.0`) `stdio` ↔ Streamable HTTP MCP bridge and OAuth 2.1 (DCR + PKCE) CLI for `https://wikidrive.app/mcp`, listed on [Glama](https://glama.ai/mcp/servers/@wikidrive-app/wikidrive-mcp) and compatible with `skills.sh`.
---
## Why the Portable Procedural Layer?
> *"Memory tools remember what you said. WikiDrive executes how you work."*
- **Executable Playbooks (`HOW` you work), NOT Passive Fact Memory (`WHAT` happened)**: Opaque vector chat logs remember past conversations. WikiDrive compiles your standards into a structured, human-editable, versioned **4-Layer Know-How Graph** (`judgment`, `procedure`, `boundary`, `style`) with directed links (`before`, `requires`, `refines`, `guards`, `uses`) and in-place updates via `wikidrive_revise`.
- **Multiplayer 1-Click Share & Fork ("GitHub for AI Workflows"), NOT a Single-Player Vault**: Turn working AI methods into a shareable link—1-click load or fork directly into ChatGPT, Claude, or Cursor.
- **Zero-Code Cross-AI Ownership at $9/mo, NOT Developer-Only Token APIs**: 30-second 1-click MCP connection across ChatGPT, Claude, Cursor, Claude Code, Codex, Gemini CLI, and Windsurf with transparent Markdown/Wiki control (Free tier: 100 nodes; Pro: `$9/mo`).
- **34 Lossless File & Code Skeletons**: Attach canonical structural templates (`excel` CSV+formulas, `latex`, `sql`, `python`, `r`, `matlab`, `mermaid`, `typescript`, `dockerfile`, and 25 more) directly to rules so every model starts from your exact specification.
- **Deterministic Secret & NDA Masking**: Client and worker sanitization plus 4-pass line salvage redact API keys, credentials, PII, and custom NDA terms as `[SECRET]` before persistence—eliminating rigid write refusals with instant 1-step rollback.
- **Zero-Dependency Protocol Bridge**: Streamable HTTP + OAuth 2.1 DCR + PKCE (`S256`) with unauthenticated `initialize` and `tools/list` inspector mode for automated registry verification (Smithery, Glama).
- **Verified Production Benchmarks**: `90.7%–97.3%` of production external MCP calls perform cross-AI procedural recall across connected clients. In blinded `n=25` evaluations against vanilla frontier models, structured WikiDrive workflows outperformed **70% vs 20%** (**84%** on structured reports, **56%** on data charts).
### How WikiDrive Compares
| Dimension | WikiDrive | Supermemory.ai / Mem0.ai | Big Tech Native Memory |
|---|---|---|---|
| **Core Model** | Executable Playbooks, 4-Layer Graph & 34 Templates (**HOW** you work) | Passive Vector Fact Memory (**WHAT** happened) | Unstructured Bullet Memory (**WHAT** was said) |
| **Control & Editing** | Human-editable, versioned Markdown/Wiki + 1-step rollback | Opaque vector logs / developer API retrieval | Closed black-box per-provider memory |
| **Cross-AI Portability** | Instant MCP sync across ChatGPT, Claude, Cursor, Codex, Gemini & Windsurf | Developer-only SDK / token API integration | Trapped inside a single AI vendor |
| **Distribution** | Multiplayer 1-click Share & Fork ("GitHub for AI Workflows") | Single-player / custom backend | Non-shareable private silo |
| **Onboarding & Cost** | 30s zero-code MCP connect · Free / **$9/mo** Pro | Code wiring & token API billing | Vendor-locked subscription |
---
## 60-Second Setup
You can connect either **directly via Remote MCP** (`https://wikidrive.app/mcp`) or via this **local `npx -y wikidrive-mcp` stdio bridge** (recommended for clients that prefer local `stdio` commands, headless tokens, or `--mode directory`).
### 1. Claude Desktop
- **Web / Desktop Connector:** Open [Add WikiDrive Custom Connector](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=WikiDrive&connectorUrl=https%3A%2F%2Fwikidrive.app%2Fmcp)
- **Or local `stdio` (`claude_desktop_config.json`):**
```json
{
"mcpServers": {
"wikidrive": {
"command": "npx",
"args": ["-y", "wikidrive-mcp", "--oauth"]
}
}
}
```
### 2. Cursor
Add to `.cursor/mcp.json` or `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"wikidrive": {
"url": "https://wikidrive.app/mcp"
}
}
}
```
Or use the local `stdio` bridge:
```json
{
"mcpServers": {
"wikidrive": {
"command": "npx",
"args": ["-y", "wikidrive-mcp", "--oauth"]
}
}
}
```
### 3. Claude Code
```bash
# Official plugin (includes hooks + SKILL.md)
claude plugin marketplace add https://wikidrive.app/claude/marketplace.json
claude plugin install wikidrive@wikidrive
# Or add the remote/stdio MCP server directly
claude mcp add --transport http wikidrive https://wikidrive.app/mcp
# OR via wikidrive-mcp stdio bridge:
claude mcp add wikidrive -- npx -y wikidrive-mcp --oauth
```
### 4. Codex
```bash
# Official Codex plugin
codex plugin marketplace add https://wikidrive.app/git/codex.git
codex plugin add wikidrive@wikidrive
codex mcp login wikidrive
# Or direct MCP registration
codex mcp add wikidrive --url https://wikidrive.app/mcp
# OR via wikidrive-mcp stdio bridge:
codex mcp add wikidrive -- npx -y wikidrive-mcp --oauth
```
### 5. Gemini CLI
```bash
# Official Gemini extension
gemini extensions install https://wikidrive.app/git/gemini.git
# Then inside Gemini CLI run: /mcp auth wikidrive
```
Or in `~/.gemini/settings.json`:
```json
{
"mcpServers": {
"wikidrive": {
"command": "npx",
"args": ["-y", "wikidrive-mcp", "--oauth"]
}
}
}
```
### 6. Windsurf
Add to `~/.codeium/windsurf/mcp_config.json`:
```json
{
"mcpServers": {
"wikidrive": {
"command": "npx",
"args": ["-y", "wikidrive-mcp", "--oauth"]
}
}
}
```
(Or connect directly to the Remote MCP URL `https://wikidrive.app/mcp`.)
### 7. ChatGPT
Install the official **WikiDrive** ChatGPT App:
- Listing: `https://chatgpt.com/plugins/plugin_asdk_app_6adc0f8d46f48191a5e4773d2b526398`
- Onboarding guide: [https://wikidrive.app/en-global/connect](https://wikidrive.app/en-global/connect?utm_source=github&utm_medium=readme&utm_campaign=wikidrive_mcp)
### Install the Cross-AI Procedural Skill (`skills.sh`)
```bash
npx skills add wikidrive-app/wikidrive-mcp
```
---
## CLI & Authentication
You can authenticate once interactively using OAuth 2.1 DCR + PKCE (`S256`), or pass a bearer token via environment variable/flag:
```bash
# Interactive OAuth 2.1 browser login (caches 0600 credentials in ~/.wikidrive/credentials.json)
npx wikidrive-mcp --login
# Check current endpoint & masked credential status
npx wikidrive-mcp --status
# Clear cached credentials
npx wikidrive-mcp --logout
```
### CLI Options
| Option | Env Variable | Default | Description |
|---|---|---|---|
| `--endpoint <url>` | `WIKIDRIVE_MCP_URL` | `https://wikidrive.app/mcp` | Remote Streamable HTTP MCP endpoint |
| `--token <token>` | `WIKIDRIVE_ACCESS_TOKEN` | Cached credentials | Bearer access token (`seed_at_...`) |
| `--mode <mode>` | `WIKIDRIVE_MODE` | `default` | Optional mode header (e.g. `directory` -> `X-WikiDrive-Mode: directory`) |
| `--oauth` | — | `false` | Trigger browser OAuth on `tools/call` or `HTTP 401` |
| `--login` | — | `false` | Run standalone OAuth 2.1 DCR + PKCE login and exit |
| `--logout` | — | `false` | Remove cached credentials and exit |
| `--status` | — | `false` | Print masked credential and endpoint status |
| `-h, --help` | — | — | Show CLI help |
| `-v, --version` | — | — | Print package version |
Config precedence: **CLI flag > Environment variable > `~/.wikidrive/credentials.json`** (or `$WIKIDRIVE_CONFIG_DIR/credentials.json`, directory `0700`, file `0600`).
---
## Core Cross-AI Procedural Brain Tools
| Tool | Mode | Purpose |
|---|---|---|
| `wikidrive_recall` | Read-only | Load Base rules, topic living prompt, 4-layer Know-How Graph, and reusable templates for a task |
| `wikidrive_capture` | Write | Save 1–5 standing rules with `layer`, `concept`, `links`, and `part` skeletons (`34` formats) |
| `wikidrive_revise` | Write | Reword or remove saved rules in place (`replace_with` or 1-step undo) |
| `wikidrive_search` | Read-only | Search your personal prompts and distilled documents by keyword |
| `wikidrive_open` | Read-only | Read the full text, rules, and version of a prompt or document |
| `wikidrive_save_prompt` | Write | Store a compiled portable prompt or skill when explicitly requested |
| `wikidrive_create_doc` | Write | Save distilled decisions, procedures, specs, or notes with automatic secret masking |
| `wikidrive_add_to_doc` | Write | Append a Markdown section to an existing WikiDrive document |
| `wikidrive_edit_doc` | Write | Edit a document section or title with optimistic concurrency (`base_version`) |
| `wikidrive_undo_doc` | Write | Roll back the latest AI change to a document in one step |
| `wikidrive_stats` | Read-only | View 7-day, 30-day, and all-time usage counts across connected AIs |
---
## Links & Identity
- **Global Home:** [https://wikidrive.app/en-global](https://wikidrive.app/en-global?utm_source=github&utm_medium=readme&utm_campaign=wikidrive_mcp)
- **Connect Guide:** [https://wikidrive.app/en-global/connect](https://wikidrive.app/en-global/connect?utm_source=github&utm_medium=readme&utm_campaign=wikidrive_mcp)
- **Glama Listing:** [https://glama.ai/mcp/servers/@wikidrive-app/wikidrive-mcp](https://glama.ai/mcp/servers/@wikidrive-app/wikidrive-mcp)
- **Privacy Policy:** [https://wikidrive.app/en-global/privacy](https://wikidrive.app/en-global/privacy)
- **Terms of Service:** [https://wikidrive.app/en-global/terms](https://wikidrive.app/en-global/terms)
- **Support:** `support@wikidrive.app`
- **Disambiguation:** WikiDrive (`wikidrive.app`) is a Cross-AI Procedural Brain platform and MCP server. It is not affiliated with `wikidrive.eu` (a Belgian coaching SaaS).
## License
[MIT](./LICENSE) — Copyright (c) 2026 WikiDrive
TDQS
Scored across 13 tools
The tools cleanly separate prompt saving, document creation/editing, rule capture, lookup, stats, and agent consultation, with descriptions that clarify boundaries like save_prompt vs create_doc and add_to_doc vs edit_doc. Minor overlap remains among recall/open/search and capture/revise, but the usage guidance generally resolves it.
All tools share a consistent wikidrive_ prefix and lowercase snake_case style, making the set predictable. Most names are clear actions, though stats and workspaces are noun-only while several others are verb-only, which is a small deviation from a strict verb_noun pattern.
The 13 tools fit the server's broad scope spanning prompts, documents, rules, search, stats, workspaces, and consulting. Each tool has a distinct role, and the count sits comfortably in the well-scoped 3-15 range.
Core workflows are well covered: create/read/search/update/undo for documents, capture/revise for rules, recall/open for prompts, plus stats and workspaces. Explicit deletion or full listing of saved prompts and documents is missing, but undo and search mitigate most practical gaps.