Skip to main content
ClaudeWave

Local-first MCP server that snapshots your project's working state into one context object. Open-core, privacy-first.

MCP ServersRegistry oficial4 estrellas0 forksTypeScriptApache-2.0Actualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 9/14/2026
Install in Claude Code / Claude Desktop
Method: NPX · ctxfile
Claude Code CLI
claude mcp add ctxfile -- npx -y ctxfile
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "ctxfile": {
      "command": "npx",
      "args": ["-y", "ctxfile"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

<p align="center">
  <img src="apps/web/public/brand/logo-mark-256.png" alt="ctxfile" width="96" height="96" />
</p>

<h1 align="center">ctxfile</h1>

<p align="center"><strong>One context, every agent, all local.</strong></p>

<p align="center">
  <a href="https://github.com/ctxfile/ctxfile/actions/workflows/ci.yml"><img src="https://github.com/ctxfile/ctxfile/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
  <a href="https://www.npmjs.com/package/ctxfile"><img src="https://img.shields.io/npm/v/ctxfile" alt="npm" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="Apache-2.0" /></a>
  <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-2025--11--25-black" alt="MCP" /></a>
  <a href="https://github.com/ctxfile/ctxfile/stargazers"><img src="https://img.shields.io/github/stars/ctxfile/ctxfile?style=social" alt="GitHub stars" /></a>
</p>

<p align="center">
  <a href="https://glama.ai/mcp/servers/ctxfile/ctxfile"><img src="https://glama.ai/mcp/servers/ctxfile/ctxfile/badge" alt="ctxfile MCP server on Glama" /></a>
</p>

<p align="center">
  <a href="https://ctxfile.dev">Website</a> ·
  <a href="https://ctxfile.dev/docs">Docs</a> ·
  <a href="#30-second-quickstart">Quickstart</a> ·
  <a href="https://ctxfile.dev/docs/clients">Clients</a> ·
  <a href="https://ctxfile.dev/convention">The .ctxfile convention</a> ·
  <a href="https://ctxfile.dev/security">Security</a>
</p>

---

You work with more than one AI agent. Claude Code in the terminal, Cursor in the editor, a chat tab for thinking. Each one starts cold, because your working state (the plan, the key files, the git state, what you decided an hour ago) lives in your head and in scrollback.

**ctxfile** is a local-first [MCP](https://modelcontextprotocol.io) server that snapshots your project's working state into one structured context object, and hands it to any MCP agent in a single call. Save a session in one agent, continue it in another. Nothing leaves your machine.

```
you → ctxfile → the same context, in every agent
```

## 30-second quickstart

**Claude Code**

```bash
claude mcp add ctxfile -- npx -y ctxfile
```

**Cursor** (`.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` globally)

```json
{
  "mcpServers": {
    "ctxfile": { "command": "npx", "args": ["-y", "ctxfile"] }
  }
}
```

**Codex CLI**

```bash
codex mcp add ctxfile -- npx -y ctxfile --root .
```

**Claude Desktop** (no terminal needed): download [`ctxfile-macos-arm64.mcpb`](https://github.com/ctxfile/ctxfile/releases/latest/download/ctxfile-macos-arm64.mcpb) and drag it into Settings → Extensions. The bundle carries a compiled native module, so it is macOS (Apple Silicon) only for now; on Windows or an Intel Mac, add the stdio JSON above to `claude_desktop_config.json` instead.

**Every other client**: ctxfile is a standard stdio server, so `npx -y ctxfile` is the whole command. Copy-paste setup for **OpenCode, Gemini CLI, OpenClaw, Hermes, Aider**, and more is on the per-client tabs at [ctxfile.dev/docs/clients](https://ctxfile.dev/docs/clients).

Then, in your agent: *"load my context"* (or call `get_context`). Requires Node ≥ 20 (≥ 22 on Windows).

## Make it automatic

You stop typing "save this." One command installs a **skill** that teaches any agent, while doing its normal work, *when* to checkpoint context and to announce every save (never silent, paused any time, reviewable always):

```bash
ctxfile init
```

It renders from one canonical spec into whatever each harness reads: an Agent `SKILL.md` for **Claude Code, OpenCode, OpenClaw, and Hermes** (one portable file across all four skill systems), a **Cursor** rule, and managed **GEMINI.md** / **AGENTS.md** blocks. Details at [ctxfile.dev/docs/automatic](https://ctxfile.dev/docs/automatic).

## It follows you into the chat tabs, too

The same context your CLI and editor agents load over MCP can travel to web chatbots. Connect **Grok, ChatGPT, Claude web, or Perplexity** to your encrypted [Sync](https://ctxfile.dev/docs/sync) vault as a custom MCP connector, or `ctxfile export` and paste the envelope into any prompt box (Gemini, and anything else). Walkthrough: [ctxfile.dev/docs/webchat](https://ctxfile.dev/docs/webchat).

## Private by default

This is the part we care about most, so it goes first:

- The default path makes **zero network calls**. Files and git only.
- Secret-looking content (cloud keys, tokens, private keys, JWTs, `password=` assignments) is **redacted before it enters the snapshot**. `.env*`, key files, and credential files are never read at all.
- Core is **read-only** over your project. It never writes to your repo, your git state, or anything else.
- **No telemetry by default.** An anonymous weekly install ping exists, and it is opt-in only.
- Network connectors (Notion, local Ollama summarization, Sync) activate only when you explicitly configure them.

The full model, including what Pro and Sync add and what they can never see, is documented at [ctxfile.dev/security](https://ctxfile.dev/security).

## What it does

| | |
|---|---|
| **Snapshot** | `get_context` returns one structured `ContextObject`: plan docs, ranked key files fitted to a token budget, git state, optional Notion pages and local-LLM summary. |
| **Save and resume** | `save_session` stores an agent-written summary of the current conversation. `continue_thread` hands the merged, provenance-labeled history to the next agent. Different harness, different provider, cold start: it picks up where you left off. |
| **Threads** | Durable identities for a piece of work ("Q3 campaign"), spanning agents and machines. `handoff: true` enforces a complete takeover package: state, decisions with rationale, ordered open items, gotchas. |
| **Universal ingest** | `ingest_context` is the schema-enforced door for any harness without a native parser. The prompt is the adapter, so every MCP-speaking agent is supported, including ones that do not exist yet. |
| **Cloud agents** | `ctxfile export` writes a static, repo-safe artifact for agents that never touch your machine (hosted coding agents, CI). The format is an open spec: [the .ctxfile convention](https://ctxfile.dev/convention). |
| **Dashboard** | `ctxfile ui`: a local cockpit on 127.0.0.1. Run snapshots, watch connectors, browse context, inspect git state. |
| **Sync (optional)** | An end-to-end encrypted vault through a relay you can self-host. Argon2id key derivation, XChaCha20-Poly1305 per blob. The relay stores ciphertext only. |

## The monorepo

| Package | What | License |
|---|---|---|
| [`packages/core`](packages/core) | `ctxfile` on npm: the MCP server, snapshot engine, threads, ingest, export, Sync client, dashboard host | Apache-2.0 |
| [`packages/relay`](packages/relay) | `@ctxfile/relay` on npm: the self-hostable Sync relay and team hub (encrypted vaults, `/mcp` endpoint, federation, audit log). One Docker image | Apache-2.0 |
| [`packages/dashboard`](packages/dashboard) + [`packages/ui-kit`](packages/ui-kit) | The local instrument UI served by `ctxfile ui` | Apache-2.0 |
| [`apps/web`](apps/web) | [ctxfile.dev](https://ctxfile.dev): site and docs | Apache-2.0 |

## Open core, honestly

Everything in this repo is Apache-2.0 and works standalone, forever. The paid [Pro](https://ctxfile.dev/pricing) add-on (a separate, closed package) adds session connectors that read your recent sessions from **Claude Code, Cursor, Codex CLI, OpenCode, Gemini CLI, Aider, OpenClaw, and Hermes Agent**, encrypted cross-session memory, multi-provider [consult](https://ctxfile.dev/docs/pro) (Anthropic, **OpenRouter** for hundreds of models on one key, any OpenAI-compatible endpoint, or local Ollama), AI-distilled prompt [Playbooks](https://ctxfile.dev/docs/playbooks), and local voice capture. Licensing is an Ed25519-signed key verified **offline**. No phone-home, ever. Pro funds the open-source work.

## Contributing

We want your issues, your PRs, and your weird harness reports. Start with [CONTRIBUTING.md](CONTRIBUTING.md). Every ingested format, every MCP client quirk, every redaction gap you find makes the whole thing better.

- **Bugs and features**: [issues](https://github.com/ctxfile/ctxfile/issues)
- **Questions and show-and-tell**: [discussions](https://github.com/ctxfile/ctxfile/discussions)
- **Security reports**: [SECURITY.md](SECURITY.md) (please do not open public issues for vulnerabilities)

```bash
git clone https://github.com/ctxfile/ctxfile.git && cd ctxfile
npm install
npm run build && npm test    # the whole gate: lint, typecheck, tests
```

## Star history

If ctxfile saves you a cold start, [a star](https://github.com/ctxfile/ctxfile) is how other people find it.

<a href="https://star-history.com/#ctxfile/ctxfile&Date">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ctxfile/ctxfile&type=Date&theme=dark" />
    <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ctxfile/ctxfile&type=Date" />
    <img alt="Star history chart" src="https://api.star-history.com/svg?repos=ctxfile/ctxfile&type=Date" />
  </picture>
</a>

## License

[Apache-2.0](LICENSE). "ctxfile" and the ctxfile logo are trademarks of ctxfile; the license covers the code, not the name.
aiclaudecontextcursorlocal-firstmcpmodel-context-protocoltypescript

Lo que la gente pregunta sobre ctxfile

¿Qué es ctxfile/ctxfile?

+

ctxfile/ctxfile es mcp servers para el ecosistema de Claude AI. Local-first MCP server that snapshots your project's working state into one context object. Open-core, privacy-first. Tiene 4 estrellas en GitHub y su última actualización registrada es del 2026-09-13.

¿Cómo se instala ctxfile?

+

Puedes instalar ctxfile clonando el repositorio (https://github.com/ctxfile/ctxfile) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar ctxfile/ctxfile?

+

Nuestro agente de seguridad ha analizado ctxfile/ctxfile y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene ctxfile/ctxfile?

+

ctxfile/ctxfile es mantenido por ctxfile. La última actividad registrada en GitHub es del 2026-09-13, con 0 issues abiertos.

¿Hay alternativas a ctxfile?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega ctxfile en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: ctxfile/ctxfile
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ctxfile-ctxfile)](https://claudewave.com/repo/ctxfile-ctxfile)
<a href="https://claudewave.com/repo/ctxfile-ctxfile"><img src="https://claudewave.com/api/badge/ctxfile-ctxfile" alt="Featured on ClaudeWave: ctxfile/ctxfile" width="320" height="64" /></a>

Más MCP Servers

Alternativas a ctxfile