# tokennuke [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/BigJai/tokennuke  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tokennuke

## Description
Code indexing MCP: 15 tools, 10 languages, hybrid search, call graphs, O(1) retrieval.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "tokennuke": {
    "command": "uvx",
    "args": ["tokennuke"]
  }
}
```

## Documentation

## What tokennuke MCP server does

tokennuke MCP server gives an MCP client structured access to indexed source code. It can index a local directory or download a repository tarball from GitHub or GitLab without requiring the git executable. The index records files, symbols, full-text content, vector data, and call-graph edges in a separate SQLite database for each repository.

Supported languages are Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, C#, and Ruby. Tree-sitter extracts functions, classes, methods, types, and interfaces. The available operations cover repository discovery, directory trees, file and repository outlines, symbol retrieval, text and symbol search, dependency relationships, callers and callees, cache invalidation, and symbol diffs.

## How it works

The indexing pipeline parses each source file into an AST, extracts symbols and call expressions, and stores the results in SQLite. Symbol records include byte offsets and lengths, allowing `get_symbol` to seek directly to a requested definition. `get_symbols` provides the corresponding batch operation.

Symbol search combines SQLite FTS5 matching with 384-dimensional vectors generated by FastEmbed on the CPU. Reciprocal Rank Fusion combines keyword and semantic results, so a conceptual query can surface related symbol names as well as direct text matches. Separate full-text search covers raw file content such as comments, string literals, configuration values, and error messages.

Call expressions are stored as graph edges. The caller and callee tools can traverse these relationships with depth traversal, while dependency mapping reports file-level relationships. SHA-256 file hashes support incremental indexing: unchanged files do not need to be parsed again.

## Setup and configuration

Install the package with:

```bash
pip install tokennuke
```

For a stdio connection, configure an MCP client to launch the `tokennuke` command. A minimal configuration uses `command: "tokennuke"`. The README specifically shows examples for Claude Desktop and Cline.

The server can also use streamable HTTP:

```bash
tokennuke --transport streamable-http --port 5002
```

Indexed databases are stored under `~/.tokennuke/`. Remote repository indexing accepts GitHub or GitLab URLs, supports public repositories, and can use authentication tokens for private repositories. Sparse paths are also supported. The material does not specify environment variable names for authentication.

## Tools and capabilities

The tokennuke MCP server exposes 15 tools:

- `index_folder` and `index_repo` create or update local and remote indexes.
- `list_repos`, `file_tree`, `file_outline`, and `repo_outline` describe indexed content.
- `get_symbol` and `get_symbols` retrieve complete symbol source by byte position.
- `search_symbols` performs hybrid symbol search; `search_text` searches file contents.
- `get_callees`, `get_callers`, and `dependency_map` inspect code relationships.
- `diff_symbols` reports symbol changes since the previous index.
- `invalidate_cache` forces a repository to be indexed again.

These capabilities suit code review, refactoring, repository onboarding, API documentation work, and coding agents that need targeted source rather than whole-file context.

## Limitations and notes

Language analysis is limited to the ten listed tree-sitter languages. Remote repository indexing uses tarball downloads, so it does not require git, but the README only describes GitHub and GitLab sources. Vector generation uses FastEmbed with ONNX on the CPU. Call-graph results depend on the calls that can be extracted and resolved from the indexed code. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/tokennuke/readme_

