Tokennuke logo

Tokennuke

Indexes local and remote code for symbol search, source retrieval, call graphs, and incremental analysis across 10 languages.

Install Tokennuke

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tokennuke": {
      "command": "uvx",
      "args": [
        "tokennuke"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx tokennuke

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The tokennuke MCP server indexes local folders and GitHub or GitLab repositories into per-repository SQLite databases. It parses 10 languages with tree-sitter, combines FTS5 keyword search with vector similarity, and exposes tools for symbols, file contents, call graphs, dependencies, and diffs. Direct byte-offset retrieval returns individual symbols without reading entire files, reducing context usage for code-focused agents. Use it when an agent needs structured repository navigation, targeted source access, or incremental re-indexing.

Use cases

  • Index a local codebase for agent-assisted navigation
  • Search symbols semantically across a repository
  • Review callers before changing a function signature
  • Retrieve exact function source without loading whole files
  • Compare symbols between incremental indexes

Key features

  • Tree-sitter parsing for 10 languages
  • Incremental SHA-256-based indexing
  • FTS5 and vector hybrid search
  • Byte-offset symbol retrieval
  • Caller, callee, and dependency analysis
  • GitHub and GitLab repository indexing

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/17 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · tokennuke (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Tokennuke works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tokennuke

tokennuke is an MCP server that connects AI clients to indexed local folders and GitHub or GitLab repositories. Its main tools index code, search symbols and file contents, retrieve exact symbol source, inspect callers and callees, map dependencies, and report symbol changes across supported languages.

Install it with `pip install tokennuke`, then configure your MCP client to launch the `tokennuke` command over stdio. The README provides configuration examples for Claude Desktop and Cline.

It documents stdio operation and streamable HTTP, so client compatibility depends on whether the client supports those MCP transports.

Use the `index_repo` tool with the repository URL. tokennuke downloads a tarball through the provider API, so git is not required; private repositories can use authentication tokens, and sparse paths are supported.

The `get_symbol` tool reads a requested definition directly using its stored byte offset and length. This avoids loading the entire source file when an agent needs one function, class, method, or other indexed symbol.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTokennuke AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tokennuke?style=directory)](https://allmcps.com/mcp/tokennuke)
HTML Embed
<a href="https://allmcps.com/mcp/tokennuke"><img src="https://allmcps.com/api/badge/tokennuke?style=directory" alt="Tokennuke on AllMCPs" /></a>