# @promptowl/contextnest-mcp-server [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/PromptOwl/ContextNest  
**GitHub Stars:** 22  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/promptowl-contextnest-mcp-server

## Description
MCP server for governed, versioned, AI-ready context — gives Claude, Cursor, Gemini, Copilot, and Windsurf access to structured knowledge bases

## Tools
Capabilities this server exposes over MCP:

- **context_init** — Open a vault: instructions, configuration, path, and what it holds (`include_nodes` to also list nodes)
- **context_nests** — List every nest in the central registry
- **context_skill** — Render a `type: skill` node as a harness-ready skill file
- **context_skill_install** — Build the file manifest that installs a vault skill locally
- **context_structure** — The nest's structure rules: allowed folders, node types, name formats, templates (`folder` for one folder's rule, `report` for what breaks them)
- **context_get** — Read one node (`include_raw`, `verify_checksum`, `allow_rejected`); `last_edit` names who made it
- **context_list** — List nodes with folder / type / status / tag filters (`folder`, `recursive`, `include_retired`, `full`, `limit`, `include_last_edit`)
- **context_folders** — List the vault's folders and their document counts, without reading a single document (`folder`, `recursive`)
- **context_search** — Search published nodes, best match first. `mode`: `lexical` (stemmed BM25, default), `semantic` (embeddings), `hybrid` (RRF of both, exact title/#tag matches pinned); `rerank` re-scores the top hits. Each hit carries `score` + per-signal `scores
- **context_embed** — Build/refresh the embedding index for semantic/hybrid search — published nodes only, re-embeds only new/changed versions, prunes the rest (`rebuild` to start over)
- **context_query** — Selector query with graph traversal (`include_drafts`)
- **context_resolve** — Resolve a selector to full bodies within a token budget
- **context_versions** — List a document's version history
- **context_reconstruct** — Reconstruct a specific version
- **context_packs** — List packs with their `includes` and `excludes
- **context_verify** — Verify every hash chain in the vault
- **context_forget** — Forget a node: erase its content from history, keep the hashes (verify still passes), leave a `status: forgotten` stub
- **context_forget_log** — The forget audit trail — never the forgotten content
- **context_archive** — Archive a node: out of lists and retrieval, history kept, recoverable
- **context_unarchive** — Bring an archived node back in the status it left
- **context_move** — Move a node to another folder, with its history and any PDF
- **context_create** — Create a node — own `id`, `publish: false`, initial `status`, `note`, full `skill` block
- **context_update** — Update a node — rename, set `status`, stamp a `version`, clear metadata with `null
- **context_publish** — Publish a node; takes a `note`, returns the `chain_hash
- **context_delete** — Delete a node and its history, recorded in the forget audit log (`purge: true` for none); returns the deleted node's `title
- **context_import** — Bulk create-and-publish from `documents` and/or existing `ids` — one checkpoint for the batch
- **context_import_pdf** — Import a PDF as a `type: pdf` node — extracted text as the body, the PDF kept beside it and bound by SHA-256; pass `id` to version an existing one
- **document_format** — Get the document format spec (call before creating docs)
- **read_index** — Return the context.yaml index
- **read_pack** — Resolve and return a context pack with documents
- **list_checkpoints** — List recent checkpoints
- **context_review** — Controls the review gate. It can `list` held writes, `approve` or `reject` one by `id`, and turn the gate `off` or `on`.
- **stage_drift_suggestion** — Capture a drifted live file as a staged suggestion under `_suggestions/
- **list_suggestions** — List all staged suggestions for a document
- **approve_suggestion** — Apply a suggestion: patch, bump version, write new canonical bytes, archive
- **reject_suggestion** — Reject a suggestion: archive with required reason, emit a chain event

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What @promptowl/contextnest-mcp-server does

@promptowl/contextnest-mcp-server gives AI agents access to Context Nest vaults: structured knowledge stores built from typed nodes, folders, relationships, skills, packs, and versioned documents. It is aimed at personal knowledge bases, team documentation, onboarding material, procedures, and other agent-readable context that benefits from organization and change control.

The server supports both discovery and mutation. Agents can inspect a vault, browse its registry and folders, read or search published content, create or revise nodes, publish changes, import documents, and manage review decisions. Context Nest is designed around an open file-based vault model, with changes represented through versions and hash chains.

## How it works

Vault access begins with `context_init`, which returns the vault’s instructions, configuration, path, and contents; node listings can be included when needed. `context_nests` reports the nests registered in the central registry. Structure-related tools expose folder rules, permitted node types, naming conventions, templates, and violations.

Agents can use `context_list` and `context_folders` to navigate without loading every document. `context_get` reads an individual node, with options for raw content, checksum verification, and rejected records. `context_search` searches published nodes using lexical BM25, semantic embeddings, or a hybrid reciprocal-rank method. Optional reranking scores the strongest results again, while each result includes an overall score and signal-specific scores. `context_embed` creates or refreshes the embedding index for semantic and hybrid search.

Selector queries and graph traversal are available through `context_query`; `context_resolve` expands selectors into complete document bodies within a token budget. Packs can be inspected and resolved with `context_packs` and `read_pack`. Skills can be rendered or installed through `context_skill` and `context_skill_install`.

## Setup and configuration

Install the Context Nest CLI globally with `npm install -g @promptowl/contextnest-cli`, then run `ctx` to initialize a local vault, connect to a team server, or configure both. The CLI also supports starter-based initialization, including `ctx init --starter developer` and `ctx init --list-starters`.

The MCP server installs no npm dependencies beyond its published bundle. Vaults may be plain Markdown-based stores or encrypted vaults configured through the CLI. Remote nests require a registered server and bearer credentials supplied through the surrounding configuration.

## Tools and capabilities

- Inspect vault metadata, registries, structure rules, indexes, packs, and checkpoints.
- List, read, search, query, resolve, reconstruct, and compare versioned knowledge nodes.
- Search with lexical, semantic, or hybrid retrieval and refresh embeddings for published content.
- Create, update, publish, import, delete, and forget nodes, including PDF import with SHA-256 binding.
- Render skill nodes and build local skill installation manifests.
- Review held writes, approve or reject changes, and enable or disable the review gate.
- Verify hash chains and inspect the audit trail for forgotten content.
- Stage drifted live files as suggestions under `_suggestions/`.

## Limitations and notes

Semantic and hybrid search require an embedding index, which must be built or refreshed with `context_embed`. Search operates on published nodes, while several query and retrieval operations provide explicit options for drafts, retired nodes, rejected nodes, or raw content.

The review system can hold writes until approval, and publishing returns a chain hash. Forgetting removes node content from history while retaining hashes and a `forgotten` stub; deletion records the operation in the forget audit log. Encrypted vaults require careful key and recovery-passphrase handling because losing both can make the data unrecoverable.

_Full upstream README: https://allmcps.com/mcp/promptowl-contextnest-mcp-server/readme_

