Smart Context MCP
Allows using Google Gemini Flash as a low-cost AI provider for intent analysis to optimize context filtering.
Allows using Ollama Nemotron as a low-cost AI provider for intent analysis to optimize context filtering.
Allows using OpenAI as a low-cost AI provider for intent analysis to optimize context filtering.
Click on "Deploy 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., "@Smart Context MCPshow me the relevant context for my recent git changes"
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.
🦉 Smart Context MCP Server
Smart Context MCP is a local Model Context Protocol (MCP) server acting as a Universal Context Engine for AI Coding Agents (Cline, Roo Code, Claude Code, Cursor, Continue.dev, Codex, etc.).
It reduces token consumption for powerful LLMs (Strong LLMs) by 50%–70% by intelligently filtering code context, tracking Git Delta changes, and building high-performance local indexes using SQLite and Tree-sitter AST parsing.
Built following the ai-read-first specification & architecture principles for AI-assisted software development.
🌟 Key Features
Smart Token Optimization: Filters out irrelevant code files and sends only the precise context required for each prompt.
Git Delta Detection: Inspects
git statusandgit diffto prioritize active workspace files.SQLite Local Storage: Fast symbol and Repo Map querying (< 2ms) without high RAM overhead.
Multi-Project Management: Dynamically filters and tracks AST symbols per project.
Flexible Low AI Integration: Supports intent analysis using cheap or local AI providers (Ollama Nemotron, Groq Cloud, Anthropic Claude, OpenAI, Google Gemini Flash).
Web Dashboard UI: Built-in web administration dashboard at
http://localhost:3333for settings, tooltips, and SQLite cache exploration.
Related MCP server: Semantic Cache MCP
💾 Local Storage & Database Locations
Smart Context MCP persists user settings and indexed workspace data locally in your home directory across operating systems:
Data Type | macOS / Linux Path | Windows Path |
⚙️ User Configuration |
|
|
📦 SQLite Cache Database |
|
|
(You can customize the cache database path anytime via the Web Dashboard settings modal).
⚡ Quick Start (Pre-built Release — No Build Required)
End-users do not need to install Node.js build tools or run npm:
Download the pre-built release package:
smart-context-mcp-v1.0.0.zip(from therelease/folder or GitHub Releases).Unzip
smart-context-mcp-v1.0.0.zipinto your desired folder.Configure your AI Client to point to the executable launcher
smart-context-mcp:
{
"mcpServers": {
"smart-context": {
"command": "/path/to/unzipped/smart-context-mcp-release/smart-context-mcp",
"args": []
}
}
}📂 Popular AI Client & VS Code Extension Config Locations
Here is where to find the MCP configuration file across Windows, macOS, and Linux for popular AI Coding Clients & VS Code extensions:
AI Client / Extension | Operating System | Standard Configuration File Path |
Claude Desktop App | macOS |
|
Windows |
| |
Linux |
| |
Cursor IDE | macOS / Linux |
|
Windows |
| |
Continue.dev (VS Code & JetBrains) | macOS / Linux |
|
Windows |
| |
Cline Extension (VS Code) | macOS |
|
Windows |
| |
Linux |
| |
Roo Code Extension (VS Code) | macOS |
|
Windows |
| |
Linux |
| |
Claude Code CLI | macOS / Linux / Windows |
|
Codex / VS Code MCP | macOS / Linux / Windows |
|
Antigravity IDE | macOS / Linux |
|
Windows |
|
🖥️ Web Dashboard UI
When the MCP Server starts, the administration Web Dashboard is available at:
👉 http://localhost:3333
Features available on the Web Dashboard:
Project Filter: Select and view cached data for specific projects or across all repositories.
SQLite Cache Explorer: View cached files and parsed AST symbols with detailed hover tooltips (
?).Header Actions (
⚙️ Settings&❓ GuideModals): Dynamically update Low AI Providers and view user guides in modal popups.
📖 Architecture & Standards
This project adheres to the ai-read-first standard for AI agent workflows.
🛠️ Developer Setup (For Modifying Source Code)
If you want to contribute or customize the source code:
# 1. Clone repository
git clone https://github.com/nghiale-soft/smart-context-mcp.git
cd smart-context-mcp
# 2. Install dependencies & build
npm install
npm run build
# 3. Create pre-built standalone ZIP release
npm run release📜 Helper Scripts (scripts/)
./scripts/release.sh: Builds TypeScript source and packages clean ZIP release (release/smart-context-mcp-v1.0.0.zip).
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Local-first memory and continuity for AI coding agents. No cloud backend; optional hosted lane.
Codebase graphs, caller impact analysis, and recorded project context for AI coding agents.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides intelligent code context and analysis through semantic compression, AST parsing, and multi-language support. Offers 60-80% token reduction while enabling AI assistants to understand codebases through local analysis, OpenAI-enhanced insights, and GitHub repository integration.631 npm3MIT
- AlicenseAqualityAmaintenanceReduces token consumption by over 80% through intelligent file caching, returning only diffs for modified files and suppressing unchanged content. It features a suite of 12 tools for semantic search, batch reading, and efficient file editing to optimize LLM interactions with large codebases.142MIT
- FlicenseNot gradedqualityCmaintenanceTransforms codebases into a knowledge graph for AI agents, enabling semantic search, impact analysis, and persistent session memory with up to 94% token savings.016-

Code Context Engineofficial
AlicenseNot gradedqualityAmaintenanceIndexes your codebase so AI coding agents can search instead of re-reading files, saving up to 94% of tokens.161 PyPI422MIT