LLMScribe
You can use this read-only LLMScribe MCP server to explore, search, read, analyze dependencies in, and inspect Git changes for a local codebase through structured tool calls.
Map the project tree without file contents, optionally limited by depth.
Get a project overview with tree structure and supported text-file contents.
Search literally across file names/paths and contents, capped at 1,000 matches.
Read one file or read many files at once, with per-file errors and path confinement.
Analyze dependencies for Python, JS/TS, Java, Go, Rust, and C/C++, including reverse
used_byinformation.Inspect Git status and unified diffs for working-tree, staged, or commit-based changes.
Operate locally and deterministically, with
.gitignorehandling, secret redaction, truncation reporting, and JSON/markdown output.This schema exposes read-only tools only; no write, edit, move, delete, or directory-creation tools are registered.
Provides Git status and unified diff inspection for local project repositories, allowing agents to see working tree changes alongside code context.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LLMScribe map this repository and show its dependency graph"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LLMScribe
The filesystem layer for AI agents.
An agent uses LLMScribe to read a project, search it, trace its dependencies and change it — with the same operations and the same JSON on Linux, macOS and Windows. An MCP server, a command line tool and a Python library, from one core.
No AI, no embeddings, no ranking, no network access, no account. Apache-2.0.
Works with any MCP client — Claude Code, Cursor, VS Code, Zed and the rest — plus pip install and a desktop app for Windows.
Install · Quick start · MCP setup · CLI · Python API · FAQ · Website
Table of contents
Related MCP server: mcp-developer-server
What is LLMScribe?
An AI coding agent that wants to understand your repository normally has one interface: the shell. ls, find, grep and cat were built for a person reading a terminal, not for a program building a model of a codebase. Their output is formatted for eyes, differs between operating systems, and has to be re-parsed by the agent every time.
LLMScribe replaces that with fourteen structured operations that behave the same everywhere:
Map the project tree without reading any file.
Search paths and contents literally.
Read one file or many, whole or by line range.
Trace dependencies in both directions.
Diff against Git.
Overview a whole small project in one call.
Write: create, edit, move, delete and make directories.
Return everything as JSON, with truncation always reported.
It reads and writes, so an agent can fix the bug it just found instead of switching to shell commands. Every write goes through the same path guards as a read: no absolute paths, no .., no symlinks, nothing outside the project. Writes are atomic, and an edit is an exact string replacement that fails loudly rather than changing the wrong place.
Why this matters in practice. On a 1.4-million-line codebase, one benchmark agent burned 6,000 seconds and produced nothing — no analysis, no output. 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 whole turn sequence without ever reaching the file that would have solved the task in 27–29% of runs. The bottleneck is not the model. It is what goes into the context window.
Features
Project map: full directory tree with contents excluded, optionally limited by depth.
Literal code search: results ordered by path and line, with the matched text and match type. Never a silent empty result.
Safe file reads: path traversal outside the project is blocked. Every read reports
byte_size,line_countandmodifiedfor the whole file.Line ranges:
--lines 200:250reads part of a large file instead of all of it.Batch reads:
read_manysupports partial success, so one bad path does not fail the request.Dependency graph: imports and reverse dependencies (
used_by) for Python, JavaScript/TypeScript, Java, Go, Rust and C/C++.Git status and diff: staged, unstaged and per-commit unified diffs.
Context-window control:
--depth,--max-tokensand--compressfit large repositories into small contexts.Secret redaction: API keys, tokens, private keys and connection-string credentials are masked by default.
Real
.gitignoresemantics: nested files, wildcards, directory rules and!negation.Deterministic output: same input, same bytes, on every run and every OS.
Local-only: no network access, no hosted service, no telemetry.
Install
pip install llmscribe # core: map, search, read, dependencies, diff
pip install 'llmscribe[server]' # adds the MCP server (llmscribe-mcp)
pip install 'llmscribe[adapters]' # adds LangChain, LlamaIndex, PydanticAI and smolagents adaptersThe core package has a single dependency (pathspec). The MCP server and framework adapters are optional extras, so a library user never pays for a protocol server they do not run. If you run llmscribe-mcp without the server extra, it prints the install command and exits instead of raising an ImportError.
A standalone Windows EXE is also available from the Releases page. The desktop GUI ships either as that EXE or as pip install 'llmscribe[gui]', which provides the llmscribe-gui command.
Git is only needed for the diff tool.
Quick start
Use it as an MCP server
pip install 'llmscribe[server]'
claude mcp add llmscribe -- llmscribe-mcpThen ask your agent to explore the project. Setup for every other client is in MCP server setup.
Use it from the command line
pip install llmscribe
llmscribe map --depth 2 # project tree, two levels deep
llmscribe search "authentication" # literal search across paths and contents
llmscribe read src/auth/service.py # one file, with size, line count and mtime
llmscribe dependencies src/auth/service.py --jsonUse it from Python
from llmscribe import Repository
repo = Repository(".")
print(repo.map().tree)
print(repo.search("auth").match_count)Tools
Fourteen tools, identical across the MCP server, CLI and Python library.
MCP tool | CLI command | What it does |
|
| Directory tree without file contents. Supports |
|
| Tree plus supported file contents. Supports |
|
| Literal search across file paths, names, contents and lines. |
|
| One file with |
|
| Up to 50 files in one call, with per-file errors. |
|
| What a file imports and what imports it. |
|
| Git status and unified diffs. |
|
| Create or replace a file. Atomic. |
|
| Replace an exact substring. Fails on no match, or on more than one unless |
|
| Create a directory, including missing parents. |
|
| Move or rename. Refuses to overwrite unless |
|
| Delete one file. Directories are refused. |
|
| Add to the end of a file, creating it if needed. Keeps the encoding. |
|
| Copy a file byte for byte. |
MCP server setup
LLMScribe is a standard MCP server that runs locally over stdio. Install the server extra first:
pip install 'llmscribe[server]'Standard mcpServers configuration
Most clients accept this block:
{
"mcpServers": {
"llmscribe": {
"command": "llmscribe-mcp"
}
}
}If llmscribe-mcp is not on your PATH, call the module instead:
{
"mcpServers": {
"llmscribe": {
"command": "python",
"args": ["-m", "llmscribe.mcp"]
}
}
}Where to put it:
Client | Where to add it | Notes |
Claude Desktop |
| Fully quit and reopen after saving. |
Cursor |
| Restart, then check Customize → MCPs. |
Windsurf (Cascade) |
| Press refresh after saving. |
Cline | MCP Servers → Configure → Configure MCP Servers | |
Roo Code | Global | |
LM Studio |
| Follows Cursor's |
JetBrains IDEs | Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add → As JSON | You can also click Import from Claude. |
Clients with a different format
Claude Code
claude mcp add llmscribe -- llmscribe-mcpConfirm with claude mcp list. Add --scope user to enable it in every project, or --scope project to share it with your team through .mcp.json.
VS Code (GitHub Copilot) uses servers, not mcpServers. Create .vscode/mcp.json:
{
"servers": {
"llmscribe": {
"type": "stdio",
"command": "llmscribe-mcp"
}
}
}Open Copilot Chat in Agent mode and click the tools icon to start the server.
OpenAI Codex CLI: add to ~/.codex/config.toml:
[mcp_servers.llmscribe]
command = "llmscribe-mcp"Zed: add to your settings (or Settings → AI → MCP Servers → Add Server):
{
"context_servers": {
"llmscribe": {
"command": "llmscribe-mcp",
"args": [],
"env": {}
}
}
}Continue: add to ~/.continue/config.yaml, or a file under .continue/mcpServers/:
name: LLMScribe
version: 1.0.0
schema: v1
mcpServers:
- name: LLMScribe
command: llmscribe-mcpGoose: add an extension to ~/.config/goose/config.yaml:
extensions:
llmscribe:
name: llmscribe
enabled: true
type: stdio
cmd: llmscribe-mcp
args: []
timeout: 300The server is also listed in the official MCP Registry as io.github.AMRITO-KUNDU/llmscribe.
Recommended agent workflow
Instead of pushing a whole repository into a context window, let the agent retrieve only what it needs:
1. project_map() what is in this project?
↓
2. search("authentication") where is the relevant code?
↓
3. read("src/auth/service.py") what does it say?
↓
4. project_dependencies("src/auth/service.py") what does it touch, and what touches it?
↓
5. read_many([...]) pull in the related filesFor small and medium projects, project_overview returns the tree and supported file contents in one call. For large repositories, stay with map → search → read.
Tool details
Map
Generates a clean directory tree without file contents. This is the best first step in an unfamiliar repository.
llmscribe map
llmscribe map --depth 2 # first two levels only, like `tree -L 2`
llmscribe map --sizes # add each file's size in bytes
llmscribe map --jsonMCP: project_map or project_map(depth=2).
--depth N (or max_depth=N in Python) keeps the first N path levels. A top-level file is depth 1, so --depth 2 keeps a/b.py and drops a/b/c.py. It prunes both the tree and the file list, so overview --depth 2 never reads the files it excluded.
src/
├── api/
│ ├── routes.py
│ └── auth.py
├── models/
│ └── user.py
└── main.pySearch
Searches file paths, file names, file contents and individual lines. Search is intentionally literal: LLMScribe does not guess what you meant.
llmscribe search "authentication"
llmscribe search "authentication" --jsonEach match includes the file path, line number, matching line, matched text and match type (filename or content). Results are ordered by path then line and capped at 1,000 matches. Binary and oversized files are skipped.
[
{
"file_path": "src/auth/service.py",
"line_number": 12,
"line_content": "def authenticate(user, password):",
"match_type": "content",
"matched_text": "authenticate"
}
]Read
Retrieves a file. Paths are validated, and traversal outside the project is rejected.
llmscribe read src/auth/service.py
llmscribe read logo.png --binary # base64 content plus media typeEvery read reports byte_size, line_count and modified (ISO 8601, UTC) for the whole file, even when the returned body was clipped. That is the stat, wc -l and file information in one consistent shape on every OS.
{ "file_path": "src/main.py", "byte_size": 2841, "line_count": 96, "modified": "2026-11-21T04:13:16+00:00", "truncated": false }--binary is the only way to retrieve a non-text file. content becomes base64 and media_type carries the guessed MIME type. Binaries are still excluded from overview and read_many, so they cannot quietly fill a context window.
Read part of a file. start_line and end_line are 1-based and inclusive, so asking for lines 200–250 of a 5,000-line file returns 51 lines rather than 5,000:
llmscribe read src/big.py --lines 200:250
llmscribe read src/big.py --lines 498: # from line 498 to the endrepo.read("src/big.py", start_line=200, end_line=250)line_count still reports the whole file and returned_lines reports the slice, so an agent can always tell there is more. A range cannot be combined with --compress: compression rewrites the file, so line numbers would stop referring to what you asked for.
Read many
Retrieves several files in one operation. Partial success is supported, so one problematic file does not invalidate the 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.pyDependencies
Shows what a file depends on and what depends on it. Useful for estimating the impact of changing a file.
llmscribe dependencies src/auth/service.py --jsonsrc/auth/service.py
│
├── depends on
│ ├── auth/models.py
│ ├── auth/config.py
│ └── auth/utils.py
│
└── used by
├── api/login.py
└── tests/test_auth.pySupported languages: Python, JavaScript/TypeScript, Java, Go, Rust and C/C++. Each reference is classified as:
local: resolved to a file or directory inside the projectstdlib: part of the language's standard libraryexternal: not in the project, assumed third-partyunresolved: a relative or local-looking reference that matches nothing
used_by lists the reverse dependencies.
Diff
Reads repository changes from Git: status, unstaged changes, staged changes, specific commits and unified diffs. This lets an agent see not only the current state of the repository but what changed.
llmscribe diffGit runs with an argument list, a 30-second timeout, a minimal environment and without external diff or textconv drivers.
Overview
Produces a project snapshot: directory structure, supported text file contents and structured project information.
llmscribe overview
llmscribe overview --depth 3
llmscribe overview --compress --max-tokens 20000CLI reference
Every command accepts --json (-j) for machine-readable output, which makes the CLI a building block for scripts, automation and developer tooling.
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
llmscribe map --depth 2 # first two levels
llmscribe overview --max-tokens 20000 # fit a context budget
llmscribe search "auth" --json # machine-readable output
llmscribe -V # print the versionPaths are flexible. Every command takes an optional directory, so --path is never required:
llmscribe . # map the current directory
llmscribe ./src # map a specific directory
llmscribe map ./src # the same, spelled out
llmscribe search "auth" ./src # search inside a directoryAliases for verbs you already type:
Alias | Command |
|
|
|
|
|
|
|
|
|
|
read accepts several files and switches to a batch read automatically: llmscribe cat src/main.py src/util.py.
Writing
An agent asked to fix a bug has to change a file. If the layer cannot do that, the person building the agent falls back to shell commands and the problem comes back.
llmscribe write src/new.py --content 'def f(): ...'
echo 'x = 1' | llmscribe write src/piped.py # stdin
llmscribe edit src/main.py --old 'retries = 3' --new 'retries = 5'
llmscribe mkdir src/generated
llmscribe mv src/old.py src/new.py
llmscribe rm src/dead.py
llmscribe append CHANGELOG.md --content '- Fixed the thing'
llmscribe cp src/main.py src/main.py.bakEditing safely when someone else might be working in the same tree:
REV=$(llmscribe read src/main.py --json | jq -r .data.revision)
llmscribe edit src/main.py --old 'retries = 3' --new 'retries = 5' --expect "$REV"Six properties hold for every write:
Confined to the project. Absolute paths,
..segments (including encoded and backslash forms) and symlinks are refused, using the same checks the read side uses. A write that would land outside the root fails; it is not silently sanitised. The restriction is in the tool schema too, as apatternon every path parameter, so the model sees the boundary instead of discovering it by failing.Atomic. Content goes to a temporary file in the same directory and is then replaced, so an interrupted write leaves the original intact rather than a half-written file.
Exact, not clever.
edit_filereplaces a literal substring. If it is absent you getno_match; if it appears more than once you getambiguous_matchand nothing is written. It will not guess which one you meant.Reported. Every result says what happened —
created,overwritten,editedwith a replacement count,movedwith a destination,deletedwith the bytes freed.No lost updates.
readreturns arevision, a short fingerprint of the file's bytes. Pass it back asexpect_revisionand the write is refused withconflictif the file changed in between, instead of overwriting a change someone else made.Honest failures. A read-only file or directory is
permission_deniedrather than a silent replace; a full disk isno_spaceand says the original is untouched; a path past the Windows limit ispath_too_longand names the limit. Nothing is left half written, and no temporary file survives a failure.
Secrets are still masked in everything that leaves; what you store is written verbatim.
Read-only mode
To make it impossible for the agent to change anything, run the server read-only. The write tools are never registered, so a client does not list them and a call fails as an unknown tool — a model cannot ask for what it cannot see:
llmscribe-mcp --read-only
# or, for clients configured with environment variables:
LLMSCRIBE_READ_ONLY=1 llmscribe-mcpSeven tools remain: map, overview, search, read, read_many, dependencies and diff.
Token budgets and compression
Large repositories do not fit in a context window. LLMScribe gives you three predictable controls.
Control | Effect |
| Limits the tree and file list to the first N path levels. Excluded files are never read. |
| Stops once content reaches roughly N tokens, taking files in path order. |
| Reduces Python files to imports, signatures, docstrings and class shape. |
llmscribe overview --compress
llmscribe read src/service.py --compress
llmscribe overview --compress --max-tokens 20000Compression is a syntactic transform, not a summary
--compress uses the standard library parser to read a Python file and re-serialise its API surface without function bodies. On a typical module that is roughly half the characters. Nothing is inferred or ranked, and the same file always produces the same bytes.
Python only. Supporting more languages would mean a compiled dependency in a pure-Python package.
Formatting is normalised.
"may become'and blank lines collapse, so compressed output is for reading, not diffing.Files that do not parse are left exactly as they are.
Budgets spend in a fixed order
--max-tokens takes files in path order until the budget is gone. Choosing files by relevance would be ranking, which this project avoids on purpose. A predictable cut beats an unpredictable one: you can always raise the budget or read a specific file. Token counts are estimated at four characters each, because an exact count would depend on which model's vocabulary you meant.
Any cut is reported through truncated, truncation_note and omitted_files, so truncation is never hidden.
The tool definitions cost about 3,200 tokens
A client pays for your tool schemas on every request, whether it uses them or not. LLMScribe's fourteen definitions total roughly 3,285 tokens in OpenAI format, and a little less in Anthropic and MCP shape. A 14-tool filesystem server was measured at ~7,000 tokens in a recent independent survey, so this is roughly half.
That follows from keeping the surface small, the descriptions specific, and the path
constraint in a pattern rather than a paragraph. If you pay per token, measure your
own.
Secret redaction
LLMScribe exists to put code in front of a model, so every result is scrubbed first: file contents, search hits and diffs. The result tells you what it masked.
{ "content": "API_KEY = \"[REDACTED:openai_key]\"", "metadata": { "redacted": ["openai_key"] } }Detected shapes include AWS keys, GitHub and Slack tokens, Stripe and Google keys, JWTs, Authorization: Bearer headers, credentials inside connection strings, private-key blocks and password = "..." assignments.
Matching is conservative: high-confidence token shapes with fixed replacements, so ordinary code is left alone and output stays repeatable.
Redaction is on by default everywhere, including the MCP server. Use --no-redact (CLI) or redact=False (Python) when you need raw text. An agent cannot turn it off.
Python library and framework adapters
Use LLMScribe as a library without running a server.
from llmscribe import Repository, LLMScribeError
repo = Repository(".") # or Repository(Path("."))
print(repo.map().tree) # tree, no file contents
print(repo.search("auth").match_count)
match = repo.read("src/app.py") # returns a result, never raises
if match.ok:
print(match.content)
batch = repo.read_many(["README.md", "missing.py"]) # per-file errors, never raises
print(batch.success_count, batch.error_count)
deps = repo.dependencies("src/app.py") # raises LLMScribeError
print(deps.file_dependencies.local_dependencies)
print(deps.used_by) # what imports itTwo error conventions:
readandread_manyreturn results carryingokanderror_code, so a batch reports per-file failures.dependenciesanddiffraiseLLMScribeError, whose.codeis a stable machine-readable string.
Every method returns the same dataclasses the CLI and MCP server produce, each with .to_dict() for JSON.
Register the tools in any agent framework
from llmscribe import Repository, tool_schemas
schemas = tool_schemas("openai") # or "anthropic", "mcp", "raw"
run = Repository(".").handlers() # tool name -> callable
result = run["project_map"](depth=2) # {'ok': True, 'data': {...}, ...}llmscribe schema --format openai prints the same definitions from the CLI.
Ready-made adapters
Adapters ship for LangChain, LlamaIndex, PydanticAI, smolagents and the Anthropic Messages API (no SDK needed):
from llmscribe import Repository
from llmscribe.adapters import as_langchain_tools, as_llamaindex_tools, as_anthropic_tools
tools = as_langchain_tools(Repository(".")) # StructuredTool objects
tools = as_llamaindex_tools(Repository(".")) # FunctionTool objects
defs, dispatch = as_anthropic_tools(Repository(".")) # Messages API shapeEach adapter is exercised against the real framework in CI, on every push.
Each adapter imports its framework lazily and, if it is missing, tells you which pip command to run.
Guarantees that make it safe to depend on
Handlers never raise. A missing file returns
{"ok": False, "error": {...}}, so an agent loop is not broken by a bad path.pathis not a tool argument. A bound tool set cannot be repointed at another directory by the model.schema_versionis in every JSON envelope. It changes only for a breaking change to the output contract.
Runnable examples are in examples/: chunking a repository for a RAG pipeline, reviewing what a change touches, and generating a repository summary.
Configuration
LLMScribe runs entirely on your machine and needs no configuration. Two optional environment variables restrict which directories the MCP server may read:
Variable | Description | Default |
| Directories the tools may read, separated by | All paths |
|
| Enabled |
Behavior reference
Ignore rules
Defaults (.git, node_modules, venv, dist, build, .env, *.log and more), the root .gitignore and nested .gitignore files are applied with real Git semantics: wildcards, directories, ! negation and root-anchored patterns. Hidden files are included unless ignored. Symlinks are never followed or listed.
Supported text files
Known source, config and documentation extensions, plus names such as Dockerfile, Makefile, LICENSE and .gitignore. Other files appear in the tree but cannot be read or searched.
Limits
Defined in one place, llmscribe.core.limits:
Limit | Value |
Content characters per | 400,000 |
Files per | 50 |
Search matches | 1,000 |
Map entries | 20,000 |
Size per file | 2 MiB |
Diff characters | 200,000 |
Scanned entries | 100,000 |
Anything cut is reported through truncated, truncation_note and omitted_files.
Error codes
Every failure has a stable, machine-readable code:
invalid_argument · invalid_path · file_not_found · unsupported_file_type · binary_file · file_too_large · read_error · not_a_repository · git_unavailable · unsupported_operation · internal_error
{"ok": false, "tool": "...", "error": {"code": "...", "message": "..."}}Deterministic and cross-platform, verified in CI
scripts/cross_platform_check.py builds a fixed fixture project, runs map, overview, search, read, read_many and dependencies, scrubs the absolute path and digests each result. The cross-platform workflow runs it on Ubuntu, macOS and Windows and fails the build if the digests differ:
llmscribe <version>
python 3.12
map <sha256>
map_depth2 <sha256>
overview <sha256>
search <sha256>
read <sha256>
read_many <sha256>
dependencies <sha256>
combined <sha256> <- must be identical on all threeThe fixture is written as bytes, not text, so the files are byte-identical on every platform. Writing text would turn \n into \r\n on Windows and make the comparison meaningless.
Upgrading from older versions
Legacy tool names (
project_get_file,project_get_files,project_search,project_list_files) were replaced byread,read_manyandsearch.Error code
path_traversalis nowinvalid_path.not_text_fileis nowunsupported_file_type.In
project_dependenciesresults,all_local_files,all_external_depsandall_unresolvedwere replaced byused_byand per-category lists.stdlib_dependencieswas added.llmscribe.corefunctions raiseLLMScribeError, notFileNotFoundError, for a bad root.1.3.0: online GitHub sources were removed, and LLMScribe is now local-only. The
repoandrefarguments, the in-memory snapshot cache, thellmscribe.githubpackage and the hosted HTTP transport are gone. Point the tools at a localpath.
See the changelog for full release notes.
Comparison
LLMScribe vs shell commands
What the agent needs | Linux / macOS | Windows | LLMScribe |
List a directory |
|
|
|
Find files by name |
|
|
|
Search inside files |
|
|
|
Read a file |
|
|
|
Compare versions |
|
|
|
Shell output is made for eyes (columns, colour, locale-dependent sort order, warnings mixed with results), is not portable between operating systems, and forces the agent to re-parse text. LLMScribe returns the same JSON and the same bytes everywhere.
LLMScribe vs the filesystem MCP server
@modelcontextprotocol/server-filesystem is a good tool and covers the same ground on the basics. Both read and write. The difference is what surrounds the operations.
server-filesystem | LLMScribe | |
Read / write / move / create | Yes | Yes |
Binary and media reads | Yes | Opt-in ( |
File size and mtime |
| On every read, plus |
| No | Yes, real pathspec semantics |
Dependency graph (imports and | No | Yes |
Git diff and status | No | Yes |
Truncation reported | No | Yes, with |
Atomic writes | No | Yes, temp file then replace |
Refuses writes outside the root or through a symlink | Partial | Yes |
Secret redaction | No | Yes, on by default |
Both can write. The difference is what happens around it: LLMScribe refuses to write outside the project root or through a symlink, writes atomically so an interrupted write leaves the original intact, and reports exactly what changed. Run whichever you prefer — or both.
Use cases
Giving AI coding agents (Claude Code, Cursor, Codex, Copilot) reliable codebase context
Building MCP applications and local LLM tools
Code search and repository explorer interfaces
Impact analysis before changing a file
Chunking repositories for RAG and code analysis pipelines
Documentation generation and repository summaries
Automation scripts that need stable, parseable project data
Exploring unfamiliar open-source projects
FAQ
What is LLMScribe?
LLMScribe is an open-source MCP server, CLI and Python library that gives AI coding agents structured access to a local codebase: project map, literal search, file reads with line ranges, dependency graph, Git diff, and the write operations — create, edit, move, delete — needed to change code. Everything is returned as deterministic JSON.
How do I install the LLMScribe MCP server?
Run pip install 'llmscribe[server]', then add llmscribe-mcp as a command in your client's MCP configuration. For Claude Code that is claude mcp add llmscribe -- llmscribe-mcp. See MCP server setup for other clients.
Which AI coding tools does LLMScribe work with?
Any MCP client, including Claude Code, Claude Desktop, Cursor, OpenAI Codex CLI, VS Code with GitHub Copilot, Windsurf, Zed, Cline, Roo Code, Continue, JetBrains IDEs, Goose and LM Studio.
Does LLMScribe use AI or embeddings?
No. There are no models, no embeddings and no semantic ranking. Search is literal, and compression is a fixed syntactic transform. The same input always produces the same bytes.
Does LLMScribe send my code anywhere?
No. It runs entirely on your machine with no network access, account, hosted service or telemetry.
Can an agent modify my files through LLMScribe?
Yes, through five explicit write tools: write_file, edit_file, create_directory, move_file and delete_file. Nothing is implicit. Every write is confined to the project root, refuses to follow symlinks, is atomic, and reports what changed. edit_file replaces an exact string, so it fails loudly rather than rewriting the wrong place.
How do I fit a large repository into a context window?
Start with llmscribe map --depth 2, then use search and read --lines 200:250 to pull in only the part that matters. For overviews, combine --depth, --compress and --max-tokens. Anything omitted is reported in omitted_files.
Are secrets and API keys exposed to the model?
High-confidence secret shapes (cloud keys, tokens, JWTs, private keys, connection-string credentials) are masked in file contents, search results and diffs by default, and the result lists what was redacted.
Which languages does dependency analysis support?
Python, JavaScript/TypeScript, Java, Go, Rust and C/C++. Compression (--compress) supports Python only.
Does LLMScribe work on Windows?
Yes. CI runs on Ubuntu, macOS and Windows and fails if the output differs between them.
How is LLMScribe different from the filesystem MCP server?
The filesystem server reads and writes. LLMScribe only reads, but adds a dependency graph, Git diff, .gitignore semantics, secret redaction and explicit truncation reporting. See the comparison.
Can I use LLMScribe without MCP?
Yes. Use the llmscribe CLI, the Repository Python class, or the LangChain, PydanticAI, smolagents and Anthropic adapters.
What license is LLMScribe under?
Apache License 2.0.
Architecture
How the code is laid out, what happens when you run a command, and where to add a new tool: see ARCHITECTURE.md. It assumes a little Python and no knowledge of this project.
Design notes
All interfaces share one core engine, so behavior is consistent everywhere.
Repository
│
▼
Local Project
│
▼
LLMScribe Core
│
┌─────────────────────┼─────────────────────┐
│ │ │
▼ ▼ ▼
CLI MCP GUI
│ │
└──────────────┬──────┘
▼
Structured Output
/ JSONIn scope: repository extraction, literal search, structured project data, file retrieval, dependency information, Git information and multiple interfaces.
Out of scope: AI-generated answers, embedding-based search, semantic ranking, autonomous coding, an AI coding agent and a general-purpose Git client. See VISION.md.
Contributing
Contributions are welcome: repository extraction, search, dependency analysis, interfaces, integrations and documentation.
Start with the vision, which sets out what is in scope, then the contributing guide.
Expect a first response within about 7 days. This is a part-time project, and pinging a quiet thread is welcome.
Issues labelled
good first issueare scoped to be self-contained.Ask questions in an issue so the next person can find the answer.
LLMScribe is maintained by @AMRITO-KUNDU. GOVERNANCE.md describes how decisions are made.
Report vulnerabilities as described in SECURITY.md.
Resources
Official MCP Registry listing (
io.github.AMRITO-KUNDU/llmscribe)
Star history
License
LLMScribe is licensed under the Apache License 2.0.
↑ Back to top
Available Tools
7 toolsproject_dependenciesB
Imports of one file (local, standard-library, external, unresolved) and the files that import it.
Supports Python, JavaScript/TypeScript, Java, Go, Rust and C/C++.
Inputs: file_path (required), path, format. Returns: result
project_diffA
Git status and unified diff of the working tree (vs HEAD, vs 'commit', or staged only).
Inputs: path, commit, format, staged. Returns: result
project_mapA
Directory tree and the list of supported text files, without file contents.
Respects default ignores and .gitignore files. Symlinks are not followed.
Set depth to list only the first N levels, like tree -L N.
Inputs: path, depth, format. Returns: result
project_overviewA
Directory tree plus the contents of supported text files.
Output is capped at 400,000 characters of file content; when capped, the
result says so and lists the omitted files. Set depth to include only
files within the first N levels, like tree -L N.
Inputs: path, depth, format. Returns: result
readA
Read one text file. Paths cannot leave the root; binary and oversized files are rejected.
Inputs: file_path (required), path, format. Returns: result
read_manyB
Read several text files in one call. A bad path yields an error entry; other files are still read.
Inputs: file_paths (required), path, format. Returns: result
searchA
Substring search over file names and file contents.
Results are ordered by path then line number and limited to 1,000 matches. Binary and oversized files are skipped. This is plain text matching, not semantic search.
Inputs: query (required), path, format. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a reasonably distinct role: search (content matching), project_map (structure only), project_overview (structure + contents), read/read_many (single vs batch file reads), project_dependencies (import graph), and project_diff (git state). The only close pair is project_map vs project_overview, but the descriptions make the tree-only vs tree-plus-contents distinction explicit. read vs read_many is a deliberate batch/single split rather than true overlap.
Four tools share a clean `project_*` prefix (map, overview, dependencies, diff), but the remaining three are bare verbs (search, read, read_many), so the set mixes two conventions. Both groups are individually readable and snake_case throughout, so it is inconsistent rather than chaotic. An agent could not reliably infer a name from a prefix alone.
Seven tools is well within the ideal range and every one earns its place: structure browsing, content search, single and batch reads, dependency inspection, and git diff cover distinct needs. Nothing looks redundant or like a thin wrapper around another tool's behavior.
The surface covers the full read-only context-gathering lifecycle for a codebase: discover structure, search, read (singly or in bulk), trace imports, and inspect uncommitted changes. Minor gaps remain — no glob/path-pattern listing, no symbol or definition lookup, and no git history beyond the working tree — but agents can approximate these with search.
Maintenance
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Code-map tools for AI agents: see a repo's structure first, then edit only what matters.
Project memory, documentation and controlled secret access for AI coding agents.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables LLMs to search and read files in local and GitHub repositories, analyze pull request diffs, and grep code content with built-in security protections.6-
- AlicenseNot gradedqualityCmaintenanceEnables language models to explore and analyze source code repositories through read-only tools for listing directories, reading files, searching code, finding symbols, and inspecting git history, with strict sandboxing and security controls.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to inspect local and remote repositories through sandboxed tools that surface project overviews, structure, dependency audits, Git churn hotspots, and a heuristic health score. It also supports safe GitHub issue searching and creation with built-in duplicate preflight checks, while blocking sensitive files, binary content, and path traversal attacks.MIT
- AlicenseAqualityBmaintenanceProvides coding agents with repository-aware tools to understand code structure, find existing patterns, and review plans, architecture, and diffs, enabling a consistent engineering workflow across Cursor, Codex, and Claude Code.7MIT