
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
@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
MCP server that gives AI coding assistants persistent memory, semantic code search, a dependency graph, grounded Q&A, and team context (GitHub/Slack/Notion) — works with Claude Code, Cursor, VS Code Copilot, Windsurf, Cline, and any Model Context Protocol
The npm package @contextstream/mcp-server receives a total of 387 weekly downloads. As such, @contextstream/mcp-server popularity was classified as not 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.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.