Context-MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Context-MCPload project context"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Context-MCP
Intelligent Context Manager for AI Coding Assistants
Hierarchical semantic compression that remembers what matters
Installation • Quick Start • Features • CLI • API
The Problem
AI coding assistants forget your project context with every new conversation. You waste time re-explaining architecture, decisions, and patterns.
Related MCP server: Heimdall MCP Server
The Solution
Context-MCP provides a 3-level memory system that intelligently manages what the AI remembers:
┌─────────────────────────────────────────┐
│ CORE (~500 tokens) │
│ Always loaded • Key decisions │
│ Architecture • Critical patterns │
├─────────────────────────────────────────┤
│ ACTIVE (~2000 tokens) │
│ Current work context │
│ Related modules • Recent changes │
├─────────────────────────────────────────┤
│ ARCHIVE (unlimited) │
│ Full history • Searchable │
│ Auto-retrieved when relevant │
└─────────────────────────────────────────┘Installation
# Clone the repository
git clone https://github.com/vshavlidze/context-mcp.git
cd context-mcp
# Install dependencies
npm install
# Build
npm run build
# Run tests (optional)
npm testQuick Start
1. Add to your MCP configuration
Create or edit .mcp.json in your project:
{
"mcpServers": {
"context": {
"command": "node",
"args": ["/path/to/context-mcp/dist/index.js"]
}
}
}2. Start using context tools
In your AI assistant, use these tools:
context_get → Load project context at conversation start
context_add → Save important decisions/patterns
context_search → Find specific information
context_focus → Set current work area3. Or use the CLI
# Interactive terminal interface
npm run cli
# or after npm link:
ctxFeatures
Intelligent Compression
Automatic summarization of large contexts
Token-aware storage (~500 tokens for core)
Semantic relevance scoring
Auto-Management
Auto-archive: Old, low-relevance entries move to archive
Auto-promote: Frequently accessed entries rise to active
Smart caching: LRU cache with TTL for fast retrieval
Multi-language Support
English and Russian interfaces
Language selection on startup
Localized prompts and messages
Prompt Templates
Store reusable prompts in
prompts/folderVariable substitution (
{code},{problem})Categorized templates (coding, review, debug, docs)
Full-Text Search
SQLite FTS5 powered search
Search across all context levels
Relevance-ranked results
CLI Commands
Command | Description |
| Load project context |
| Add new context entry |
| Search context |
| List entries by level |
| Delete an entry |
| Set current work focus |
| Import from file |
| Browse prompt templates |
| Show statistics |
| System health check |
| Export to JSON/Markdown |
| Change language |
| Show all commands |
API (MCP Tools)
context_get
Load project context. Use at conversation start.
{
include_active?: boolean // Include ACTIVE level (default: true)
focus_categories?: string[] // Filter by categories
}context_add
Add new context entry.
{
title: string
content: string
category: 'architecture' | 'pattern' | 'decision' | 'api' |
'dependency' | 'bug' | 'feature' | 'config' |
'security' | 'performance'
level?: 'core' | 'active' | 'archive' // default: 'active'
priority?: 'critical' | 'high' | 'medium' | 'low'
tags?: string[]
}context_search
Search for specific context.
{
query: string
categories?: string[]
tags?: string[]
limit?: number // default: 10
}context_focus
Set current work focus to optimize context loading.
{
task: string // What you're working on
modules?: string[] // Related module names
}Project Structure
context-mcp/
├── src/
│ ├── core/ # Core logic
│ │ ├── compressor.ts # Semantic compression
│ │ ├── relevance.ts # Scoring algorithms
│ │ ├── telemetry.ts # Performance monitoring
│ │ └── types.ts # TypeScript types
│ ├── storage/
│ │ └── database.ts # SQLite + FTS5 storage
│ ├── mcp/
│ │ └── server.ts # MCP server implementation
│ └── cli/
│ ├── index.ts # CLI entry point
│ ├── commands.ts # Command handlers
│ ├── interface.ts # Terminal UI
│ └── i18n.ts # Translations
├── prompts/ # Prompt templates
├── tests/ # Test suites (306 tests)
└── dist/ # Compiled outputConfiguration
Environment variables:
Variable | Description | Default |
| Data directory path |
|
Performance
Bulk insert: ~0.8ms per entry
Search: <2ms for 100 results
Core snapshot: <5ms generation
Cache hit rate: >90% typical usage
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Add tests for new functionality
Ensure all tests pass
Submit a pull request
License
MIT License - see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vshavlidze/context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server