DeepContext
STDIOMCP server providing semantic search for large codebases using symbol-aware AI technology
MCP server providing semantic search for large codebases using symbol-aware AI technology
  
DeepContext is an MCP server that adds symbol-aware semantic search to Codex CLI, Claude Code, and other agents, giving them more precise context of even the largest codebases. Currently supports Typescript and Python.
index this codebase to index the current directoryClaude Code:
claude mcp add deepcontext \ -e WILDCARD_API_KEY=your-wildcard-api-key \ -- npx @wildcard-ai/deepcontext@latest
Codex:
# Add to ~/.codex/config.toml [mcp_servers.deepcontext] command = "npx" args = ["-y", "@wildcard-ai/deepcontext@latest"] env = { "WILDCARD_API_KEY" = "your-wildcard-api-key" }
https://github.com/user-attachments/assets/9a2d418f-497b-42b9-bbb2-f875ef0007b4
Most coding agents use grep based search that match exact text, these searches miss semantically related code and fill context windows with irrelevant results. Large codebases amplify this problem, where text search returns hundreds of matches that quickly overwhelm conversation capacity. This leads to slow completions, more hallucinations, and lower success rates.
DeepContext provides agents with intelligent search that preserves context windows by finding only relevant code chunks.
Semantic accuracy: Matches code by meaning and relationships rather than text patterns, finding related functions across files that keyword search misses.
Reduced token usage: Returns precise code chunks instead of every file containing your search terms, preserving conversation context windows and reducing costs.
Search speed: Searches code immediately through pre-indexed data for instant file discovery.
index_codebaseCreates a searchable index of your codebase for semantic search.
search_codebaseFinds relevant code using natural language or keyword queries.
get_indexing_statusShows indexing status and file counts for your codebases.
clear_indexRemoves all indexed data for a codebase.
MCP Integration Flow
AST-Based Parsing
Hybrid Search with Reranking
Incremental Indexing
Content Filtering
Self-hosting requires code modifications to integrate directly with vector storage and embedding providers, as the current implementation uses the Wildcard API backend.
Prerequisites
Setup
git clone https://github.com/Wildcard-Official/deepcontext-mcp.git cd deepcontext npm install npm run build
Integration
claude mcp add deepcontext-local \ -e TURBOPUFFER_API_KEY=your-turbopuffer-key \ -e JINA_API_KEY=your-jina-key \ -- node /path/to/deepcontext/dist/standalone-mcp-integration.js
Thanks for your interest! We’re currently not accepting external contributions as we’re an early-stage startup focused on rapid iteration. We may open things up in the future — feel free to ⭐ the repo to stay in the loop.
Licensed under the Apache License.