# Context Nest

The Context Nest MCP server for Claude Code connects an agent to versioned context storage. It can search published nodes, read documents, and inspect their version history.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 22 repo stars
- Author: PromptOwl
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PromptOwl/ContextNest/tree/HEAD/packages/mcp-server
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/context-nest

## What it does

Context Nest gives an AI agent access to a context vault through MCP. Vault entries have types, versions, and hash-linked history. The server provides tools to read documents, source nodes, and skills, search published content, and reconstruct stored versions.

Tools are exposed over stdio, and clients can also connect to a hosted MCP endpoint. Local use needs a vault path, passed as an argument or set with `CONTEXTNEST_VAULT_PATH`. Run the package with `npx` using `@promptowl/contextnest-mcp-server`; Claude Code also has a command for connecting over HTTP.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://nest.promptowl.ai/mcp`
- Environment variables: `CONTEXTNEST_VAULT_PATH` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http contextnest https://nest.promptowl.ai/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env CONTEXTNEST_VAULT_PATH=<CONTEXTNEST_VAULT_PATH> --transport stdio mcp-server -- npx -y @promptowl/contextnest-mcp-server
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp-server --url https://nest.promptowl.ai/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp-server --env CONTEXTNEST_VAULT_PATH=<CONTEXTNEST_VAULT_PATH> -- npx -y @promptowl/contextnest-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-server": {
            "url": "https://nest.promptowl.ai/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "@promptowl/contextnest-mcp-server"
            ],
            "env": {
                "CONTEXTNEST_VAULT_PATH": "<CONTEXTNEST_VAULT_PATH>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-server": {
            "type": "http",
            "url": "https://nest.promptowl.ai/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@promptowl/contextnest-mcp-server"
            ],
            "env": {
                "CONTEXTNEST_VAULT_PATH": "<CONTEXTNEST_VAULT_PATH>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp-server https://nest.promptowl.ai/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e CONTEXTNEST_VAULT_PATH=<CONTEXTNEST_VAULT_PATH> mcp-server npx -y @promptowl/contextnest-mcp-server
```
Replace <…> with your own values

## When to use it
- search published nodes in a context vault
- read a document or skill from stored context
- verify hash chains and reconstruct a version

## Example prompts
- Search the vault for published notes about project setup.
- Read `CONTEXT.md` and summarize the vault’s structure rules.
- Show this node’s version history and reconstruct a selected version.

## Similar
- [wasp-nest-core](https://affpapa.org/en/nevibecode/hooks/wasp-nest-core.md) — hook · ★ 96 repo stars
- [paper-context-resolver](https://affpapa.org/en/nevibecode/skills/paper-context-resolver.md) — skill · 503300 installs
- [context-engineering](https://affpapa.org/en/nevibecode/skills/context-engineering.md) — skill · 78100 installs
- [golang-context](https://affpapa.org/en/nevibecode/skills/golang-context.md) — skill · 43600 installs
- [bmad-project-context](https://affpapa.org/en/nevibecode/skills/bmad-project-context.md) — skill · 17200 installs
- [commit-context](https://affpapa.org/en/nevibecode/skills/commit-context.md) — skill · 14700 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
