LLMScribe

Registre officiel Recherche et web

Deterministic local project map, search and file reader for AI agents.

Que pouvez-vous faire avec LLMScribe ?

  • AI coding agents
  • MCP applications
  • Developer tools
  • Code search interfaces
  • Repository explorers
  • Documentation systems
  • Code analysis pipelines
  • Automation scripts

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

PYPI package llmscribe
Claude Code
claude mcp add llmscribe -- uvx llmscribe==1.3.0
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "llmscribe": {
            "command": "uvx",
            "args": [
                "llmscribe==1.3.0"
            ]
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. LLMScribe
  2. The problem
  3. What LLMScribe does about it
  4. Feature Overview
  5. Quick Start
  6. Power Your Agent
  7. More Tools
  8. CLI
  9. Self-Hosting
  10. Run a single process (the cache and MCP sessions live in memory). PORT without MCP_TRANSPORT still selects HTTP for backward compatibility, but set MCP_TRANSPORT=http explicitly.
  11. Python API
  12. Behavior reference
  13. Architecture
  14. Philosophy
  15. Use Cases
  16. Open Source vs Hosted
  17. Resources
  18. Contributing
  19. License

LLMScribe

Turn any code repository into clean, structured, deterministic data. No AI. No embeddings. No hidden ranking. Open source and available as a free hosted MCP.


The problem

Your agent does not have an intelligence problem. It has a retrieval problem.

On a 1.4-million-line codebase, one benchmark agent burned 6,000 seconds and produced nothing — no analysis, no output, zero score. The same model, given structured code search instead of free-form file reading, finished the same task in 89 seconds and scored 0.90. Across another benchmark, Codex CLI completed its entire turn sequence without ever reaching the file that would have solved the task in 27–29% of runs. Handed the right context up front, its score nearly doubled.

The bottleneck is not the model. It is what goes into the context window.

What users keep reporting:

  • The agent explores 200 files to change one line, and admits it is "looking at unnecessary files"
  • Nine searches and fourteen files to find one constant, because the search itself is not ranked
  • The same files re-read in a loop, with no reasoning between the reads
  • Stale fixtures, mock data and outdated comments read as current truth
  • Search reporting "no matches found" when a plain grep finds the text immediately
  • Truncation that hides itself, and build output filling the window with noise

What LLMScribe does about it

The failureWhat LLMScribe does
Reads 200 files to change one lineproject_map returns the whole tree with contents excluded, before a single file is read
Re-reads the same files in a loopOutput is deterministic — same input, same bytes, every run
Misses the file that actually matteredproject_dependencies resolves local, stdlib, external and unresolved imports, plus reverse dependencies
Search returns nothing when the text existssearch returns path, line, matched text and match type, or a stable error code — never a silent empty
Stale fixtures read as current truthNothing is inferred, embedded or ranked; you get the files as they are, plus a Git diff
Build output and binaries fill the contextReal .gitignore semantics; binaries and oversized files are skipped
Context silently truncatedEvery cut is reported: truncated, truncation_note, omitted_files

The file an agent needs next is usually the one structurally related to the file it is already looking at — a dependent, a sibling module, a test fixture. That is a graph question, not a similarity question, which is why LLMScribe ships dependency analysis and a real tree instead of embeddings.


Feature Overview

Core Tools

FeatureDescription
**Map**Generate a clean directory tree without dumping file contents
**Search**Search file paths, file names, file contents, and individual lines
**Read**Safely retrieve a specific file

More

FeatureDescription
**Read Many**Retrieve multiple files in a single operation
**Dependencies**See what a file depends on and what depends on it
**Diff**Inspect Git status and unified diffs
**Overview**Export the complete structure and supported file contents

Quick Start

Install LLMScribe from PyPI:

pip install llmscribe

Then point it at any project directory, or (through the MCP tools) at a public GitHub repo. No API key needed.

The project_map(...), search(...), read(...) snippets below show MCP tool calls. The same operations are available from the CLI (local directories) and from Python through llmscribe.core (see Python API).

Map

Generate a clean directory tree without file contents. This is the best first step when exploring an unfamiliar repository.

project_map()

# or a public GitHub repo, no clone needed
project_map(repo="owner/repo")

CLI / MCP

CLI

llmscribe map
llmscribe map --json

MCP

project_map

Output:

src/
├── api/
│   ├── routes.py
│   └── auth.py
├── models/
│   └── user.py
└── main.py

Search across file paths, file names, file contents, and individual lines. Search is intentionally deterministic: LLMScribe does not try to guess what you meant.

search(query="authentication")

# or a public GitHub repo
search(query="authentication", repo="owner/repo")

CLI / MCP

CLI

llmscribe search "authentication"
llmscribe search "authentication" --json

MCP

search

Each match includes the file path, line number, the matching line, the matched text and the match type (filename or content). Results are ordered by path then line and limited to 1,000 matches; binary and oversized files are skipped.

Output (--json, data.matches):

[
  {
    "file_path": "src/auth/service.py",
    "line_number": 12,
    "line_content": "def authenticate(user, password):",
    "match_type": "content",
    "matched_text": "authenticate"
  }
]
Read

Safely retrieve the contents of a specific file. LLMScribe validates paths and prevents path traversal outside the project.

read(file_path="src/auth/service.py")

# or a public GitHub repo
read(file_path="src/main.py", repo="owner/repo")

CLI / MCP

CLI

llmscribe read src/auth/service.py

MCP

read

path and repo are mutually exclusive. Use path for a local project and repo for a public GitHub repository.


Power Your Agent

Instead of throwing an entire repository into a context window, an agent can progressively retrieve exactly what it needs:

1. project_map()
      ↓
2. search("authentication")
      ↓
3. read("src/auth/service.py")
      ↓
4. project_dependencies("src/auth/service.py")
      ↓
5. read_many([...])
MCP

Connect any MCP-compatible client (Cursor, Claude, Windsurf, and more) to your repository.

Free hosted MCP. No installation required:

{
  "mcpServers": {
    "llmscribe": {
      "url": "https://llmscribe.onrender.com/mcp"
    }
  }
}

For clients that support custom remote connectors, simply provide the endpoint: https://llmscribe.onrender.com/mcp

The public endpoint is convenient for experimentation. For private code or production workloads, self-host LLMScribe instead.

Local MCP. Runs on your machine, over stdio:

{
  "mcpServers": {
    "llmscribe": {
      "command": "llmscribe-mcp"
    }
  }
}

Alternative: Python module

{
  "mcpServers": {
    "llmscribe": {
      "command": "python",
      "args": ["-m", "llmscribe.mcp"]
    }
  }
}

Available tools

project_map
project_overview
search
read
read_many
project_dependencies
project_diff

More Tools

Read Many

Retrieve multiple files in a single operation. Partial success is supported, so one problematic file does not invalidate the entire request.

read_many([
    "src/auth/service.py",
    "src/auth/models.py",
    "src/api/login.py"
])
llmscribe read-many src/auth/service.py src/api/login.py
Dependencies

Inspect the dependency relationships around a file. LLMScribe identifies local dependencies, external dependencies, unresolved dependencies, and the files that depend on this file.

project_dependencies("src/auth/service.py")
llmscribe dependencies src/auth/service.py --json

Output:

src/auth/service.py
│
├── depends on
│   ├── auth/models.py
│   ├── auth/config.py
│   └── auth/utils.py
│
└── used by
    ├── api/login.py
    └── tests/test_auth.py

This is particularly useful when determining the potential impact of modifying a file.

Diff

Inspect repository changes using Git. Supports Git status, unstaged changes, staged changes, specific commits, and unified diffs.

llmscribe diff

This lets applications and agents understand not only the current repository, but also what changed.

Overview

Generate a complete project snapshot containing the directory structure, supported text file contents, and structured project information.

llmscribe overview

Best for small and medium-sized projects. For large repositories, use the recommended workflow instead:

map → search → read

CLI

Every command can return machine-readable JSON with --json, which makes the CLI a building block for scripts, automation, and developer tools.

llmscribe map
llmscribe overview
llmscribe search "authentication"
llmscribe read src/auth/service.py
llmscribe read-many src/auth/service.py src/api/login.py
llmscribe dependencies src/auth/service.py
llmscribe diff

# machine-readable output
llmscribe map --json
llmscribe search "auth" --json
llmscribe dependencies src/auth/service.py --json

Self-Hosting

Run your own HTTP MCP server for private repositories, teams, internal developer tools, and production applications.

Run locally
pip install llmscribe

MCP_TRANSPORT=http MCP_ALLOW_LOCAL_PATHS=1 llmscribe-mcp

The server will be available at http://localhost:8000/mcp, with GET /health and GET /info for monitoring.

Over HTTP the path argument is disabled by default so a hosted server does not expose its own disk. Set MCP_ALLOW_LOCAL_PATHS=1 to allow any local path (only on a machine you trust), or MCP_ALLOWED_ROOTS=/srv/a:/srv/b to allow specific directories. GitHub repositories (repo=) always work.

Docker
docker build -t llmscribe-mcp .

docker run -p 8000:8000 -e MCP_ALLOWED_HOSTS="localhost,localhost:*,mcp.example.com" llmscribe-mcp

The image runs python -m llmscribe.mcp with MCP_TRANSPORT=http, as an unprivileged user, and has a /health with a healthcheck.

Railway
railway up
Environment Variables
VariableDescriptionDefault
MCP_TRANSPORTstdio or httpstdio
HOSTHTTP bind address0.0.0.0
PORTHTTP port8000
MCP_ALLOWED_HOSTSAccepted Host values for /mcp (comma-separated, host:* for any port, * for any). Default: loopback plus RENDER_EXTERNAL_HOSTNAME / RAILWAY_PUBLIC_DOMAINloopback
MCP_ALLOWED_ORIGINSAccepted Origin values for /mcp (requests without an Origin, i.e. all non-browser clients, are always accepted). Default: loopback, claude.ai, the platform hostname; * allows anysee left
MCP_ALLOW_LOCAL_PATHS1 allows any local path over HTTPoff
MCP_ALLOWED_ROOTSDirectories (separated by : / ;) allowed as path over HTTPnone
GITHUB_TOKEN / GH_TOKENToken for private repositories and higher rate limits (sent only to api.github.com)none
LLMSCRIBE_CACHE_MAX_ENTRIESGitHub snapshots kept in memory (0 disables)8
LLMSCRIBE_CACHE_TTL_SECONDSSnapshot lifetime300

Run a single process (the cache and MCP sessions live in memory). PORT without MCP_TRANSPORT still selects HTTP for backward compatibility, but set MCP_TRANSPORT=http explicitly.

Python API

from pathlib import Path
from llmscribe.core import project_map, search_project, read_file, read_files, analyze_dependencies, get_git_diff, LLMScribeError

root = Path(".")
print(project_map(root).tree)
print(search_project("auth", root).to_dict())
print(read_files(["README.md", "missing.py"], root).to_dict())   # per-file errors, never raises
try:
    analyze_dependencies("src/app.py", root)
except LLMScribeError as err:      # err.code is a stable machine-readable code
    print(err.code, err.message)

Behavior reference

Ignore rules. Defaults (.git, node_modules, venv, dist, build, .env, *.log, …), the root .gitignore and nested .gitignore files are applied with real Git semantics (wildcards, directories, ! negation, root-anchored patterns). Hidden files are included unless ignored; symlinks are never followed or listed.

Supported text files. Known source/config/doc extensions plus names such as Dockerfile, Makefile, LICENSE, .gitignore. Other files appear in the tree but cannot be read or searched.

Limits (single source: llmscribe.core.limits): 400,000 content characters per overview/read_many, 50 files per read_many, 1,000 search matches, 20,000 map entries, 2 MiB per file, 200,000 diff characters, 100 MiB archive download, 250 MiB / 100,000 entries per archive. Anything cut is reported (truncated, truncation_note, omitted_files).

Errors. Every failure has a stable code: invalid_argument, invalid_path, file_not_found, unsupported_file_type, binary_file, file_too_large, read_error, repository_not_found, not_a_repository, repository_too_large, github_rate_limited, github_auth_required, github_unavailable, git_unavailable, unsupported_operation, internal_error. JSON: {"ok": false, "tool": "...", "error": {"code": "...", "message": "..."}}.

Dependencies. Python, JavaScript/TypeScript, Java, Go, Rust, C/C++. Each reference is local, stdlib, external (not in the repository, assumed third-party) or unresolved (relative/local reference that matches nothing); used_by lists reverse dependencies. Works identically for local and GitHub sources.

GitHub. Public repositories (and private ones with GITHUB_TOKEN) are fetched as one zip archive and cached in memory per owner/repo/ref/credential. Nothing is cloned or written to disk. project_diff on GitHub uses the compare API and requires commit (base) with optional ref (head); staged is local only.

Git diff (local). Runs git with an argument list, a 30 s timeout, a minimal environment, and without external diff/textconv drivers.

Migration notes
  • Legacy tool names (project_get_file, project_get_files, project_search, project_list_files) are gone; use read, read_many, search.
  • Error code path_traversal is now invalid_path; not_text_file is unsupported_file_type.
  • project_dependencies results: all_local_files/all_external_deps/all_unresolved were replaced by used_by and per-category lists (stdlib_dependencies added).
  • llmscribe.core functions raise LLMScribeError (not FileNotFoundError) for a bad root; the dependency-provider classes and llmscribe.github.provider helpers were removed.
  • Over HTTP, local path access now requires MCP_ALLOW_LOCAL_PATHS or MCP_ALLOWED_ROOTS.

Architecture

All interfaces share one core engine, so behavior stays consistent everywhere.

                         Repository
                             │
               ┌─────────────┴─────────────┐
               │                           │
          Local Project               GitHub Repo
               │                           │
               └─────────────┬─────────────┘
                             ▼
                     LLMScribe Core
                             │
       ┌─────────────────────┼─────────────────────┐
       │                     │                     │
       ▼                     ▼                     ▼
      CLI                   MCP                   GUI
       │                     │
       └──────────────┬──────┘
                      ▼
              Structured Output
                   / JSON

Philosophy

LLMScribe intentionally stays simple. The goal is not to make the repository "smarter." The goal is to make the repository accessible to software.

We provide

  • Repository extraction
  • Deterministic search
  • Structured project data
  • File retrieval
  • Dependency information
  • Git information
  • Multiple interfaces

We don't provide

  • ❌ AI-generated answers
  • ❌ Embedding-based search
  • ❌ Semantic ranking
  • ❌ Autonomous coding
  • ❌ An AI coding agent
  • ❌ A generic Git client

Use Cases

  • AI coding agents
  • MCP applications
  • Developer tools
  • Code search interfaces
  • Repository explorers
  • Documentation systems
  • Code analysis pipelines
  • Automation scripts
  • Local LLM applications
  • Exploring unfamiliar open-source projects

Open Source vs Hosted

LLMScribe is open source under the Apache License 2.0. Run it locally, inspect the source, modify it, self-host it, and build your own integrations.

The hosted MCP endpoint provides a convenient zero-install option for trying it out, while the open-source project gives you complete control.


Resources


Contributing

Contributions are welcome. If you want to improve repository extraction, search, dependency analysis, interfaces, integrations, or documentation, check the contributing guide before opening a pull request.


License

LLMScribe is licensed under the Apache License 2.0. See the LICENSE file for details.

Repository data, structured.

↑ Back to top

Questions fréquentes

Qu'est-ce que LLMScribe ?

Deterministic local project map, search and file reader for AI agents.

Comment installer LLMScribe ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add llmscribe -- uvx llmscribe==1.3.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour LLMScribe ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

LLMScribe est-il open source ?

Oui. Son code est sur GitHub sous licence Apache-2.0.

Qui maintient LLMScribe ?

Il est publié par AMRITO-KUNDU. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.