项目介绍
MCP 服务 · 2026-11-09 更新 · 本站尚未实测
ContextStream MCP Server 是 ContextStream 提供的 MCP 服务端,仓库自述为“The context platform for AI agents”。它把代码、文档与对话连接起来,让接入的 AI 助手在后续会话中定位相关文件、调取已保存的项目决策,并在不同工具与会话之间延续工作上下文。
需要说明的是,本仓库包含的是 MIT 许可的 Rust 实现的 MCP 服务端、客户端、编辑器安装配置与发布工具,README 明确写明托管后端独立存在、不在本仓库内。也就是说,实际检索与记忆能力依赖 ContextStream 的在线服务,而非仅靠本地代码即可完整运行。
核心能力
点击能力名称查看输入、输出和原文依据。
- 代码与文件检索:让助手找到与下一步改动相关的文件,并可要求其在回答中标注来源。
- 决策记忆:可让助手保存某项决策及其理由,并在新会话中重新检索,避免重复解释背景。
- 跨会话、跨工具延续:README 描述其面向多个 MCP 客户端与模型工作。
- 可选深度项目学习(Deep project learning):新账户默认关闭,需本人在登录后的隐私页面勾选同意;API Key 与 Agent 无法代为授权。
- ContextStudio(生成类工具):通过
studio工具支持图片、声音、音乐、视频等品牌素材与邮件的计划、制作与修订,邮件发送需用户确认,并说明通过团队自己的 Resend 账户发出。 - Package Bouncer(可选钩子):在 Claude Code 与 Cursor 执行安装命令前,比对公开注册表中的包名,降低安装到臆造包的风险。
README 列出的基准测试数据涉及 LongMemEval-S、LoCoMo、代码检索与 Agent 任务,并说明对比数字来自各厂商或论文自报、未由本方重跑,属于方向性参考,读者应结合官方方法论页面自行判断。
实际应用场景
适用场景
适合已使用 Claude Code、Cursor、Codex、GitHub Copilot、Gemini CLI、Qwen Code、Kimi Code、Zed 等 MCP 客户端的开发者,希望在多轮会话之间保留项目决策、减少重复交代背景,或让助手基于团队文档与代码库检索作答。对需要完全离线、自托管全部能力或对源码外传敏感的项目,应先阅读官方数据处理说明再决定。
安装与接入
README 给出的方式包括:
- macOS 与 Linux 一键脚本:
curl -fsSL https://contextstream.io/scripts/mcp.sh | bash - Windows PowerShell:
irm https://contextstream.io/scripts/mcp.ps1 | iex - npm 方式(需 Node.js 20+):
npx -y @contextstream/mcp-server@latest setup - 托管 MCP 端点(适用于支持 Streamable HTTP 与 OAuth 的客户端):
https://mcp.contextstream.io/mcp?default_context_mode=fast
安装后按引导连接项目与编辑器,并重启编辑器。README 提醒:仅用托管连接不会同步本地代码检出。仓库还提供 setup --dry-run、doctor、doctor --repair 用于预检与诊断;CI 场景建议加 pipefail,自动化 setup 需设置 CONTEXTSTREAM_API_KEY,多工作区账户还需 --workspace-id。
Transport
streamable-http 与 stdio
Auth
OAuth(托管端点)与 CONTEXTSTREAM_API_KEY(stdio/npm 包),资料未给出更细的鉴权细节
使用条件与限制
- 是否需要部署
- 服务入口见官方资料,客户端与认证要求见正文
- 是否需要注册
- 账号和认证要求见正文;未明确说明的项目仍待核验
- 是否需要 API Key
- 待核验
- 费用与额度
- 费用边界见正文,项目许可不代表模型或托管服务免费
- 所需权限
- 待核验
- 许可证与服务条款
- 待核验
权限费用与限制
- README 声明提供每月 10,000 信用额度、无需信用卡的免费起步方案;后续付费档位与额度消耗规则请以官方定价页为准,本文不给出价格。
- 索引会将符合条件的源内容发送至 ContextStream 用于托管检索;对话记录保存与本地 Git 元数据采集默认开启,可关闭。
- ContextStudio 的
make、邮件发送与联系人删除等操作需用户确认后执行;视频生成按其说明约需 13 至 21 分钟,结果链接有效期约 15 分钟。 - README 提到搜索延迟与所在区域有关;服务部署地域、数据存储地及国内网络可用性资料未说明,需核验。
国内使用情况
网友核验 用户经验分享
与站长实测独立,不代表官方认证或本站已实测。
最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。
分项统计、有效期与样本量
| 核验项目 | 有效人数 | 成功 / 部分 / 失败 / 无法判断 | 成功率 | 最近核验 / 有效期 |
|---|---|---|---|---|
| 官方网站访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| GitHub 仓库访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 安装与运行 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 官方服务国内连接 / MCP 连接 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 国内网络情况 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 国内模型兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 自定义 API | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外服务依赖 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外账号要求 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 中文界面 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 客户端兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 账号及费用信息 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。
最近有效核验
暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。
查看全部有效核验 →国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。
- 官方网站访问
- 尚未实测 待核验
- GitHub 仓库访问
- 尚未实测 待核验
- 官方服务国内连接
- 尚未实测 待核验
- 国内网络情况
- 尚未实测 待核验
- 国内模型兼容性
- 尚未实测 待核验
- 自定义 API
- 尚未实测 待核验
- 海外服务依赖
- 尚未实测 待核验
- 海外账号要求
- 尚未实测 待核验
- 中文界面
- 尚未实测 待核验
- 国内最后核验时间
- 尚未实测
许可与国内使用
本仓库代码为 MIT 许可,Copyright (c) 2025 ContextStream。README 同时指出托管后端独立、不包含在本仓库中,另有 NOTICE 与 GOVERNANCE 涉及商标与治理;公开仓库不等于托管服务免费或可自托管。ContextStream 服务、ContextStudio 及 Resend 邮件通道的条款、费用与可用地区需向官方核验。资料未说明中国大陆地区的访问与合规情况,请自行评估。
项目资料与来源
字段依据与待核验事项
access:来源确认 · curl -fsSL https://contextstream.io/scripts/mcp.sh | bash
project_type:来源确认 · The context platform for AI agents.
原始 README(折叠技术参考)
<!-- mcp-name: io.github.contextstream/mcp-server -->
<p align="center">
<img src="assets/contextstream-logo.png" alt="ContextStream" width="64" />
</p>
<h1 align="center">ContextStream MCP Server</h1>
<p align="center"><strong>The context platform for AI agents.</strong></p>
## 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.
<a href="https://contextstream.io/benchmarks">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/contextstream/mcp-server/main/assets/benchmarks-dark.png">
<img src="https://raw.githubusercontent.com/contextstream/mcp-server/main/assets/benchmarks-light.png" width="100%" alt="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)">
</picture>
</a>
The numbers, their sources, and what they do not claim are under [Benchmarks](#benchmarks).
<a id="install-in-30-seconds"></a>
## 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](docs/clients.md), 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?](docs/data-handling.md) ·
[Supported clients](docs/clients.md) ·
[Setup guide](https://contextstream.io/docs/editors/setup) ·
[Prefer to start on the web?](https://contextstream.io/lp/mcp-marketplace?utm_source=github&utm_medium=directory&utm_campaign=mcp_organic_2026q3&utm_content=card_cta)
## 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.
## 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.
| Benchmark | ContextStream | Compared with |
|---|---|---|
| **LongMemEval-S**, all 500 questions | **96.8%** (484/500); 96.0% on the half held out from tuning | Above 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 questions | **95.7%** (1474/1540); 95.8% held out; 97.8% on the audited answer key | Above 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 queries | **98.77%** best answer in the top 10; **100%** a useful file in the top 10 | Embedding-only search 72.84% and ripgrep 42.59% on the same queries and judgments |
| **Agent tasks**, 8 tasks × 3 trials | **23/24** passed (96%); 9/9 on tasks that need team knowledge | 14/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](https://contextstream.io/benchmarks).
## ContextStudio
For people ContextStream Create offers one-prompt making to, the server adds one tool,
`studio`: ask for a film, a product explainer filmed from your connected product, an
image, sound or music in plain words, and ContextStudio's producer plans the pieces from
what your team knows (brand kit, docs, decisions, connected products). There are no models
to pick.
- **Brand work by name.** Brand images (social sets in each network's size, ad sets, hero
and product shots, posters and flyers with print PDFs, email headers, brand graphics) and
brand sounds (sonic logos, music beds, loops, effect packs, voice-overs, podcast intros
and outros): pass `form`, with `sizes` (up to 6, such as `instagram-post` or
`linkedin-post`) or a `voice`, and the plan keeps to it.
- **Plan, then price.** `plan` returns the pieces and one price ("up to N credits, likely
about M") and spends nothing. Pass what your agent knows that the workspace may not (the
diff it just made, release notes, the doc it has open) as `context`; the producer reads
it next to the team's own context.
- **Your go-ahead.** `make` spends at most the plan's price, and only after you agree: a
client that can ask you (MCP elicitation, or a stateless `input_required` result) asks
you itself; otherwise the agent passes the price you accepted.
- **Following it.** `status` reports each piece while it waits (with
`notifications/progress` where the call asks for them); a product film takes 13 to 21
minutes. `result` shows images inline and links video and sound (signed links valid
about 15 minutes), with each piece's placard. Brand work comes as files, each with its
own link: every size as PNG, JPG and WebP with a ZIP of the set, a print PDF, or WAV and
MP3 for the web with a broadcast master and stems, plus alt text, a caption and the
checks it was held to.
- **Revising.** `revise` starts from a made image or sound: a `variation` (more like it), a
`revision` (it, changed as you say) or a `resize` (an image in new `sizes`). Also `stop`,
`library`, `brand` and `products`.
- **Email, where Create offers it.** Campaigns sent through your team's own Resend account.
`email_draft` writes one in your brand from a prompt ("announce our winter sale to
customers") and sends nothing; `email_audiences`, `email_campaigns`, `email_test` (to your
own address or Resend's test addresses), `email_cancel` and `email_report` (a campaign's
delivery, opens, clicks, bounces and complaints, or the workspace's trends). `email_send`
goes only with your go: the client asks you when it can; otherwise the agent shows you the
campaign and its recipient count and passes the count you agreed to.
`email_preview` gives a link to share that shows the email in Gmail, Outlook and Apple Mail
mockups (desktop, tablet and phone, light and dark, images on or off), with the inbox line
and what to check. `email_revise` changes a draft from plain words ("shorter subject") or
sets its subject and preview line; `email_duplicate` makes a draft copy. `email_contacts`
lists, adds (with where they agreed to hear from you) or unsubscribes contacts; erasing one
can't be undone, so it is the `delete` tool's (`studio.email_contact_erase`), after your go;
`email_unsubscribes` shows the suppression list with why and when, and takes an address off
it only with your go. Resend is connected in the studio, never through an agent: the tool
refuses anything shaped like a Resend key.
- **Connector.** The hosted path `/studio` serves only this tool, for Claude.ai or ChatGPT
connectors, with OAuth tokens bound to that resource (`read:studio`, `write:studio`).
## 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](docs/data-handling.md) before
connecting sensitive projects.
<details>
<summary><strong>Other installation options and troubleshooting</strong></summary>
### 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](docs/clients.md) 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](https://contextstream.io/docs/mcp)
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" }] } }
```
</details>
## 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](docs/architecture.md), [release integrity](docs/release.md),
and [latest release](https://github.com/contextstream/mcp-server/releases/latest).
```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](CONTRIBUTING.md). Report vulnerabilities using
[SECURITY.md](SECURITY.md). See [LICENSE](LICENSE), [NOTICE](NOTICE), and
[GOVERNANCE.md](GOVERNANCE.md) for licensing, trademarks, and project governance.
---
**Let humans be human.**
[Docs](https://contextstream.io/docs/mcp) ·
[Pricing](https://contextstream.io/pricing) ·
[Integrations](https://contextstream.io/docs/integrations) ·
[Benchmarks](https://contextstream.io/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](docs/data-handling.md).
历史前置条件说明(补充参考)
需 MCP 客户端(如 Claude Code、Cursor、Codex、Gemini CLI、Qwen Code、Kimi Code、Zed 等);npm 方式需 Node.js 20+;需 ContextStream 账户与 CONTEXTSTREAM_API_KEY;完整检索与记忆依赖其托管后端,需联网;免费额度与后续费用以官方定价页为准(待核验);服务部署地域与国内网络可用性待核验。
项目来源与清单版权许可
https://github.com/contextstream/mcp-server
整理来源:https://github.com/slavakurilyak/awesome-ai-agents
清单版权与许可:
MIT License
Copyright (c) 2024 Slava Kurilyak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.