DeusData/codebase-memory-mcp
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- internal/cbm/vendored/grammars/purescript/unicode.h5951 cx
- internal/cbm/vendored/grammars/sshconfig/parser.c5785 cx
- internal/cbm/vendored/grammars/mermaid/parser.c5622 cx
- src/mcp/mcp.c4380 cx
- internal/cbm/vendored/grammars/sosl/parser.c3741 cx
- internal/cbm/vendored/grammars/scss/parser.c3433 cx
- internal/cbm/vendored/grammars/soql/parser.c3336 cx
- internal/cbm/vendored/grammars/css/parser.c3334 cx
- src/cli/cli.c3332 cx
- internal/cbm/vendored/grammars/scheme/parser.c3138 cx
Dead code 14.72% unused · 19 findings
- tools/tree-sitter-arkts/javascript-grammar.jsunused-file
- tools/tree-sitter-arkts/grammar.jsunused-file
- tools/tree-sitter-magma/grammar.jsunused-file
- tools/tree-sitter-form/grammar.jsunused-file
- graph-ui/@/components/ui/card.tsxunused-file
- graph-ui/src/components/ui/card.tsxunused-file
- tools/tree-sitter-chialisp/grammar.jsunused-file
- graph-ui/src/components/ProjectCard.tsxunused-file
- graph-ui/@/components/ui/badge.tsxunused-file
- graph-ui/src/components/ui/badge.tsxunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 102 generated files: internal/cbm/lsp/generated/go_stdlib_data.c, internal/cbm/lsp/generated/python_stdlib_data.c, internal/cbm/lsp/generated/rust_stdlib_data.c, internal/cbm/vendored/grammars/ada/parser.c, internal/cbm/vendored/grammars/arkts/parser.c, internal/cbm/vendored/grammars/bash/parser.c, internal/cbm/vendored/grammars/beancount/parser.c, internal/cbm/vendored/grammars/bibtex/parser.c, internal/cbm/vendored/grammars/blade/parser.c, internal/cbm/vendored/grammars/c_sharp/parser.c, internal/cbm/vendored/grammars/c/parser.c, internal/cbm/vendored/grammars/cfml/parser.c, internal/cbm/vendored/grammars/cfscript/parser.c, internal/cbm/vendored/grammars/chialisp/parser.c, internal/cbm/vendored/grammars/cmake/parser.c, internal/cbm/vendored/grammars/cpp/parser.c, internal/cbm/vendored/grammars/crystal/parser.c, internal/cbm/vendored/grammars/css/parser.c, internal/cbm/vendored/grammars/csv/parser.c, internal/cbm/vendored/grammars/cuda/parser.c and 82 more.
Largest clones in the code
- 246 lines in 89 placesc-header1,555 tokensinternal/cbm/vendored/grammars/ada/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/apex/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/arkts/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/bash/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/beancount/tree_sitter/array.h:46–291and 84 more
46/// Get a pointer to the last element in the array. 47#define array_back(self) array_get(self, (self)->size - 1) 48 49/// Clear the array, setting its size to zero. Note that this does not free any 50/// memory allocated for the array's contents. 51#define array_clear(self) ((self)->size = 0) 52 53/// Reserve `new_capacity` elements of space in the array. If `new_capacity` is 54/// less than the array's current capacity, this function has no effect. 55#define array_reserve(self, new_capacity) \First 10 of 246 lines.
- 286 lines in 82 placesc-header1,252 tokensinternal/cbm/vendored/common/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/ada/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/arkts/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/bash/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/beancount/tree_sitter/parser.h:1–286and 77 more
1#ifndef TREE_SITTER_PARSER_H_ 2#define TREE_SITTER_PARSER_H_ 3 4#ifdef __cplusplus 5extern "C" { 6#endif 7 8#include <stdbool.h> 9#include <stdint.h> 10#include <stdlib.h>First 10 of 286 lines.
- 286 lines in 35 placesc-header1,761 tokensinternal/cbm/vendored/grammars/agda/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/assembly/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/astro/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/bitbake/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/cairo/tree_sitter/array.h:5–290and 30 more
5extern "C" { 6#endif 7 8#include "./alloc.h" 9 10#include <assert.h> 11#include <stdbool.h> 12#include <stdint.h> 13#include <stdlib.h> 14#include <string.h>First 10 of 286 lines.
7 more
- 258 lines in 37 placesc-header1,159 tokensinternal/cbm/vendored/grammars/agda/tree_sitter/parser.h:9–266internal/cbm/vendored/grammars/apex/tree_sitter/parser.h:9–266internal/cbm/vendored/grammars/bicep/tree_sitter/parser.h:9–266internal/cbm/vendored/grammars/commonlisp/tree_sitter/parser.h:9–266internal/cbm/vendored/grammars/d/tree_sitter/parser.h:9–266and 32 more
- 330 lines in 18 placesc-header2,099 tokensinternal/cbm/vendored/common/tree_sitter/array.h:1–330internal/cbm/vendored/grammars/blade/tree_sitter/array.h:1–330internal/cbm/vendored/grammars/cfml/tree_sitter/array.h:1–330internal/cbm/vendored/grammars/cfscript/tree_sitter/array.h:1–330internal/cbm/vendored/grammars/dotenv/tree_sitter/array.h:1–330and 13 more
- 55 lines in 90 placesc-header269 tokensinternal/cbm/vendored/common/tree_sitter/array.h:1–55internal/cbm/vendored/grammars/ada/tree_sitter/array.h:1–55internal/cbm/vendored/grammars/apex/tree_sitter/array.h:1–55internal/cbm/vendored/grammars/arkts/tree_sitter/array.h:1–55internal/cbm/vendored/grammars/bash/tree_sitter/array.h:1–55and 85 more
- 54 lines in 125 placesc-header179 tokensinternal/cbm/vendored/common/tree_sitter/alloc.h:1–54internal/cbm/vendored/grammars/ada/tree_sitter/alloc.h:1–54internal/cbm/vendored/grammars/agda/tree_sitter/alloc.h:1–54internal/cbm/vendored/grammars/apex/tree_sitter/alloc.h:1–54internal/cbm/vendored/grammars/arkts/tree_sitter/alloc.h:1–54and 120 more
- 221 lines in 16 placesc-header1,028 tokensinternal/cbm/vendored/grammars/assembly/tree_sitter/parser.h:45–265internal/cbm/vendored/grammars/bitbake/tree_sitter/parser.h:45–265internal/cbm/vendored/grammars/cairo/tree_sitter/parser.h:45–265internal/cbm/vendored/grammars/capnp/tree_sitter/parser.h:45–265internal/cbm/vendored/grammars/func/tree_sitter/parser.h:45–265and 11 more
- 1245 lines in 2 placesc-header8,137 tokens
- 204 lines in 2 placesc-header8,068 tokens
Largest clones over all files, tests and data included
- 20347 lines in 2 placescgenerated167,267 tokens
1/* Automatically @generated by tree-sitter */ 2 3#include "tree_sitter/parser.h" 4 5#if defined(__GNUC__) || defined(__clang__) 6#pragma GCC diagnostic ignored "-Wmissing-field-initializers" 7#endif 8 9#define LANGUAGE_VERSION 15 10#define STATE_COUNT 305First 10 of 20347 lines.
- 23803 lines in 2 placescgenerated141,073 tokens
1/* Automatically @generated by tree-sitter */ 2 3#include "tree_sitter/parser.h" 4 5#if defined(__GNUC__) || defined(__clang__) 6#pragma GCC diagnostic ignored "-Wmissing-field-initializers" 7#endif 8 9#define LANGUAGE_VERSION 15 10#define STATE_COUNT 536First 10 of 23803 lines.
- 246 lines in 89 placesc-header1,555 tokensinternal/cbm/vendored/grammars/ada/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/apex/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/arkts/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/bash/tree_sitter/array.h:46–291internal/cbm/vendored/grammars/beancount/tree_sitter/array.h:46–291and 84 more
46/// Get a pointer to the last element in the array. 47#define array_back(self) array_get(self, (self)->size - 1) 48 49/// Clear the array, setting its size to zero. Note that this does not free any 50/// memory allocated for the array's contents. 51#define array_clear(self) ((self)->size = 0) 52 53/// Reserve `new_capacity` elements of space in the array. If `new_capacity` is 54/// less than the array's current capacity, this function has no effect. 55#define array_reserve(self, new_capacity) \First 10 of 246 lines.
- 286 lines in 82 placesc-header1,252 tokensinternal/cbm/vendored/common/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/ada/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/arkts/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/bash/tree_sitter/parser.h:1–286internal/cbm/vendored/grammars/beancount/tree_sitter/parser.h:1–286and 77 more
- 286 lines in 36 placesc-header1,761 tokensinternal/cbm/vendored/grammars/agda/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/assembly/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/astro/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/bitbake/tree_sitter/array.h:5–290internal/cbm/vendored/grammars/cairo/tree_sitter/array.h:5–290and 31 more
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 324 | 349,084 | 1,904 | 22,253 | 6.37% |
| c-header | 685 | 231,195 | 1,447 | 111,122 | 48.06% |
| cpp | 2 | 4,491 | 13 | 126 | 2.81% |
| python | 25 | 7,764 | 12 | 167 | 2.15% |
| bash | 77 | 18,522 | 10 | 129 | 0.7% |
| tsx | 33 | 4,460 | 8 | 354 | 7.94% |
| go | 4 | 2,620 | 4 | 48 | 1.83% |
| javascript | 7 | 4,015 | 3 | 25 | 0.62% |
| powershell | 9 | 1,607 | 2 | 22 | 1.37% |
| typescript | 8 | 856 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 614 | 1,765,036 | 27,105 | 516,935 | 29.29% |
| c-header | 699 | 236,517 | 1,471 | 112,043 | 47.37% |
| json | 21 | 30,043 | 250 | 10,051 | 33.46% |
| markdown | 27 | 16,053 | 161 | 7,282 | 45.36% |
| yaml | 30 | 4,699 | 41 | 460 | 9.79% |
| txt | 22 | 44,448 | 29 | 298 | 0.67% |
| bash | 137 | 27,890 | 26 | 315 | 1.13% |
| tsx | 40 | 5,402 | 25 | 571 | 10.57% |
| python | 40 | 14,308 | 17 | 211 | 1.47% |
| cpp | 2 | 4,491 | 13 | 126 | 2.81% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 24, 2026 | #12 | 44,670 (+190) | 1,686 | 2,161,467 | 29,152 | 30% | 21.48% | E 16 | 5958f54 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.