Skip to main content
Glama

Context MCP

Latest release CI License MCP Registry

M8ven Score

Context MCP is a Rust server that gives coding agents searchable project memory. Find an earlier investigation by error, symptom, or filename, open the evidence, and resume from the last verified result. Keep private preferences and engineering standards in a personal profile that follows you between computers.

  • Search project files, shared knowledge, and explicitly related projects.

  • Record a versioned investigation with excerpts and SHA-256 evidence hashes. Export its timeline and evidence to Markdown from the CLI.

  • Load business rules and coordinate work across Codex and Cursor. A private profile can also supply coding preferences, architecture by language, and minimum project requirements.

  • Run locally over stdio or self-host behind HTTPS with one revocable bearer token per device. SQLite stores data on the host you choose.

Install with an agent

Paste this into a coding agent with terminal access.

Install Context MCP for my MCP client. Detect my operating system and CPU.
Download the matching archive and SHA256SUMS from
https://github.com/arthurhoch/context-mcp/releases/latest.
Verify the archive checksum and extract it to a permanent location.
Use "context-mcp demo <new-directory>" to create a synthetic catalog.
Run "context-mcp --config <demo>/catalog.toml validate" and index pw-fixture,
geral, and pw-utilitarios with that catalog. Register the stdio launcher with
absolute paths using "context-mcp --config <demo>/catalog.toml serve".
Preserve my existing MCP entries and catalogs. After the client reconnects,
look up PW-MOEDA-042 in pw-fixture and open its verified evidence.

Related MCP server: pollux-mcp

Download and run

The release archives include the executable, documentation, and configuration examples. Rust is needed only when building from source.

System

x64 (Intel/AMD)

ARM64 (Apple Silicon/ARM)

macOS

Download

Download

Linux

Download

Download

Windows

Download

Download

Choose a platform-specific .mcpb asset if your client supports MCP bundles. The bundle launches the server over stdio and prompts for a catalog TOML. See the download verification guide for checksums and GitHub build attestations.

Try the demo

Run this from an extracted macOS or Linux archive.

bin="$PWD/context-mcp"
demo="$(mktemp -d)/context-demo"
"$bin" demo "$demo"
"$bin" --config "$demo/catalog.toml" validate
"$bin" --config "$demo/catalog.toml" index pw-fixture
"$bin" --config "$demo/catalog.toml" index geral
"$bin" --config "$demo/catalog.toml" index pw-utilitarios

On Windows, use context-mcp.exe and pass a new directory as the demo destination. The demo produces a catalog, a synthetic investigation, and investigacao.md. After connecting a client, ask it to find PW-MOEDA-042 in pw-fixture and open the evidence. It should find that providing a fixture RecipientId made the simulated operation succeed. The demo uses synthetic files and logs.

To export an investigation, use its UUID from the demo output or search_context.

"$bin" --config "$demo/catalog.toml" export pw-fixture INVESTIGATION_UUID > investigation.md

Connect your MCP client

Codex

With the paths from the demo above, register the launcher and open a new chat.

codex mcp add context-mcp -- "$bin" --config "$demo/catalog.toml" serve
codex mcp list

Cursor

Merge this entry into ~/.cursor/mcp.json for all workspaces or .cursor/mcp.json for one workspace. Use absolute paths to your binary and catalog.

{
  "mcpServers": {
    "context-mcp": {
      "command": "/absolute/path/context-mcp",
      "args": ["--config", "/absolute/path/context-demo/catalog.toml", "serve"]
    }
  }
}

GitHub Copilot in VS Code

Use the Copilot setup guide for local stdio or for a self-hosted server authenticated with an environment variable.

Self-host and enable personal memory

Run serve-http on loopback behind your HTTPS reverse proxy. Publish /mcp, /agent-context, and /personal-memory through the proxy and give each computer its own token. See the VPS and client setup guide.

Create a profile on the server and issue device tokens linked to it. Personal entries stay in a separate SQLite database. A preference or rule can apply everywhere, or be scoped to a language or project. A new profile includes editable readability, architecture, and verification defaults. Use the personal memory guide to install the user-level hooks for Codex and Cursor.

Codex loads personal memory on prompt submission. Cursor loads it asynchronously when a chat opens. The personal memory CLI can read or update the profile from either client when the device token is available.

MCP tools

Tool

Purpose

list_projects

Discover project IDs and their available sources.

search_context

Search files, saved investigation entries, and configured shared context.

open_reference

Read a reference with its origin, version, and evidence.

record_context

Save a durable finding, decision, or verification with evidence.

Pass the exact project_id for project operations. See the MCP contract for arguments, search scope, and pagination.

Build from source

From the repository root, use rustup with the pinned toolchain and a C compiler for the bundled SQLite library.

cargo build --release --locked
target/release/context-mcp --version

Documentation · Changelog · Privacy · Security

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for local-first project memory, enabling AI agents to log, search, and retrieve structured project history, summaries, and per-file dossiers with client-specific configuration and diagnostics.
      15
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A local MCP server that lets coding agents persist decisions, conventions and gotchas across sessions and recall them with ranked search. Each memory is anchored to the files it describes, so recall flags it as stale when that code changes, and secrets are redacted before anything is stored.
      5
      2
      MIT