
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@contextstream/mcp-server
Advanced tools
ContextStream MCP server - v0.4.x with consolidated domain tools (~11 tools, ~75% token reduction). Code context, memory, search, and AI tools.
Your AI coding assistant finally has a memory.
ContextStream gives your AI tools persistent context across sessions, semantic code search, and team knowledge sharing. Every decision, preference, and lesson learned is captured and surfaced when relevant.
npx -y @contextstream/mcp-server setup
Works with Cursor, Antigravity, Claude Code, Windsurf, VS Code, Claude Desktop, Codex CLI, and more.
Without ContextStream, every AI conversation starts from scratch:
ContextStream creates a shared brain for your AI assistant:
| What you get | How it works |
|---|---|
| Persistent Memory | Decisions, preferences, and notes survive across sessions |
| Semantic Code Search | Find code by meaning, not just keywords |
| Team Knowledge | Share context across your team's AI tools |
| Integration Sync | Pull context from GitHub, Slack, and Notion automatically |
| Smart Context | Your AI gets relevant context for every message |
You say... → ContextStream does...
| Prompt | What happens |
|---|---|
| "What did we decide about auth?" | Finds the decision from 3 weeks ago |
| "Remember we're using PostgreSQL" | Captured for all future sessions |
| "Search for payment handling code" | Semantic search across your codebase |
| "What depends on UserService?" | Analyzes dependency graph and impact |
| "Show me recent GitHub activity" | Surfaces issues, PRs, and discussions |
| "What's in our API docs on Notion?" | Searches your Notion knowledge base |
No special commands needed. Just describe what you want.

The setup wizard handles everything:
npx -y @contextstream/mcp-server setup
This will:
That's it. Start a conversation and your AI now has memory.
ContextStream automatically tracks:
| Type | Examples |
|---|---|
| Decisions | "We chose JWT over sessions", "Using Tailwind for styling" |
| Preferences | "I prefer functional components", "Always use TypeScript" |
| Lessons | "That approach caused a memory leak", "This pattern works well" |
| Tasks | Implementation plans, TODOs, follow-ups |
| Code Context | File relationships, dependencies, patterns |
Everything is searchable by meaning, not just keywords.
Connect your team's tools to enrich AI context automatically:
ContextStream shines for teams:
AI tools typically gather context by reading entire files, running grep searches, and iterating until they find what they need. This burns through your token budget fast.
ContextStream takes a different approach:
Bounded retrieval — context_smart returns only the context relevant to your current message, within a strict token budget. Instead of reading 10 files to find one decision, you get exactly what matters.
Semantic search — Find code by meaning in a single query. No more grep "auth" → read file → grep "middleware" → read another file loops. One search, relevant results.
Smart output formats — Choose the verbosity you need:
paths format (80% smaller responses)count format (90% smaller)full formatAI-powered compression — For complex queries, Context Pack distills large code contexts into compact, high-signal summaries that preserve file paths, line numbers, and essential snippets.
The result: your AI gets better context while using fewer tokens. Faster responses, lower costs, and more room in the context window for actual work.
Your AI uses these automatically:
| Tool | Purpose |
|---|---|
session_init | Load workspace/project context at conversation start |
context_smart | Get relevant context for each message |
search | Semantic, hybrid, or keyword search across everything |
session | Capture and recall decisions, preferences, lessons |
memory | Create and manage knowledge nodes |
graph | Analyze code dependencies and impact |
integration | Query GitHub, Slack, Notion directly |
Full tool reference: https://contextstream.io/docs/mcp/tools
Skip this if you used the setup wizard.
Add to your MCP config:
{
"mcpServers": {
"contextstream": {
"command": "npx",
"args": ["-y", "@contextstream/mcp-server"],
"env": {
"CONTEXTSTREAM_API_KEY": "YOUR_API_KEY"
}
}
}
}
Config locations:
~/.cursor/mcp.json~/.codeium/windsurf/mcp_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonclaude mcp add --transport stdio contextstream --scope user \
--env CONTEXTSTREAM_API_KEY=YOUR_KEY \
-- npx -y @contextstream/mcp-server
ContextStream can install hooks that enforce best practices:
Install hooks automatically when generating rules:
npx -y @contextstream/mcp-server setup
# Or: mcp__contextstream__generate_rules(editors=["claude"])
Hooks are installed to ~/.claude/hooks/ and configured in ~/.claude/settings.json. Your custom rules are preserved — only ContextStream blocks are updated.
Add to .vscode/mcp.json:
{
"servers": {
"contextstream": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@contextstream/mcp-server"],
"env": {
"CONTEXTSTREAM_API_KEY": "${input:contextstreamApiKey}"
}
}
},
"inputs": [
{
"id": "contextstreamApiKey",
"type": "promptString",
"description": "ContextStream API Key",
"password": true
}
]
}
Add to ~/.codex/config.toml:
[mcp_servers.contextstream]
command = "npx"
args = ["-y", "@contextstream/mcp-server"]
[mcp_servers.contextstream.env]
CONTEXTSTREAM_API_KEY = "YOUR_API_KEY"
| Variable | Description |
|---|---|
CONTEXTSTREAM_API_KEY | Your API key (required) |
CONTEXTSTREAM_API_URL | API endpoint (default: https://api.contextstream.io) |
CONTEXTSTREAM_WORKSPACE_ID | Default workspace |
CONTEXTSTREAM_PROJECT_ID | Default project |
CONTEXTSTREAM_SEARCH_REMINDER | Set to false to disable search-first reminders |
CONTEXTSTREAM_HOOK_ENABLED | Set to false to disable hooks without uninstalling |
| Issue | Solution |
|---|---|
| Tools not appearing | Restart your editor after config changes |
| 401 Unauthorized | Check your API key is correct |
| Wrong workspace | Run session_init or re-run the setup wizard |
| Resource | URL |
|---|---|
| Website | https://contextstream.io |
| Documentation | https://contextstream.io/docs |
| Tool Reference | https://contextstream.io/docs/mcp/tools |
| Pricing | https://contextstream.io/pricing |
MIT
FAQs
Verified npm launcher for the open-source ContextStream Rust MCP server
The npm package @contextstream/mcp-server receives a total of 1,253 weekly downloads. As such, @contextstream/mcp-server popularity was classified as popular.
We found that @contextstream/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.