context-bridge
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.
Context Bridge
Bridge the context gap between your codebase and AI coding tools.
Context Bridge is a lightweight MCP (Model Context Protocol) server that builds a persistent index of your codebase. It enables AI assistants to query complex codebases with sub-millisecond latency, eliminating the need to re-read files every session.
Why?
AI coding tools are powerful but suffer from a context gap:
They re-read the same files in every session
They lack deep understanding of your architecture
They can't learn from your coding conventions
23 minutes of developer focus are lost per context switch
Context Bridge solves this by indexing your codebase into a local store that persists across sessions.
Related MCP server: CodeRAG
Features
Fast Code Search — Full-text keyword search over every indexed file
Persistent Index — SQLite-based, survives restarts
Sub-millisecond Queries — SQLite FTS5
MCP Protocol — Works with Claude Code, Cursor, and any MCP client
Auto-indexing — Watches files and updates the index automatically
Zero Cloud — Everything runs locally
Quick Start
# Clone and install locally
git clone https://github.com/hussain-alsaibai/context-bridge.git
cd context-bridge && npm install
# Initialize in your project
cd your-project
node /path/to/context-bridge/src/server.js init
# Start the MCP server
node /path/to/context-bridge/src/server.js serve
# Or use with Claude Code
claude mcp add context-bridge -- node /path/to/context-bridge/src/server.js serveNote: the unscoped npm name
context-bridgeis owned by an unrelated third-party package, sonpm install -g context-bridgeinstalls that package instead of this one. Use the clone-and-install steps above until an official npm release under a scoped name is available.
Configuration
Create .context-bridge.json in your project root:
{
"include": ["src/**/*.{js,ts,jsx,tsx}", "lib/**/*.py"],
"exclude": ["node_modules/**", "dist/**", "*.test.js"],
"dbPath": ".context-bridge/db.sqlite",
"watch": true,
"maxFileSizeKB": 500
}MCP Tools
Tool | Description |
| Search code with an FTS5 keyword query |
| Get full context of a function/class/variable |
| Show what a file depends on |
| Get a high-level summary of a module |
Search syntax:
search_codeis a keyword engine, not a semantic one. It takes an FTS5 query string, soslugifyorindex*match, and a natural sentence likehow do we index filesdoes not. Combine terms withOR, or use a prefix*.
Architecture
┌─────────────────┐ ┌──────────────┐ ┌────────────────┐
│ Claude Code │────▶│ Context │────▶│ SQLite + FTS5 │
│ Cursor │ │ Bridge MCP │ │ Knowledge Graph│
│ Other MCP │◀────│ Server │◀────│ (persistent) │
│ Clients │ │ │ │ │
└─────────────────┘ └──────────────┘ └────────────────┘
│
▼
┌──────────────┐
│ File Watcher │
│ (auto-index) │
└──────────────┘Status
v0.2.2 — the README now matches the server, and every tool it names is reachable.
v0.1.0shipped on 2026-06-20 and was broken: it threw on startup, matched no files, and lost the index on every re-index. It was fixed on 2026-10-25 in commit2cc4ee9.The standalone indexer (
src/indexer.js) never indexed anything — it started the MCP server instead. Fixed in v0.2.0.v0.2.0shipped a handler that read{tool, params}. No MCP client sends that shape — clients speak JSON-RPC{jsonrpc, id, method, params}— so every real request arrived withtool === undefinedand fell through to "Unknown tool: undefined". The four existing tests stayed green because they asserted the same wrong shape. Fixed in v0.2.1 (commit688f79c), which adds a contract test that drives a real handshake over stdio.CI now runs on every push and pull request: install, test, lint.
v0.2.1shipped a README that advertised five MCP tools. The server implemented four and advertised one, soget_symbol,get_dependenciesandsummarize_modulewere unreachable for any client that discovers tools by listing them.get_callerswas advertised in the README but implemented nowhere, and therelationshipstable it would have queried was created and never populated -- the README described a graph feature that did not exist. The README also claimed "FTS5 + precomputed embeddings" and natural-language search; there are no embeddings, andsearch_codeis a keyword engine. Fixed in v0.2.2, which advertises all four real tools and drops the claims.get_dependenciesreturnedimports: []for ordinary ES modules. The pattern only matched a bare specifier directly after the keyword, soimport { a } from "./x"-- the most common form -- was missed, as wasexport { a } from "./x". Fixed in v0.2.2.
Run the test suite with npm test (10 tests). One of them parses this README
and fails if it documents a tool the server does not implement or advertise, so
this drift cannot come back.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Shared context for your codebase: a hosted code knowledge graph over MCP. Free plan, OAuth sign-up.
Intelligent context infrastructure for AI teams: knowledge graph, sessions, tasks, documents.
One shared context your team's AI tools read & write over MCP. No re-explaining. Free.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceContext Portal (ConPort): A memory bank MCP server building a project-specific knowledge graph to supercharge AI assistants. Enables powerful Retrieval Augmented Generation (RAG) for context-aware development in your IDE.38 PyPI768Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that transforms codebases into knowledge graphs using Neo4J, enabling AI assistants to understand code structure, relationships, and metrics for more context-aware assistance.28MIT
- AlicenseAqualityBmaintenanceAn MCP server and CLI tool that transforms codebases into AI-ready context through semantic search, call graph analysis, and incremental indexing. It enables AI assistants to perform hybrid vector and keyword searches to understand complex repository structures and cross-file relationships.3526 npm3MIT
- AlicenseAqualityDmaintenanceUniversal MCP server that analyzes any codebase and provides structured context to AI assistants. Dynamic, accurate, and token-efficient.1835 npmMIT