1. Conduid
  2. Data
  3. janreges/ai-distiller-mcp
MCP server · Data

janreges/ai-distiller-mcp

AI Distiller is ultra‑fast, open‑source tool for intelligently extracting only the essential public APIs, types, and structure from large codebases. Compresses 90–98% of code into AI‑friendly context, integrates via CLI or MCP, supports 12+ languages, and AI prompt workflows for cleaner, cost‑effective AI development.

Unclaimed MIT data
70Good

Scored 20 hours ago · breakdown

About janreges/ai-distiller-mcp

janreges/ai-distiller-mcp is an MCP server published by janreges in the Data category: aI Distiller is ultra‑fast, open‑source tool for intelligently extracting only the essential public APIs, types, and structure from large codebases. Compresses 90–98% of code into AI‑friendly context, integrates via CLI or MCP, supports 12+ languages, and AI prompt workflows for cleaner, cost‑effective AI development. Conduid read 16 tools from its source: aid_analyze, aid_analyze_security, aid_best_practices, aid_complex_analysis, aid_deep_file_analysis, aid_generate_diagram and 10 more. No package is published for it, so it installs from a source checkout.

The repository has 176 stars and 22 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.4.0 (25 May 2026): This release adds selective implementation expansion for agent-driven context building, fixes the Windows install path end-to-end, and ships a fully automated, OIDC-publ… It follows v1.3.1 (21 Jun 2025), and the 4 most recent releases go back to v1.0.0 (18 Jun 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include data.

Install

From source
git clone https://github.com/janreges/ai-distiller

Tools (16)

aid_analyzeDirect access to all AI actions for custom workflows
aid_analyze_securityGenerates a security analysis prompt with distilled code for AI agents to perform comprehensive security audits with OWASP Top 10 focus. Use when you need AI to identify vulnerabilities, security anti-patterns, and weak points. OUTPUT: Generates a markdown file with security audit prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to analyze security vulnerabilities and suggest remediation.
aid_best_practicesCode quality prompt with industry standards. Generates analysis prompts that guide AI agents to assess code against best practices, design patterns, and clean code principles. OUTPUT: Generates best practices analysis prompt covering code quality metrics, pattern usage, and improvement suggestions.
ParameterTypeDescription
exclude_patternsstringFile patterns to exclude
include_patternsstringFile patterns to include
include_privatebooleanInclude all visibility levels (default: true)
target_path *stringPath to analyze
aid_complex_analysisEnterprise-grade analysis prompt with full codebase context. Generates comprehensive prompts for architecture analysis, compliance checks, and detailed findings. Best suited for large codebases requiring deep architectural insights. OUTPUT: Generates analysis prompt with distilled code that AI agents can use to create architecture diagrams, identify patterns, and provide strategic recommendations.
ParameterTypeDescription
exclude_patternsstringFile patterns to exclude
include_implementationbooleanInclude implementation details (default: true)
include_patternsstringFile patterns to include
include_privatebooleanInclude all visibility levels (default: true)
target_path *stringPath to analyze
aid_deep_file_analysisGenerates task lists and prompts for systematic file-by-file analysis. Creates a structured workflow where AI agents analyze each file across multiple dimensions (Security, Performance, Maintainability, Readability). Perfect for comprehensive codebase reviews. OUTPUT: Generates task list, summary template, and directory structure for organizing analysis results. AI agents should read the task list and follow instructions systematically.
ParameterTypeDescription
exclude_patternsstringFile patterns to exclude
include_implementationbooleanInclude implementation details (default: true)
include_patternsstringFile patterns to include
include_privatebooleanInclude all visibility levels (default: true)
target_path *stringPath to analyze
aid_generate_diagramGenerates a diagram creation prompt with distilled code for AI agents to create architectural diagrams in Mermaid format. Use when you need AI to generate flowcharts, sequence diagrams, class diagrams, and architecture overviews. OUTPUT: Generates a markdown file with diagram generation prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to create 10+ Mermaid diagrams.
aid_generate_docsGenerates documentation creation prompts with distilled code for AI agents to create comprehensive documentation including API references, usage examples, and developer guides. Use when you need AI to generate technical documentation from code. OUTPUT: Generates markdown files with documentation prompts and distilled code. The response includes file paths - AI agents should read these files and follow instructions to create the actual documentation.
aid_hunt_bugsGenerates a bug hunting prompt with distilled code for AI agents to systematically identify potential bugs, logical errors, race conditions, and quality issues. Use when you need AI to analyze code for hidden bugs or perform a comprehensive code health check. OUTPUT: Generates a markdown file with bug hunting prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to perform the actual bug analysis.
aid_multi_file_docsCreates documentation workflow prompts with file relationships. Generates structured prompts that guide AI agents to create interconnected documentation covering multiple files, their relationships, and overall system architecture. OUTPUT: Generates workflow files that AI agents can follow to create comprehensive documentation with proper cross-references.
ParameterTypeDescription
exclude_patternsstringFile patterns to exclude
include_patternsstringFile patterns to include
target_path *stringPath to document
aid_performance_analysisPerformance optimization prompt with complexity focus. Generates analysis prompts that guide AI agents to identify performance bottlenecks, analyze algorithmic complexity, and suggest optimization strategies. OUTPUT: Generates performance analysis prompt focusing on scalability issues, resource usage, and optimization opportunities.
ParameterTypeDescription
exclude_patternsstringFile patterns to exclude
include_implementationbooleanInclude implementation details (default: true)
include_patternsstringFile patterns to include
target_path *stringPath to analyze
aid_suggest_refactoringGenerates a refactoring analysis prompt with distilled code for AI agents to identify specific refactoring opportunities. Use when you need AI to suggest improvements for code quality, readability, maintainability, or performance. OUTPUT: Generates a markdown file with refactoring prompt and distilled code. The response includes the file path - AI agents should read this file and follow instructions to provide refactoring suggestions with before/after examples.
distill_directoryExtract structure from entire directories
ParameterTypeDescription
directory_path *stringPath to the directory to distill
exclude_patternsstringFile patterns to exclude (comma-separated, e.g., '*test*,vendor/**')
expandstringKeep full implementation ONLY for symbols whose name matches these globs (comma-separated, e.g. 'GetUser,*Service*'). Matches a function/method name anywhere; matching a type name expands its methods: the ones nested inside the type's body (e.g. Python/TypeScript/Java/C#), Go methods whose receiver is that type, and Rust impl blocks for it. For Swift extensions and C++ out-of-class definitions, match the method name; for a Kotlin extension function, its receiver type and name (e.g. 'Point.moved' or '*.moved'). Signatures everywhere else.
include_commentsbooleanInclude comments (default: false)
include_fieldsbooleanInclude fields/properties (default: true)
include_implementationbooleanInclude function/method bodies (default: false)
include_internalbooleanInclude internal/package-private members (default: false)
include_methodsbooleanInclude methods/functions (default: true)
include_patternsstringFile patterns to include (comma-separated, e.g., '*.go,*.py')
include_privatebooleanInclude private members (default: false)
include_protectedbooleanInclude protected members (default: false)
output_formatstringOutput format (default: text)
recursivebooleanProcess subdirectories recursively (default: true)
distill_fileExtract structure from a single file
ParameterTypeDescription
expandstringKeep full implementation ONLY for symbols whose name matches these globs (comma-separated, e.g. 'GetUser,*Service*'). Matches a function/method name anywhere; matching a type name expands its methods: the ones nested inside the type's body (e.g. Python/TypeScript/Java/C#), Go methods whose receiver is that type, and Rust impl blocks for it. For Swift extensions and C++ out-of-class definitions, match the method name; for a Kotlin extension function, its receiver type and name (e.g. 'Point.moved' or '*.moved'). Signatures everywhere else.
file_path *stringPath to the file to distill
include_commentsbooleanInclude comments (default: false)
include_fieldsbooleanInclude fields/properties (default: true)
include_implementationbooleanInclude function/method bodies (default: false)
include_internalbooleanInclude internal/package-private members (default: false)
include_methodsbooleanInclude methods/functions (default: true)
include_privatebooleanInclude private members (default: false)
include_protectedbooleanInclude protected members (default: false)
output_formatstringOutput format (default: text)
distill_with_dependenciesEXPERIMENTAL: distill a file together with the files it depends on (heuristic, regex-based analysis)
ParameterTypeDescription
expandstringKeep full implementation ONLY for symbols whose name matches these globs (comma-separated, e.g. 'GetUser,*Service*'). Matches a function/method name anywhere; matching a type name expands its methods: the ones nested inside the type's body (e.g. Python/TypeScript/Java/C#), Go methods whose receiver is that type, and Rust impl blocks for it. For Swift extensions and C++ out-of-class definitions, match the method name; for a Kotlin extension function, its receiver type and name (e.g. 'Point.moved' or '*.moved'). Signatures everywhere else.
file_path *stringTarget file to analyze
include_commentsbooleanInclude comments (default: false)
include_fieldsbooleanInclude fields/properties (default: true)
include_implementationbooleanInclude function/method bodies (default: false)
include_internalbooleanInclude internal/package-private members (default: false)
include_methodsbooleanInclude methods/functions (default: true)
include_privatebooleanInclude private members (default: false)
include_protectedbooleanInclude protected members (default: false)
max_depthnumberLevels of imports to follow, 1 = only what the target file imports directly (default: 2)
output_formatstringOutput format (default: text)
get_capabilitiesGet info about AI Distiller capabilities
list_filesBrowse directories with file statistics
ParameterTypeDescription
pathstringDirectory to list (default: the server root AID_ROOT); it must lie inside AID_ROOT, and a relative path is resolved against it
patternstringFile pattern to match
recursivebooleanList recursively (default: true)

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 7.0K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by go.sum and mcp-npm/package-lock.json.
  • !No dynamic code executionScanned 229 source files and found 5 calls to eval or shell execution, in test-data/import-filtering/javascript/05_edge_cases.js:52, test-data/import-filtering/javascript/05_edge_cases.js:57 and testdata/php/05_very_complex/source.php:162 among others. Review how tool inputs reach them before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiomcp-npm/mcp-server-sdk.ts:4
Starts other programs
5 callsmcp-npm/mcp-server-wrapper.js:25, mcp-npm/run-aid.ts:52, internal/cli/root.go:1068
Outbound network calls
6 callstest-data/import-filtering/csharp/01_BasicImports.cs:57, test-data/import-filtering/csharp/02_AliasedImports.cs:36, test-data/import-filtering/csharp/04_GlobalAndConditional.cs:60
Writes or deletes files
19 callsinternal/cli/root.go:526, internal/cli/root.go:578, internal/cli/root.go:764
Lockfile
go.sum and mcp-npm/package-lock.json

Pattern matches on the source text of 229 files: places to read, not proof of what the code does at run time.

Releases

v1.4.0AI Distiller v1.4.0 · 25 May 2026This release adds selective implementation expansion for agent-driven context building, fixes the Windows install path end-to-end, and ships a fully automated, OIDC-published release pipeline. 🚀 New Features Selective expansion with…
v1.3.1v1.3.1 · 21 Jun 2025🐛 Bug Fixes Fixed stdio configuration for proper stream handling & fixed stderr output handling in MCP responses ([405f2e8])
v1.3.0v1.3.0 · 21 Jun 2025🚀 Major Features MCP Server Migration to TypeScript SDK - Complete rewrite of the MCP server from JavaScript to TypeScript, providing better type safety, maintainability, and improved error handling Enhanced Installation Process - New…
v1.0.0v1.0.0 - First Public Release · 18 Jun 2025We're thrilled to announce the first public release of AI Distiller - a blazingly fast tool that turns million-line codebases into digestible AI prompts! 🚀 What is AI Distiller? AI Distiller extracts the essential structure from large…

README

The repository's README runs to about 7.0K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About janreges/ai-distiller-mcp

How do I install janreges/ai-distiller-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is janreges/ai-distiller-mcp safe to use with an AI agent?

Its trust score is 70 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 229 source files found that it serves MCP over stdio, starts other programs (5 calls), makes outbound network calls (6 calls) and writes or deletes files (19 calls). Its dependencies are pinned by go.sum and mcp-npm/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is janreges/ai-distiller-mcp still maintained?

Yes — the last commit was yesterday. The repository has 176 stars and 22 forks and 2 open issues.

What tools does janreges/ai-distiller-mcp provide?

Conduid read 16 tools from the source: aid_analyze, aid_analyze_security, aid_best_practices, aid_complex_analysis, aid_deep_file_analysis, aid_generate_diagram, aid_generate_docs, aid_hunt_bugs and 8 more. 9 of them publish their parameters, listed under Tools above.

What license is janreges/ai-distiller-mcp released under?

The repository declares the MIT license. That applies to the latest release, v1.4.0, as well.