deepcontext-mcp

DeepContext is an MCP server that adds symbol-aware semantic search to Claude Code, Codex CLI, and other agents for faster, smarter context on large codebases.

276
Stars
25
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Wildcard-Official/deepcontext-mcp

快速入门

使用 deepcontext-mcp 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

DeepContext Logo

Smarter Context for Large Codebases

GitHub stars NPM Version Slack Community Twitter Follow

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.

Quickstart

  1. Visit the Wildcard DeepContext page
  2. Click "Generate API Key"
  3. Copy your API key
  4. Paste installation command for your MCP client
  5. Type index this codebase to index the current directory

Claude 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" }

Demo

https://github.com/user-attachments/assets/9a2d418f-497b-42b9-bbb2-f875ef0007b4

Why DeepContext MCP?

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.

MCP Tools

index_codebase

Creates a searchable index of your codebase for semantic search.

search_codebase

Finds relevant code using natural language or keyword queries.

get_indexing_status

Shows indexing status and file counts for your codebases.

clear_index

Removes all indexed data for a codebase.

Architecture

MCP Integration Flow

  • Coding Agent communicates with DeepContext through the Model Context Protocol
  • MCP server receives requests, validates parameters, and routes to appropriate core components
  • For long-running operations like indexing, spawns detached background processes to prevent timeouts
    • Background workers handle large codebases without blocking MCP channel // Reword

AST-Based Parsing

  • Tree-sitter parsers analyze source code to build Abstract Syntax Trees
    • Python, TypeScript, and JavaScript language grammars for accurate parsing
    • Semantic node identification for functions, classes, interfaces, and modules
  • Symbol extraction identifies functions, classes, interfaces, types, variables, and constants
    • Scope analysis determines local vs exported vs global visibility
    • Parameter and return type extraction for function signatures
  • Import/export analysis maps module dependencies and cross-file relationships
  • Creates chunks at semantic boundaries rather than arbitrary line or token splits
    • Large file handling through range-based parsing with overlapping windows

Hybrid Search with Reranking

  • Search operates in three stages
    • Hybrid search combines vector similarity and BM25 full-text search
    • Jina reranker-v2 for final relevance optimization
  • Vector similarity finds semantically related code using embeddings
    • Jina text embeddings generate 1024-dimension vectors for code chunks
  • BM25 performs traditional keyword matching for exact terms
    • Full-text indexing enables precise identifier and comment matching
  • Results fused using configurable weights, then reordered by Jina reranker

Incremental Indexing

  • Uses file modification times and content hashes to track changes
    • SHA-256 hashing detects content modifications at byte level
  • Only reprocesses files with different hashes during reindexing
    • Avoids unnecessary parsing and embedding generation for unchanged files

Content Filtering

  • Scores files based on extension patterns, path components, and content analysis
    • Language detection and file type classification for processing decisions
  • Excludes test files, generated code, minified files, and build outputs during indexing
    • Pattern matching against common test frameworks and build tool outputs
  • Filters documentation and configuration files to focus on source code

Self Hosting

Self-hosting requires code modifications to integrate directly with vector storage and embedding providers, as the current implementation uses the Wildcard API backend.

Prerequisites

  • Node.js 20+ for ES module support and performance optimizations
  • Turbopuffer API key for vector storage and hybrid search operations
  • Jina AI API key for text embeddings and reranking services

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

Contributing

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.

License

Licensed under the Apache License.

常见问题

What is deepcontext-mcp?

deepcontext-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Wildcard-Official. DeepContext is an MCP server that adds symbol-aware semantic search to Claude Code, Codex CLI, and other agents for faster, smarter context on large codebases. It has 276 GitHub stars.

Is deepcontext-mcp safe to use?

deepcontext-mcp returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install deepcontext-mcp?

Clone the repository with "git clone https://github.com/Wildcard-Official/deepcontext-mcp" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is deepcontext-mcp written in?

deepcontext-mcp is primarily written in TypeScript. It is open-source under Wildcard-Official on GitHub, so you can review or fork the full source.

Are there alternatives to deepcontext-mcp?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh deepcontext-mcp against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情