
context-mcp
io.github.arthurhoch/context-mcp
Searchable project memory, investigation evidence, and private preferences for coding agents.
Documentation
Context MCP
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.
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
https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-linux-x64.mcpb# mcpb: https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-linux-x64.mcpbhttps://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-linux-arm64.mcpb# mcpb: https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-linux-arm64.mcpbhttps://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-macos-x64.mcpb# mcpb: https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-macos-x64.mcpbhttps://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-macos-arm64.mcpb# mcpb: https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-macos-arm64.mcpbhttps://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-windows-x64.mcpb# mcpb: https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-windows-x64.mcpbhttps://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-windows-arm64.mcpb# mcpb: https://github.com/arthurhoch/context-mcp/releases/download/v0.2.0/context-mcp-windows-arm64.mcpb