
Tech Debt Mcp
io.github.PierreJaninehPublished by GitHub account PierreJaninehv2.1.0Updated Nov 10, 2026
MCP Server for analyzing technical debt across multiple programming languages
The publisher's own server: Tech.eu Funding Explorer
Overview
A local MCP server that scans a codebase for technical debt across 14 languages and returns health scores, SQALE ratings and prioritized fixes.
- What you can do
- Analyze a whole project or a single file for code quality, security and maintainability issues, with filters by language, category and severity.
- Get a health score, issue counts and SQALE rating with remediation time and debt ratio.
- Retrieve prioritized recommendations and issues filtered by severity or debt category, and list supported languages.
- Add, remove, test and run regex-based custom rules for the current session.
- Scan package manifests across 10 dependency ecosystems and produce an offline dependency inventory for CVE review, plus validate .techdebtrc.json config.
- Read summary and issue data through two read-only resources addressed by project path.
- When to use it
- Useful when you want an assistant to audit a repository's code quality, estimate remediation effort, or check dependency manifests without sending code off the machine. It suits teams that want repeatable debt reports inside Copilot, Claude, Cursor or similar clients.
- Requirements
- Runs locally over stdio, typically launched with npx from the npm package tech-debt-mcp, so Node.js and npm are needed; a bundled desktop bundle variant avoids runtime network access. No accounts, API keys or environment variables are declared. Tools take absolute filesystem paths to the project or file to analyze.
Installation
In SourceWeft
- Open Tech Debt Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Tech Debt MCP Server
[npm version] [Add to MCP] [SQALE Rating] [CodeQL] [Documentation]
16 Tools · 2 Resources · 14 Languages · 10 Dependency Ecosystems
A Model Context Protocol (MCP) server for analyzing technical debt across multiple programming languages. Designed to integrate with GitHub Copilot, Claude, Cursor, and other MCP-compatible tools.
Features
- Multi-language support: JavaScript, TypeScript, Python, Java, Swift, Kotlin, Objective-C, C++, C, C#, Go, Rust, Ruby, PHP
- Comprehensive analysis: Detects various types of tech debt including code quality issues, security vulnerabilities, and maintainability problems
- SQALE Metrics: Calculate technical debt with SQALE rating system (A-E scale)
- SwiftUI Analysis: Specialized checks for SwiftUI patterns, state management, memory leaks, view nesting, and concurrency issues
- Custom Rules: Define your own pattern-based checks with regex support
- Dependency Analysis: Parse package manifests across 10 ecosystems (npm, pip, Maven/Gradle, Cargo, Go Modules, Composer, Bundler, NuGet, C/C++, Swift)
- Inline Suppression: Suppress false positives with
// techdebt-ignore-next-lineor block comments - Config Validation: Validate
.techdebtrc.jsonconfiguration files for schema correctness - Actionable recommendations: Provides prioritized suggestions for addressing technical debt
- Flexible filtering: Filter results by severity, category, or language
- Security hardened (v2.0.2): Path traversal prevention on all tool and resource path inputs, ReDoS-safe custom-rule regex validation, regex-injection escaping in SwiftUI checks, absolute-path sanitization in all error messages, and CodeQL SAST scanning on every push/PR
Supported Languages
Installation
[Claude: Install Server]
Claude Code (via Terminal):
Claude Desktop — add to your claude_desktop_config.json:
[Claude Code: Install as Plugin]
Claude Code plugin — add this repo's marketplace, then install the plugin:
The plugin runs npx -y tech-debt-mcp@latest under the hood — no source bundling, always tracks the published npm release. See plugin/README.md for plugin-user-facing docs (install flow, example transcripts, security posture).
[Claude Desktop: Install MCPB Bundle]
Claude Desktop MCPB bundle — single-click install with bundled node_modules (no npx, no internet required at runtime).
Download tech-debt-mcp-<version>.mcpb from the latest GitHub Release and open it with Claude for macOS or Windows.
To build the bundle locally:
[Windsurf: Install Server]
Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json):
[JetBrains: Install Server]
Via AI Assistant — open Settings > Tools > AI Assistant > Model Context Protocol (MCP), click +, select As JSON, and paste:
[Xcode: Install Server]
Via GitHub Copilot for Xcode — open Settings > MCP tab > Edit Config (mcp.json):
Manual Setup
Add to your MCP client config:
For development: npm run dev
Tools
Every tool declares a tool annotation — Read tools are side-effect-free (readOnlyHint: true); Write tools mutate server session state (destructiveHint: true).
Debt categories used throughout: dependency · code-quality · architecture · documentation · testing · security · performance · maintainability
Analysis — parameter reference
get_sqale_metrics returns a SQALE rating (A-E) with star visualization, total remediation time, debt ratio, and breakdowns by severity and category.
Filtering — parameter reference
Custom Rules — parameter reference
◐ execute_custom_rules requires either path or code, not both required. An empty string "" for path is treated the same as omitting the field.
Dependencies — parameter reference
check_dependencies detects manifests for npm, pip, Maven/Gradle, Cargo, Go Modules, Composer, Bundler, NuGet, C/C++ (CMakeLists.txt, conanfile.txt/py, vcpkg.json), and Swift Package Manager. get_vulnerability_report produces an offline dependency inventory — see ROADMAP.md for planned online CVE lookup.
Resources
Two MCP resources expose read-only tech debt data as JSON. Both use RFC 6570 URI templates: the {+projectPath} syntax is reserved expansion, which allows the variable to contain the / characters of an absolute filesystem path without percent-encoding.
Concrete examples — substitute {+projectPath} with an absolute path. Note the double slash: the template's trailing / plus the path's leading / produce //, which is valid URI syntax.
Testing interactively — the easiest way to exercise tools and resources is the MCP Inspector:
Open the URL it prints, switch to the Resources tab, and read a template URI with your absolute project path.
Configuration
Create a .techdebtrc.json file in your project root:
Language Overrides
Override rules, severity, or file extensions on a per-language basis using languageOverrides. Keys must be valid supported language identifiers.
rules— per-language thresholds (override the top-levelrulesfor matching files).severity— per-language rule severity overrides.extensions— additional file extensions (beyond the defaults) to attribute to this language.
Rule Exclusions
Use ruleExclusions to suppress specific rules for files matching glob patterns. Patterns use forward slashes (/) on all platforms. Use **/ prefixed patterns (e.g., **/src/analyzers/**) for reliable matching regardless of path format.
Inline Suppression
Suppress specific issues directly in source code. Both // and # comment prefixes are supported across all languages.
Single-line — suppresses the next line:
Block — suppresses all lines between start and end:
Without a rule name, all rules are suppressed. Blocks can be nested. Suppression comments must appear on their own line.
Example Custom Rules
Scope note:
customPatternsdefined in.techdebtrc.jsonare applied only byanalyze_project, which loads the project config before scanning.analyze_fileinvokes the language analyzer directly without loading.techdebtrc.json, so config-defined patterns are not applied on that path. Useadd_custom_ruleat runtime (or callexecute_custom_rulesdirectly) to run custom patterns against a single file.
Define patterns in .techdebtrc.json under customPatterns, or register them at runtime via the add_custom_rule MCP tool:
SQALE Metrics
Tech Debt MCP uses SQALE methodology to quantify technical debt:
Effort-to-time mapping: trivial (≤5m) · small (5-30m) · medium (30m-2h) · large (2-4h) · xlarge (4h+)
SwiftUI Analysis
14 specialized checks for SwiftUI apps covering state management (excessive @State, @ObservedObject misuse, environment value safety), memory & lifecycle (Combine retain cycles, timer cleanup, task cancellation, closure retain cycles), performance (missing .id() modifiers, expensive body calculations, deep nesting, GeometryReader misuse), and best practices (AnyView type erasure, deprecated NavigationLink, main thread safety).
View all SwiftUI checks with examples
State Management Issues
- Excessive @State Variables - Detects views with >5 @State variables that should use a ViewModel
- @ObservedObject Misuse - Flags @ObservedObject with initialization (should use @StateObject)
- Environment Value Safety - Detects force unwrapping of @Environment values
Memory & Lifecycle
- Combine Circular References - Finds missing [weak self] in Combine sinks
- Missing Timer Cleanup - Detects Timers without cleanup in onDisappear
- Missing Task Cancellation - Flags async Tasks without cancellation handling
- Retain Cycles in Closures - Detects self captures in onChange/onReceive without [weak self]
Performance & View Hierarchy
- Missing .id() Modifiers - Detects ForEach without stable identifiers
- Expensive View Body Calculations - Flags reduce/sort/filter in view bodies
- Deep View Nesting - Warns when nesting depth exceeds 6 levels
- GeometryReader Misuse - Detects GeometryReader at view root
SwiftUI Best Practices
- AnyView Type Erasure - Suggests using generics or @ViewBuilder instead
- Deprecated NavigationLink - Flags old-style NavigationLink patterns
- Main Thread Safety - Ensures UI updates happen on main thread
Example Issues Detected
Example Output
Code Quality
Tech Debt MCP practices what it preaches — built with AI-assisted vibe coding, it maintains an A rating by regularly scanning itself. Internal refactors (e.g., nesting reduction in customRulesEngine.validatePattern via extracted helper — #146) are driven by self-scan findings.
Self-Scan Results (v2.0.2, April 2026)
- SQALE Rating: A (Excellent)
- Debt Score: 5/100 (Target: ≤5/100)
- Total Issues: 13 (0 critical, 0 high, 6 medium, 7 low)
- Remediation Time: 14 hours
- Health Score: 95/100
Down from 118 issues / 42.4 health in the v2.0.1 baseline after the v2.0.2 security hardening,
ruleExclusionsconfig, nesting refactors (#113, #118, #131, #146), and custom-rules handler extraction (#145). Remaining debt: 5 nesting hotspots (4 in server / core modules + 1 ineslint.config.mjs), 7 type-assertion usages at system boundaries, and 1 non-null assertion. See TECH_DEBT_SCAN.md for per-issue detail.
Development
Documentation
- ARCHITECTURE.md - System architecture and design patterns
- ROADMAP.md - Development phases and future enhancements
- CONTRIBUTING.md - Contribution guidelines
- CHANGELOG.md - Version history and changes
- RELEASE.md - Release process and versioning guide
- TECH_DEBT_SCAN.md - Self-scan results with before/after comparison
- CODE_OF_CONDUCT.md - Community standards
- PRIVACY.md - Privacy policy (also hosted at https://pierrejanineh.github.io/TechDebtMCP/privacy)
- plugin/README.md - Plugin-user-facing docs (install, example transcripts, security posture)
Privacy
Tech Debt MCP runs entirely on your machine. Once installed, it reads files you pass it, returns issues to your MCP client over the local stdio transport, and does nothing else — the server itself makes no outbound network calls, has no telemetry, no analytics, and uses no third-party services. Installation via npm/npx does contact the npm registry as standard package-manager behavior; the MCPB bundle ships pre-installed and needs no further network access. See PRIVACY.md or the hosted policy at https://pierrejanineh.github.io/TechDebtMCP/privacy for details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines and CODE_OF_CONDUCT.md for our community standards.
Releases
- Latest: [npm version]
- Releases: GitHub Releases
- Roadmap: See ROADMAP.md for planned features
- Security:
escapeRegExp()(src/utils/regexUtils.ts) must be used when interpolating captured strings intonew RegExp()— see issue #128; handler output usesbasename()/getRelativePath()to prevent absolute filesystem path leakage in intentional messages, and rawerr.messagestrings from filesystem operations are sanitized before being returned to clients — see issue #129
License
MIT
Source: README.md at commit 33a9669
Tools
0Version history
1- v2.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Tech integrations
Tech.eu Funding Explorer
eu.tech.fundingOfficial publisher
Lets an assistant search European tech funding rounds, companies, investors and exits, with EUR-normalized, source-linked figures.
ScorpTech x402 API
com.it.scorptechOfficial publisher
Hosted pay-per-call MCP server with 1,014 tools for web data, security/OSINT checks, SEC filings, crypto lookups and developer utilities, billed in USDC.

Tech Stack Detector
Published by GitHub account sumitrmardy
Apify-hosted remote MCP server that lets an assistant identify the technologies behind a website, such as CMS, ecommerce, analytics, hosting and email provider.

B2B Tech-Stack, DNS Security & AI/LLM Readiness Auditor
Published by GitHub account carlitoun69
Audits B2B domains for tech stack, marketing pixels, SPF/DMARC email security and AI/LLM readiness, returning a structured JSON report per domain.

AI아키텍트 Tech Blog
Published by GitHub account aiarchitecturedev
Read-only MCP server that lets an assistant search and read a bundled corpus of 96 Korean long-form tech blog articles on MCP, AI agents, architecture…