
Ckb
io.github.SimplyLizPublished by GitHub account SimplyLizv8.0.3Updated Oct 24, 2026
Code intelligence MCP server — 80+ tools for navigation, impact analysis, and architecture
Overview
Local code-intelligence MCP server that turns a repository into a queryable knowledge base for navigation, impact analysis, ownership and architecture…
- What you can do
- Search and navigate code: semantic symbol search, call graphs, usage tracing, entrypoints and architecture maps
- Analyze changes: blast radius, risk scoring, affected tests, breaking-change comparison and PR review checks
- Inspect ownership and quality: CODEOWNERS plus git blame, reviewer suggestions, dead code, coupling and hotspots
- Scan for exposed secrets and credential patterns, and check documentation coverage
- Run compound tools (explore, understand, prepareChange, batchGet, batchSearch) that bundle several queries into one call
- When to use it
- Useful when an AI assistant works in a large or unfamiliar codebase and needs precise answers about what calls what, what a change would break, which tests to run, or who owns a module. Also suited to PR review and refactoring work where impact matters more than grep results.
- Requirements
- Runs locally over stdio, typically via npx with Node.js 16+ and Git installed. Each project must be initialized with ckb init; an optional SCIP index (ckb index) enables cross-file references and precise impact analysis. Claude Desktop needs the CKB_REPO environment variable pointing at one repository. Optional LIP daemon and language indexers improve results.
Installation
In SourceWeft
- Open Ckb in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
CKB — Code Knowledge Backend
Know your code. Change it safely. Ship with confidence.
[npm version] [Website] [Documentation] [MCP Badge] [LIP] [LIP docs]
CKB transforms your codebase into a queryable knowledge base. Ask questions, understand impact, find owners, detect dead code—all through CLI, API, or AI assistants.
Think of it as a senior engineer who knows every line of code, every decision, and every owner—available 24/7 to answer your questions.
Instant Answers to Hard Questions
What You Can Do
🔍 Understand — Semantic search, call graphs, usage tracing, architecture maps
⚡ Analyze — Impact analysis, risk scoring, hotspot detection, coupling analysis
🛡️ Protect — Affected test detection, breaking change warnings, PR risk assessment
🔐 Secure — Secret detection, credential scanning, security-sensitive code identification
👥 Collaborate — Ownership lookup, reviewer suggestions, architectural decisions (ADRs)
📊 Improve — Dead code detection, tech debt tracking, documentation coverage
🚀 Compound Operations — Single-call tools (explore, understand, prepareChange) reduce AI tool calls by 60-70%
🔗 Integrate — CLI, HTTP API, MCP for AI tools, CI/CD pipelines, custom scripts
Try It Now
Works Everywhere
83% token reduction with smart presets—load only the tools you need.
Building your own tools? Use CKB as a backend via CLI, HTTP API, or MCP. See the Integration Guide for examples in Node.js, Python, Go, and shell scripts.
Learn More
Quick Start
Option 1: npm (Recommended)
Option 2: Homebrew (macOS/Linux)
Use the fully-qualified name. Homebrew 6.0 requires third-party taps to be trusted before it loads them; installing this way grants that trust for this one formula. Tapping first and installing by short name fails with
Refusing to load formula ... from untrusted tap.
Option 3: Build from Source
Setup
Token efficiency shown at startup:
Now Claude can answer questions like:
- "What calls the HandleRequest function?"
- "How is ProcessPayment reached from the API?"
- "What's the blast radius if I change UserService?"
- "Who owns the internal/api module?"
- "Is this legacy code still used?"
Why CKB?
Three Ways to Use It
How Indexing Works
CKB uses SCIP indexes to understand your code. Think of it like a database that knows where every function is defined, who calls it, and how everything connects.
The Basics
Without an index, CKB still works using tree-sitter parsing (basic mode), but with an index you get:
- Cross-file references ("who calls this function?")
- Precise impact analysis
- Call graph navigation
Language Support
Not all languages are equal. CKB classifies languages into quality tiers based on indexer maturity:
Key limitations:
- Incremental indexing is Go-only. Other languages require full reindex.
- TypeScript monorepos may need
--infer-tsconfigflag - C/C++ requires
compile_commands.json - Python works best with activated virtual environment
Run ckb doctor --tier standard to check if your language tools are properly installed.
See Language Support for indexer installation, known issues, and the full feature matrix.
Keeping Your Index Fresh
Your index becomes stale when you make commits. CKB offers several ways to stay current:
Quick start for AI sessions:
Check staleness:
For Go projects, CKB uses incremental indexing—only changed files are processed, making updates fast.
See the Index Management Guide for complete documentation.
Features
📖 Full Features Guide — Detailed documentation with examples
📋 Changelog — Version history
PR Review
CKB review runs 21 quality checks in 5 seconds — secrets, breaking changes, dead code, complexity, test gaps, bug patterns, and more. Zero tokens, zero API calls.
When your AI assistant (Claude Code, Cursor, Windsurf) reviews a PR, it calls CKB first and gets structured analysis in ~1k tokens. Then it only reads the files that matter — saving 50-80% of tokens on large PRs.
Works in CI without any LLM:
📖 How it helps AI review · Benchmarks · CI Integration · Quickstart
CLI
Compound Operations (via MCP):
📖 User Guide — All CLI commands and options
HTTP API
MCP Integration
CKB works with any MCP-compatible AI coding tool.
Claude Code
Or manually add to .mcp.json:
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
VS Code
Add to your VS Code settings.json:
OpenCode
Add to opencode.json in project root:
Grok
Or manually add to .grok/settings.json (project) or ~/.grok/user-settings.json (global):
Claude Desktop
Claude Desktop doesn't have a project context, so you must specify the repository path.
Automatic setup (recommended):
Manual configuration — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
The CKB_REPO environment variable tells CKB which repository to analyze. Claude Desktop can only work with one repository at a time.
Windows
Use cmd /c wrapper in any config above:
Presets (Token Optimization)
CKB exposes 110+ tools, but most sessions only need a subset. Use presets to reduce token overhead by up to 77%:
In MCP config:
The AI can dynamically expand the toolset mid-session using the expandToolset tool.
Under the Hood
CKB orchestrates multiple code intelligence backends, using whatever is available and stacking their strengths — more backends running means richer answers:
- Cartographer — Fast structural analysis (architecture, dependencies, blast-radius, coupling, directory rollup) that needs no index and works the moment CKB is installed. Compiled into the binary, so it ships in the npm and Homebrew builds by default.
- SCIP — Precise, pre-indexed symbol data for exact definitions, references, and call graphs (run
ckb index) - LSP — Real-time language server queries
- Git — Blame, history, churn analysis, ownership
- LIP — Semantic embedding daemon for nearest-neighbour search and re-ranking. Runs as a separate, optional daemon — install and start it alongside CKB.
Results are merged intelligently and compressed for LLM context limits. Every backend except Git is optional; CKB degrades gracefully to whatever is present.
LIP enhances semantic search, PR novelty detection, test discovery, file boundary analysis, and architecture coupling signals. When LIP is running alongside CKB, search quality improves significantly — especially for natural-language queries that don't match symbol names literally. See Hybrid Retrieval for details, or the LIP documentation.
Persistent knowledge survives across sessions:
- Module Registry — Boundaries, responsibilities, tags
- Ownership Registry — CODEOWNERS + git-blame with time decay
- Hotspot Tracker — Historical snapshots with trend analysis
- Decision Log — ADRs with full-text search
Who Should Use CKB?
- Developers using AI assistants — Give your AI tools superpowers
- Teams with large codebases — Navigate complexity efficiently
- Anyone doing refactoring — Understand impact before changing
- Code reviewers — See the full picture of changes
- Tech leads — Track architectural health over time
Limitations (Honest Take)
CKB excels at:
- Static code navigation—finding definitions, references, call graphs
- Impact analysis for safe refactoring
- Ownership lookup (CODEOWNERS + git blame)
- Architecture and module understanding
CKB won't help with:
- Dynamic dispatch / runtime behavior (use debugger)
- Generated code that isn't indexed
- Code generation, linting, or formatting
- Cross-repo calls (use federation for this)
CKB is static analysis, not magic. Always verify critical decisions by reading the actual code.
📖 Practical Limits — Full guide on accuracy, blind spots, and when to trust results
Documentation
See the Full Documentation Wiki for:
- Quick Start — Step-by-step installation
- Prompt Cookbook — Real prompts for real problems
- Language Support — SCIP indexers and support tiers
- Practical Limits — Accuracy notes, blind spots
- User Guide — CLI commands and best practices
- Index Management — How indexing works, auto-refresh methods
- Incremental Indexing — Fast index updates for Go projects
- Doc-Symbol Linking — Symbol detection in docs, staleness checking
- Authentication — API tokens, scopes, rate limiting
- MCP Integration — Claude Code setup, 110+ tools
- API Reference — HTTP API documentation
- Daemon Mode — Always-on service with scheduler, webhooks
- Configuration — All options including MODULES.toml
- Architecture — System design and components
- Security — Secret detection, credential scanning
- Telemetry — Runtime observability, dead code detection
- Federation — Cross-repository queries
- CI/CD Integration — GitHub Actions, PR analysis
Requirements
Using npm (recommended):
- Node.js 16+
- Git
Building from source:
- Go 1.21+
- Git
Optional (for enhanced analysis):
- SCIP indexer for your language (scip-go, scip-typescript, etc.) — run
ckb indexto auto-install - LIP v2.3+ semantic embedding daemon (requires Rust/cargo) — strongly recommended for best search quality (docs, crates.io):
License
Free for:
- Personal use
- Open source projects
- Startups & small businesses under $25k annual revenue
Commercial license required for organizations with $25k+ annual revenue. See pricing for Team and Enterprise plans, or LICENSE for full terms.
Source: README.md at commit 768a194
Tools
0Version history
1- v8.0.3LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.