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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π¦ 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
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Codebase intelligence for AI agents β dead code, blast radius, ownership.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation forβ¦
The context platform for AI agents: code search, team decisions, and grounded project context.
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.617 npm3MIT
- AlicenseAqualityBmaintenanceMCP file cache for AI coding agents. Re-reading an unchanged file costs ~40 tokens instead of the whole file; a changed file comes back as a diff. Adds grep, BM25 search and glob over cached files, atomic edits with dry_run, and token-budgeted batch reads. One local daemon serves every client. No API keys, no GPU. Works with Claude Code, Cursor, VS Code, Codex and OpenCode.1464 PyPI3MIT
- AlicenseNot gradedqualityDmaintenanceTransforms codebases into a knowledge graph for AI agents, enabling semantic search, impact analysis, and persistent session memory with up to 94% token savings.4 npm15ISC

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