openkrak-mcp
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.
OpenKrak
Dorchester Engine MCP Server — static analysis intelligence for AI coding assistants.
OpenKrak runs the Dorchester engine on your repository before the model reads a single file. The result is a structured brief — hotspot rankings, dependency graph, blast radius, security findings — delivered directly to the model's context. No hallucinated file structure. No wasted tokens on the wrong files.
Supported: Claude Code · Claude Desktop · Cursor · Windsurf
How It Works
Repository
│
▼
DeepStrike — File discovery, AST parse, symbol extraction, dependency resolution
│
▼
Hotspot Registry — Coupling scores, complexity, git change frequency, god_object detection
│
▼
Correlation Engine — Finding classification, noise reduction (Rule 1–4), impact chains
│
▼
Blast Radius — Cascade mapping, affected files and modules, risk scoring
│
▼
Execution Gate — Safety checks, circular dependency detection, blocker identification
│
▼
Mahadata — Structured brief with source snippets delivered to the modelAll analysis runs locally. No source code leaves your machine.
Related MCP server: Hokmah MCP Server
Quickstart — Claude Code
cd /your/repo
npx openkrak-initThat's it. openkrak-init drops two files into your repo root:
.mcp.json— registers OpenKrak as a Claude Code MCP serverCLAUDE.md— injects mandatory instructions into Claude's system prompt every session
Claude Code reads CLAUDE.md as user-level instructions. It cannot ignore them. OpenKrak is invoked automatically before any file is accessed.
Manual Setup (Claude Desktop / Cursor / Windsurf)
Add to your MCP config:
{
"mcpServers": {
"openkrak": {
"command": "npx",
"args": ["openkrak-mcp@1.3.0"]
}
}
}Platform | Config location |
Claude Desktop (Windows) |
|
Claude Desktop (macOS) |
|
Cursor |
|
Windsurf | MCP settings panel |
Requires Node.js ≥ 18.
Tools
10 tools available as of v1.3.0.
Tool | Description |
| Full 6-step pipeline. Returns complete Dorchester brief with source snippets of top 3 critical files. Call before any coding task on a new repo. |
| Compact repo brief mid-session. Structure, entry points, hotspot summary, top 3 critical file previews. |
| Ranked list of high-risk files by coupling, complexity, and git change frequency. |
| Impact map for a specific file — cascade, affected modules, risk score. |
| Project type, framework, language breakdown, entry points, module layers. |
| Filtered findings by severity (CRITICAL / HIGH / MEDIUM / LOW) or type. |
| All imports made by a file + all files that import it. |
| Genuine unused exports vs noise-suppressed false positives. |
| All circular dependency cycles with full path sequences. |
| Hardcoded secrets, dangerous shell patterns, critical security findings. |
Output Format
╔══ DORCHESTER ENGINE — SCAN ══════════════════════════════════════╗
║ Repo your-project | 42f 5840loc TypeScript fw:next@15.0
╠══ HOTSPOT REGISTRY (42 files ranked) ════════════════════════════╣
║ 1. [CRITICAL ] auth-context.tsx score:0.812 god_object,high_coupling
║ 2. [HIGH ] api-router.ts score:0.641 high_coupling
╠══ SOURCE PREVIEW — top 3 critical files (first 60–80 lines each) ╣
║ ── auth-context.tsx [score:0.812]
...The model receives source snippets of the top 3 critical files inline. It does not need to open those files separately.
Benchmark
Tested on a 26-file TypeScript / Next.js repo (ChesterMath):
Metric | Value |
Files analyzed | 26 |
Lines of code | 3,370 |
Analysis time | 1,043 ms |
Output tokens | ~13,000 |
Findings | 18 |
Hotspots identified | 26 ranked |
Without OpenKrak: a model analyzing the same repo by reading files sequentially consumes 60,000+ tokens before forming a structural understanding. OpenKrak delivers equivalent context in ~13,000 tokens — approximately 4–5× reduction.
Token budget is proportional to repo size. Larger repos produce proportionally larger briefs, not arbitrarily capped output.
Language Support
Language | Analysis method |
TypeScript / JavaScript | AST-based (ts-estree) — highest accuracy |
Python | Regex-based symbol + import extraction |
Go | Struct, interface, func extraction |
Rust | pub/fn/struct/trait/enum extraction |
Java | Class, interface, method extraction |
C# | Class, interface, enum, method extraction |
License
Free tier is active by default — no account required.
Plan | Price | Queries |
Free | $0 | 15 per 24-hour rolling window |
Pro Monthly | $8 / month | Unlimited |
Pro Annual | $67.20 / year | Unlimited |
To activate Pro, set OPENKRAK_KEY in your environment or MCP config:
{
"mcpServers": {
"openkrak": {
"command": "npx",
"args": ["openkrak-mcp@1.3.0"],
"env": {
"OPENKRAK_KEY": "your-license-key"
}
}
}
}License keys: openkrak-web.vercel.app
Notes
Static analysis only. No AI inference in the pipeline.
Anonymous telemetry: query count, tool name, error events. No source code or file contents transmitted.
License validation requires a network call on each invocation.
MIT License — © 2026 Faiz Hamizan / Challanger Absolute Advance
github.com/FrnzJulianBergmann/openkrak
This server cannot be deployed
Maintenance
Related MCP Connectors
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to intelligently navigate and understand codebases by providing instant file descriptions, semantic search, and context-aware recommendations, eliminating the need to repeatedly scan files.89 PyPI23MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with persistent architectural memory of codebases, enabling impact analysis, test generation, and code generation with reduced token usage.MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI coding agents with structured, deterministic repository intelligence—file tree, dependencies, hotspots, and git history—via Model Context Protocol, enabling them to understand codebases without reconstructing architecture from scratch.114 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to understand unfamiliar codebases through project summaries, file explanations, feature tracing, change planning, test discovery, guided walkthroughs, and token-efficient repository digests.1Apache 2.0