
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@contextstream/mcp-server
Advanced tools
MCP server exposing ContextStream public API - code context, memory, search, and AI tools for developers
Persistent memory + semantic search + dependency/impact analysis for Cursor, Claude Code, Windsurf, VS Code, Codex CLI, and any MCP client.
The universal memory layer for AI coding tools.
One integration. Every AI editor. Persistent memory that never forgets.
β If this saves you time, please star the repo β it helps others find it!
Every developer using AI tools has felt this frustration:
Monday morning. You've spent 3 hours with Claude explaining your authentication architecture, the edge cases, why you chose JWT over sessions, the rate limiting strategy. The AI finally gets it. You ship great code together.
Monday afternoon. New chat window. The AI has no idea what JWT is in your context. It suggests sessions. You explain everything again.
Tuesday. You switch to Cursor for a quick refactor. Start from zero. "We use TypeScript with strict mode." "Our API follows REST conventions." "The user service is in /src/services." Again.
A week later. "Why did we build it this way?" Nobody remembers. The decision rationale is buried in a closed Slack thread. The AI certainly doesn't know.
A month later. New team member joins. Days of onboarding conversations. Explaining the same architectural decisions. Documenting tribal knowledge that should already exist.
This isn't a minor inconvenience. It's death by a thousand cuts.
Every re-explanation is lost productivity. Every forgotten decision is technical debt. Every context switch is cognitive load. Every new teammate is weeks of redundant knowledge transfer.
Your AI is brilliant for 30 minutes at a timeβthen it's a goldfish.
ContextStream gives your AI a permanent brain.
You: "Initialize session. Remember: we use PostgreSQL, TypeScript strict mode,
and JWT for auth. Rate limits are 100 req/min per user."
...3 weeks later, different tool, new conversation...
You: "What database do we use?"
AI: "You're using PostgreSQL. You also prefer TypeScript with strict mode
and JWT authentication with 100 req/min rate limiting per user."
It remembers. Across sessions. Across tools. Forever.
Not just factsβdecisions, context, and reasoning:
You: "Why did we choose PostgreSQL over MongoDB?"
AI: "Based on your captured decision from March 15th: 'Chose PostgreSQL for
ACID compliance and complex joins in the reporting module. MongoDB
considered but rejected due to transaction requirements.'"
Sign up at contextstream.io β Settings β API Keys β Create
Claude Code / Cursor / Windsurf / VS Code:
{
"mcpServers": {
"contextstream": {
"command": "npx",
"args": ["-y", "@contextstream/mcp-server"],
"env": {
"CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
"CONTEXTSTREAM_API_KEY": "your_api_key"
}
}
}
}
Codex CLI (~/.codex/config.toml):
[mcp_servers.contextstream]
command = "npx"
args = ["-y", "@contextstream/mcp-server"]
[mcp_servers.contextstream.env]
CONTEXTSTREAM_API_URL = "https://api.contextstream.io"
CONTEXTSTREAM_API_KEY = "your_api_key"
Codex expects snake_case
mcp_serverskeys. After editing, fully restart Codex.
For workspace-pooled rate limiting (Team/Enterprise), the MCP server sends
X-Workspace-Idbased on the active repo/session (or explicitworkspace_idin tool calls). You can optionally setCONTEXTSTREAM_WORKSPACE_IDas a fallback default, but itβs not required and isnβt a good fit if you frequently switch workspaces.
Adding rules files ensures your AI automatically uses ContextStream for memory on every conversation.
β οΈ Critical: Tool Naming Convention
AI Tool Tool Name Format Example Claude Code mcp__<server>__<tool>mcp__contextstream__session_initAll Others (Codex, Cursor, Windsurf, Cline, etc.) <tool>(raw)session_init
For Claude Code β Create CLAUDE.md in your project root:
## ContextStream Integration
| Message | What to Call |
|---------|--------------|
| **1st message** | `mcp__contextstream__session_init(folder_path="...", context_hint="<user's message>")` |
| **2nd+ messages** | `mcp__contextstream__context_smart(user_message="<user's message>")` |
| **After tasks** | `mcp__contextstream__session_capture(...)` |
**NO EXCEPTIONS.** Call these tools before responding.
For Codex CLI β Create AGENTS.md in ~/.codex/ (global) or project root:
## ContextStream Integration
| Message | What to Call |
|---------|--------------|
| **1st message** | `session_init(folder_path="...", context_hint="<user's message>")` |
| **2nd+ messages** | `context_smart(user_message="<user's message>")` |
| **After tasks** | `session_capture(...)` |
**NO EXCEPTIONS.** Call these tools before responding.
For other editors β See full templates in the docs.
You: "Initialize session and remember I prefer functional React components"
Open a new conversation (even in a different tool):
You: "What's my React preference?"
AI: "You prefer functional React components."
β¨ That's it. Your AI remembers now.
MCP gives your AI memory. Integrations make that memory richer by pulling in PRs, issues, and team conversations.
After you connect, try prompts like:
"Search our Slack messages for the decision about rate limiting."
"What did we decide in GitHub issues about the auth flow?"
Memory is just the foundation. ContextStream understands your codebase at a deeper level.
When your AI makes a mistakeβwrong approach, broken build, production issueβcapture it as a lesson:
You: "Capture lesson: Always run tests before pushing to main"
These lessons surface automatically in future sessions. Before the AI takes a similar action, it sees the warning. Your AI learns from mistakes just like you do.
| Trigger | Example |
|---|---|
| User correction | "No, we use PostgreSQL not MySQL" |
| Production issue | "That deploy broke the API" |
| Workflow mistake | "You forgot to run the linter" |
Lessons are categorized by severity (critical, high, medium, low) and automatically retrieved when relevant context is detected.
You: "What breaks if I change the UserService class?"
See all dependencies and side effects before you refactor. No more surprise breakages.
You: "Find where we handle authentication errors"
Search by meaning, not keywords. Find code by what it does, not what it's named.
Decisions, code, and documentationβall connected. Ask "why" and get answers with full context.
Context loads automatically on first interaction. No manual setup:
βββββββββββββββββββββββββββββββββββββββββββ
π§ AUTO-CONTEXT LOADED (ContextStream)
βββββββββββββββββββββββββββββββββββββββββββ
π Workspace: acme-corp
π Project: backend-api
π Recent Decisions:
β’ Use PostgreSQL for persistence
β’ JWT for authentication
β οΈ Active Lessons:
β’ Always run tests before pushing
π§ Recent Context:
β’ [decision] API rate limiting strategy
β’ [preference] TypeScript strict mode
βββββββββββββββββββββββββββββββββββββββββββ
| Tool | What It Does |
|---|---|
session_init | Initialize with auto-context loading |
context_smart | Get relevant context for any message |
session_remember | Natural language: "Remember X" |
session_recall | Natural language: "What did we decide about X?" |
session_capture | Store decisions, insights, preferences |
session_capture_lesson | Capture mistakes to prevent repeating them |
session_get_lessons | Retrieve relevant lessons |
| Tool | What It Does |
|---|---|
search_semantic | Find code by meaning |
search_hybrid | Semantic + keyword combined |
graph_dependencies | See what depends on what |
graph_impact | Understand change impact |
graph_call_path | Trace execution flows |
graph_unused_code | Find dead code |
| Tool | What It Does |
|---|---|
ai_context | Build LLM-ready context |
ai_context_budget | Context within token limits |
ai_plan | Generate development plans |
ai_tasks | Break work into tasks |
| Built-in "Memory" | ContextStream |
|---|---|
| π Locked to one vendor | π Universal β works with Cursor, Claude, Windsurf, any MCP client |
| β±οΈ Expires or resets | βΎοΈ Persistent β never lose context |
| π Basic key-value | π§ Semantic β understands meaning and relationships |
| π€ Personal only | π₯ Team-ready β shared workspace, instant onboarding |
| β No lessons | β Learns from mistakes β captures and surfaces lessons |
| β No code understanding | π Deep analysis β dependencies, impact, knowledge graph |
| π€· Hope it remembers | π― Deterministic β you control what's stored |
ContextStream uses the Model Context Protocolβthe emerging standard for AI tool integrations.
Supported today:
One integration. Every tool. Same memory.
| Variable | Required | Description |
|---|---|---|
CONTEXTSTREAM_API_URL | Yes | https://api.contextstream.io |
CONTEXTSTREAM_API_KEY | Yes | Your API key |
# Install globally
npm install -g @contextstream/mcp-server
# Or run via npx (recommended for MCP configs)
npx @contextstream/mcp-server
| Resource | URL |
|---|---|
| Website | contextstream.io |
| Documentation | contextstream.io/docs |
| MCP Setup Guide | contextstream.io/docs/mcp |
| npm Package | @contextstream/mcp-server |
| GitHub | contextstream/mcp-server |
We welcome contributions:
git clone https://github.com/contextstream/mcp-server.git
cd mcp-server
npm install
npm run dev # Development mode
npm run build # Production build
npm run typecheck
MIT
Stop re-explaining. Start building.
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.