New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@contextstream/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contextstream/mcp-server

MCP server exposing ContextStream public API - code context, memory, search, and AI tools for developers

Source
npmnpm
Version
0.2.8
Version published
Weekly downloads
538
-60.53%
Maintainers
1
Weekly downloads
 
Created
Source

ContextStream MCP Server

npm version

A powerful Model Context Protocol (MCP) server that provides persistent memory, code context, knowledge graphs, and AI tools. Connect your AI assistant to your codebase's semantic search, memory system, and dependency analysis.

Website: contextstream.io | Docs: contextstream.io/docs/mcp

Features

🔍 Code Search & Context

  • Semantic search — Find code by meaning, not just keywords
  • Hybrid search — Combines semantic + keyword for best results
  • Pattern search — Regex-based code search
  • AI context building — Automatically gather relevant code, docs, and memory

🧠 Memory & Knowledge

  • Memory events — Store decisions, insights, and context
  • Knowledge nodes — Build a graph of connected concepts
  • Decision tracking — Never lose architectural decisions
  • Memory search — Find relevant past context

📊 Code Intelligence

  • Dependency analysis — Understand what depends on what
  • Call path tracing — Trace execution flows
  • Impact analysis — Understand change impact
  • Circular dependency detection — Find problematic cycles
  • Unused code detection — Identify dead code

🤖 AI Integration

  • Context building — Build LLM-ready context from your codebase
  • Enhanced context — Deep analysis with memory integration
  • Plan generation — AI-powered development planning
  • Task generation — Break down work into actionable tasks

Installation

Add ContextStream to your AI tool's MCP configuration:

Cursor / 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"
      }
    }
  }
}

Claude Code

{
  "mcpServers": {
    "contextstream": {
      "command": "npx",
      "args": ["-y", "@contextstream/mcp-server"],
      "env": {
        "CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
        "CONTEXTSTREAM_API_KEY": "your_api_key"
      }
    }
  }
}

Windsurf

{
  "mcpServers": {
    "contextstream": {
      "command": "npx",
      "args": ["-y", "@contextstream/mcp-server"],
      "env": {
        "CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
        "CONTEXTSTREAM_API_KEY": "your_api_key"
      }
    }
  }
}

Get your API key at contextstream.io

Environment Variables

VariableRequiredDescription
CONTEXTSTREAM_API_URLYesAPI base URL (https://api.contextstream.io)
CONTEXTSTREAM_API_KEYYesYour API key from contextstream.io

Available Tools

Authentication

ToolDescription
auth_meGet current user profile

Workspaces

ToolDescription
workspaces_listList accessible workspaces
workspaces_getGet workspace details
workspaces_createCreate a new workspace
workspaces_overviewGet workspace summary
workspaces_analyticsGet usage analytics
workspaces_contentList workspace content

Projects

ToolDescription
projects_listList projects (by workspace)
projects_getGet project details
projects_createCreate a new project
projects_overviewGet project summary
projects_statisticsGet code statistics
projects_filesList indexed files
projects_indexTrigger re-indexing
projects_index_statusCheck indexing status
ToolDescription
search_semanticSemantic vector search
search_hybridCombined semantic + keyword
search_keywordTraditional keyword search
search_patternRegex pattern search
search_suggestionsGet search suggestions

Memory

ToolDescription
memory_create_eventStore a memory event
memory_get_eventRetrieve an event
memory_update_eventUpdate an event
memory_delete_eventRemove an event
memory_list_eventsList events in workspace
memory_bulk_ingestBulk import events
memory_distill_eventExtract key insights
memory_create_nodeCreate knowledge node
memory_get_nodeGet knowledge node
memory_update_nodeUpdate knowledge node
memory_delete_nodeRemove knowledge node
memory_supersede_nodeReplace with new version
memory_list_nodesList knowledge nodes
memory_searchSearch memory
memory_decisionsGet decision summaries
memory_timelineGet chronological timeline
memory_summaryGet condensed summary

Graph Analysis

ToolDescription
graph_relatedFind related knowledge nodes
graph_pathFind path between nodes
graph_decisionsDecision history in graph
graph_dependenciesQuery code dependencies
graph_call_pathTrace call paths
graph_impactAnalyze change impact
graph_circular_dependenciesFind circular deps
graph_unused_codeFind dead code
graph_contradictionsFind conflicting info

AI

ToolDescription
ai_contextBuild LLM context
ai_enhanced_contextDeep context with memory
ai_embeddingsGenerate embeddings
ai_planGenerate dev plan
ai_tasksGenerate tasks

Session & Auto-Context (CORE-like)

These tools enable automatic context initialization for AI assistants:

ToolDescription
session_initInitialize conversation - First tool to call, returns workspace/project info, recent memory, decisions
session_get_user_contextGet user preferences and coding style from memory
session_captureStore context (decisions, insights, preferences) to memory
session_smart_searchSearch with automatic context enrichment (memory + code + decisions)
session_rememberQuick natural language memory storage ("Remember I prefer TypeScript strict mode")
session_recallQuick natural language recall ("What were the auth decisions?")

Usage in AI Tools:

# In Cursor/Claude Code/Windsurf - start with:
"Initialize session for this workspace"

# Then use natural commands:
"Remember we decided to use PostgreSQL for the database"
"Recall the authentication decisions we made"
"What are my coding preferences?"

Prompts

Pre-built prompts for common workflows:

PromptDescription
explore-codebaseGet a codebase overview
capture-decisionDocument an ADR
review-contextBuild code review context
investigate-bugDebug investigation helper
explore-knowledgeNavigate knowledge graph
onboard-to-projectGenerate onboarding guide
analyze-refactoringFind refactoring opportunities
build-contextBuild comprehensive LLM context

Resources

ResourceDescription
contextstream:openapiOpenAPI specification
contextstream:workspacesWorkspace listing
contextstream:projects/{id}Projects for workspace

Error Handling

The client includes:

  • Automatic retries for transient failures (429, 500, 502, 503, 504)
  • Exponential backoff with configurable delays
  • Detailed error codes (NETWORK_ERROR, UNAUTHORIZED, RATE_LIMITED, etc.)
  • Request timeouts (180s default)

Security

  • No secrets are bundled — provide your own API key/JWT
  • No internal endpoints hardcoded — API URL is required
  • Minimal logging — credentials are not echoed
  • Public REST API only — no proprietary logic included

License

MIT

Keywords

mcp

FAQs

Package last updated on 30 Nov 2025

Related posts