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 "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., "@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 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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/nghiale-soft/smart-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server