Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

ContextStream MCP Server

@contextstreamioRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

ContextStream MCP server for code context, memory, search, and AI tools.

Code searchv0.4.81MITRust
Freeno charge per call

Runs on your machine from its package; the steps are below.

ContextStream benchmarks: LongMemEval-S 96.8% (484 of 500), LoCoMo 95.7%, code search 98.77% best answer in the top 10, agent tasks 96% (23 of 24, up from 58% without it)
From the README

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npm@contextstream/mcp-serverv0.4.81

Run

npx -y @contextstream/mcp-server

MCP client config

{
  "mcpServers": {
    "contextstream-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@contextstream/mcp-server"
      ]
    }
  }
}
README12 min read

ContextStream

ContextStream MCP Server

The context platform for AI agents.

Your agent knows code. Give it the decisions behind yours.

Connect your code, docs, and conversations so your agents can find the right files, recall saved decisions, and build on past work across sessions and tools.

ContextStream benchmarks: LongMemEval-S 96.8% (484 of 500), LoCoMo 95.7%, code search 98.77% best answer in the top 10, agent tasks 96% (23 of 24, up from 58% without it)

The numbers, their sources, and what they do not claim are under Benchmarks.

Start free with MCP

10,000 monthly credits. No credit card required.

Works with Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Qwen Code, Kimi Code, Muse Code, ZCode, Zed, and more MCP clients, on Claude, GPT, Gemini, Kimi, GLM, Qwen, and other models. Create your account or sign in during MCP onboarding. No separate website signup needed.

macOS and Linux

sh
curl -fsSL https://contextstream.io/scripts/mcp.sh | bash

Windows PowerShell

powershell
irm https://contextstream.io/scripts/mcp.ps1 | iex

Paste the command into your terminal and follow onboarding to connect your project and supported editor. Restart your editor after setup.

What gets installed and indexed? · Supported clients · Setup guide · Prefer to start on the web?

Make the next session useful

Ask your connected agent:

Use ContextStream to find the files relevant to my next change. Cite the sources and retrieve any saved project decisions that should guide the work.

Then ask it to save a real decision and its reason. Start a new session and retrieve that decision without explaining it again. Indexing supplies code context; it cannot recover every undocumented decision.

Give any AI app the project: Live Capsule

Ask your agent to "make a live capsule". One capsule(action="live") call returns:

  • a live link (/c/<token>/live) to paste into ChatGPT or Claude: small, current pages about the file tree, files, symbols, decisions, lessons, plans and docs, which the chat reads by following links;
  • an MCP link (/c/<token>/mcp) to add once as a custom connector in Claude, ChatGPT, Gemini, Cursor or any MCP app. The app shows it as "Live Capsule". It needs no sign-in, because the link is its own key.

By default a link shows no file contents and no personal items, and it expires after 7 days. Including code or personal items, or a longer expiry (up to 30 days), happens only when you ask for it. You can revoke a link at any time. When someone pastes a live link, the agent reads it with capsule(action="live_read").

Use capsule(action="create", review=...) in a local MCP session to make a Review Capsule from Git changes with secret redaction. Capsules and handoffs can show the verification state of the indexed tree.

Check your changes

Turn on remote checks with contextstream-mcp remote-checks on or session(action="remote_checks", enabled=true). In a local MCP session, check runs supported tests, lints, type checks and builds on a worker using a snapshot of your checkout. From a shell, use contextstream-mcp run -- <command>. If the worker declines the check, run runs the command on your machine. Supported toolchains.

  • Run the checks your edit needs. Use verify (also callable as ms_verify) in a local MCP session. It uses the project's dependency and test graph to choose checks. It widens the run for changes such as lockfiles, migrations, auth code, shared fixtures or configuration, and when the graph finds broad impact or cannot map the changes to tests. Ask for scope="full" to run the full detected suite before completing a task. Checks run remotely when available, with a local fallback, and stop at the first failure. To choose checks by directory, open Verification Map in the workspace's Capsules panel. The next targeted plan uses the most specific matching rules alongside the graph's checks. The panel flags stale rules.
  • Check more commands in one run. Supported && chains use one checkout upload and stop on the first failure. The MCP reports stages as they run when the client supplies a progress token. Try npx prisma generate && npx tsc --noEmit, npx next typegen && npx tsc --noEmit or npx svelte-kit sync && npx svelte-check. Checks also cover tools such as tsgo, Oxlint, Oxfmt in check mode, vue-tsc --noEmit, astro check, ty check, Pyrefly, Basedpyright, cargo fmt --check and go tool staticcheck. Run Prettier with --check, -c, --list-different or -l through npx, pnpm exec, yarn exec, npm exec or the project's node_modules/.bin. Use the project's pinned Prettier version. The worker declines write flags such as --write and -w.
  • See what broke. When base-tree results are available, failure diagnostics put new failures ahead of existing ones. The report can cite a matching lesson, decision or commit.
  • Check consumers of a shared contract. After a successful remote check from a local MCP session, ContextStream can check indexed consumers in the same workspace. It applies eligible changed contract files to each reachable consumer's default branch in the worker and returns compiler errors with your result. The worker needs the consumer's default-branch tree from a previous check. A consumer whose change cannot be applied is reported as unverified.
  • Prepare before the first check. Supported local editor hooks can send a free :prepare call in the background to set up the worker's checkout and dependencies. A busy worker or failed preparation leaves the next check to start as usual. Remote checks can report up to 32 local tool versions. They use go version for Go and try java --version followed by java -version for Java.
  • Check saves in the background. Speculative checks are off until you opt in. With remote checks enabled, set CONTEXTSTREAM_SPECULATIVE_CHECKS=on for the editor hooks, or set speculative_checks with enabled in PUT /api/v1/mcp/hosted-tools/enabled for your account. After a supported edit and a pause, the hook can run up to three checks. A matching cached result costs no credits. The hosted service defaults to 100 speculative credits per account per hour in addition to the client's limits below. Explicit checks can still run when the speculative budget is spent.
  • Require a passing receipt. Workspace owners and admins can set a gate for pushes, pull-request creation or completion through the API. Gates start off. The policy can require specific check families. An enabled gate names what is missing when the exact Git tree lacks a fresh passing receipt. Git's managed pre-push hook checks the trees being pushed, including from a terminal. Setup installs it where Git capture is enabled. Set up verification gates.

Remote check environment variables

Set these in the environment of the local MCP process, editor hooks or shell that runs the check.

VariableDefaultWhat it controls
CONTEXTSTREAM_HOSTED_TOOLSUnset, so available hosted tools can be usedoff disables hosted check execution, command routing, background preparation, speculative checks and local receipt gates.
CONTEXTSTREAM_CONTRACT_CHECKOnoff skips the consumer check.
CONTEXTSTREAM_SPECULATIVE_CHECKSFollows the account setting, which starts offon opts in locally when check is available. off overrides the account setting.
CONTEXTSTREAM_SPECULATIVE_DEBOUNCE_MS3000Milliseconds to wait after a supported edit. 0 removes the wait.
CONTEXTSTREAM_SPECULATIVE_HOURLY_CAP30Local speculative credits per hour across repositories for the configured credential and API. 0 stops background execution.
CONTEXTSTREAM_SPECULATIVE_REPO_HOURLY_CAP15Local speculative credits per repository per hour. 0 stops background execution.
CONTEXTSTREAM_CHECKOUT_SNAPSHOTAllowed when a local call needs a snapshotoff disables checkout snapshots for hosted checks, speculative checks and :prepare.
CONTEXTSTREAM_CHECKOUT_SNAPSHOT_REPOSAll repositories eligibleLimit snapshots to repositories whose origin URL or checkout folder name starts with a listed prefix. Use commas or spaces between prefixes.
CONTEXTSTREAM_HOSTED_ENVOnoff omits the streamed environment description and tool-version probes.
CONTEXTSTREAM_HOOK_ENABLEDOn for installed editor hooksoff disables editor hook activity, including automatic preparation, speculative checks and editor-side gates. Git hooks have separate controls.
CONTEXTSTREAM_SESSION_INIT_ENABLEDOnfalse disables the session-start hook, including its :prepare trigger.
CONTEXTSTREAM_POSTWRITE_ENABLEDOnfalse disables the post-write indexing path and its :prepare trigger. Speculative scheduling happens before this switch is read.
CONTEXTSTREAM_GIT_CAPTUREFollows the repository setting, then the global defaultoff stops Git event capture and skips managed hook installation. An already installed pre-push hook can still check receipts.
CONTEXTSTREAM_GIT_CAPTURE_DEFAULTOnSets the fallback for Git capture when the repository and CONTEXTSTREAM_GIT_CAPTURE leave it unset.
CONTEXTSTREAM_CAPSULE_ENABLEDOn for regular sessionsoff hides the capsule tool in those sessions, including Review Capsule creation.
CONTEXTSTREAM_HTTP_LOCAL_FILESOff for HTTP connectionsallow is a self-hosted gateway setting for access to the gateway's own filesystem. Use a local client to check your checkout.

The hooks also read the usual connection settings. CONTEXTSTREAM_API_KEY, CONTEXTSTREAM_WORKSPACE_ID and CONTEXTSTREAM_PROJECT_ID have no built-in value. The hooks can read them from local configuration. CONTEXTSTREAM_API_URL defaults to https://api.contextstream.io when local configuration supplies no address.

What remote checks and verification send.

Benchmarks

Each benchmark runs through the production API, is registered before its results are read, and is published with its method, confidence interval, and losses.

BenchmarkContextStreamCompared with
LongMemEval-S, all 500 questions96.8% (484/500); 96.0% on the half held out from tuningAbove Mastra (94.87%) and supermemory (85.4%) on the same official GPT-4o judge. Level with agentmemory's self-reported 96.2%, which is inside our 95% interval
LoCoMo, all 1,540 questions95.7% (1474/1540); 95.8% held out; 97.8% on the audited answer keyAbove every system in the EverMemOS paper's same-judge table: EverMemOS 93.05%, Zep 85.22%, MemOS 80.76%, MemU 66.67%, Mem0 64.20%
Code search, 177 judged developer queries98.77% best answer in the top 10; 100% a useful file in the top 10Embedding-only search 72.84% and ripgrep 42.59% on the same queries and judgments
Agent tasks, 8 tasks × 3 trials23/24 passed (96%); 9/9 on tasks that need team knowledge14/24 (58%) and 0/9 with the repository alone

61 ms median server-side search time (127 ms p95) in the October 27 production run. End to end it was 223 ms, because the client ran in a different region from the one serving the workspace. Your latency depends on your distance from that region.

Competitor figures are as each vendor or the EverMemOS paper published them; we did not re-run them, and readers and judges differ across rows. The code-search baselines come from the August 1 run on the same queries. The agent-task result uses one repository and one agent model, so treat it as directional. Results, methodology, and limitations.

Data controls

Scoped access. Traceable sources. Configurable capture. Indexing sends eligible source contents to ContextStream for hosted search. Transcript saving and local Git metadata capture are on by default and can be turned off. Review data handling and controls before connecting sensitive projects.

Live run progress from the hooks (a run that starts when your agent takes up a ticket, or after two minutes of work it reported nothing on, stays live while the session works and ends with it, without the agent having to report) is off by default. Turn it on for yourself with CONTEXTSTREAM_RUN_PROGRESS_AUTO=on in the environment your editor starts with; what it sends. For Codex, run contextstream-mcp update-hooks with it set and approve the two hooks it adds with /hooks in Codex CLI.

Other installation options and troubleshooting

npm (Node.js 20+)

bash
npx -y @contextstream/mcp-server@latest setup

The npm launcher downloads the native Rust binary for your platform and verifies its SHA-256 checksum. Pin an exact package version for production automation.

Hosted MCP without a local process

For clients supporting Streamable HTTP and OAuth, the hosted endpoint is:

text
https://mcp.contextstream.io/mcp?default_context_mode=fast

Supported clients lists one-line add commands for Claude Code, Codex, Gemini CLI, Qwen Code, Copilot CLI, and Droid, and one-click install for VS Code. Use the MCP documentation for other clients and stdio alternatives. A hosted connection alone does not sync your local checkout.

Preview or diagnose setup

bash
contextstream-mcp setup --dry-run
contextstream-mcp doctor
contextstream-mcp doctor --repair

Scripted and CI setup

For automation, wrap the install in pipefail so it fails when the download fails, instead of reporting success after installing nothing:

bash
bash -o pipefail -c 'curl -fsSL https://contextstream.io/scripts/mcp.sh | bash'

setup --yes reads the key from CONTEXTSTREAM_API_KEY or saved credentials, and needs --workspace-id when the account has more than one workspace:

bash
export CONTEXTSTREAM_API_KEY=...   # or: printf %s "$KEY" | contextstream-mcp configure --api-key-stdin
contextstream-mcp setup --yes --editors=claude --workspace-id=<UUID> --project-path=.

Package Bouncer (opt-in)

A hook for Claude Code and Cursor that checks the packages an install command names against their public registry before the command runs. It covers npm, pnpm, yarn, bun, npx, pip, uv, uvx, pipx, poetry and cargo, including claude mcp add ... -- npx ....

  • It denies a package the registry does not have, naming the popular package it looks like. An agent may have invented the name, and anyone can register it.
  • It asks before a barely downloaded lookalike of a popular package.
  • It allows everything else, including whenever a lookup fails or takes too long.

It skips projects and commands that use a private registry (.npmrc, pip.conf, uv or poetry sources, --registry, --index-url). CONTEXTSTREAM_PACKAGE_BOUNCER=off turns it off.

Claude Code: add this entry to PreToolUse in ~/.claude/settings.json, next to the hooks setup installed. update-hooks leaves it alone.

json
{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "contextstream-mcp hook package-bouncer", "timeout": 8 }] }

Cursor (~/.cursor/hooks.json):

json
{ "version": 1, "hooks": { "beforeShellExecution": [{ "command": "contextstream-mcp hook package-bouncer" }] } }

Open source and contributing

This repository contains the MIT-licensed Rust MCP server, client, editor setup, and release tooling. The hosted backend is separate and is not included here. See the architecture, release integrity, and latest release.

bash
cargo build --locked -p mcp-server --bin contextstream-mcp
cargo test --locked --workspace

Use the pinned Rust toolchain. For contribution checks and commit sign-off, read CONTRIBUTING.md. Report vulnerabilities using SECURITY.md. See LICENSE, NOTICE, and GOVERNANCE.md for licensing, trademarks, and project governance.


Let humans be human.

Docs · Pricing · Integrations · Benchmarks

Optional deep project learning

Deep project learning starts off for new accounts. Interactive setup offers it once per account (or once when terms change) and remembers if you decline; plain contextstream-mcp setup --yes preserves your current choice.

bash
contextstream-mcp configure --account-learning status   # show current consent state
contextstream-mcp configure --account-learning on       # open privacy page in browser (or print URL)
contextstream-mcp configure --account-learning off      # withdraw consent and queue deletion

--deep-learning is accepted as an alias for --account-learning. Only a person can grant consent by ticking the unchecked box on the signed-in privacy page (https://contextstream.io/dashboard/account/privacy); agents and API keys cannot consent for you. Doctor and init show status only. See data handling and controls.

Similar modules

Browse Code search