Repository Analysis

modelcontextprotocol/servers

Model Context Protocol Servers

4.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of modelcontextprotocol/servers, a TypeScript project with 88,434 GitHub stars. SynthScan v2.0 examined 23,122 lines of code across 122 source files, recording 76 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.4 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-07-10
Last Push
88.4K
Stars
TypeScript
Language
23.1K
Lines of Code
122
Files
76
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 1MEDIUM 5LOW 70

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 76 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers50 hits · 50 pts
SeverityFileLineSnippetContext
LOWsrc/memory/index.ts547export function registerKnowledgeGraphResource(CODE
LOWsrc/memory/index.ts576export function registerKnowledgeGraphSubscriptions(server: McpServer) {CODE
LOWsrc/everything/tools/simulate-research-query.ts325function getInterpretationsForTopic(CODE
LOWsrc/everything/__tests__/tools.test.ts1059 function createMockServerWithTasks() {CODE
LOWsrc/filesystem/path-validation.ts11export function isPathWithinAllowedDirectories(absolutePath: string, allowedDirectories: string[]): boolean {CODE
LOWsrc/filesystem/lib.ts76function resolveRelativePathAgainstAllowedDirectories(relativePath: string): string {CODE
LOWsrc/filesystem/lib.ts374export async function searchFilesWithValidation(CODE
LOWsrc/filesystem/index.ts724async function updateAllowedDirectoriesFromRoots(requestedRoots: Root[]) {CODE
LOWsrc/time/test/time_server_test.py85def test_get_current_time_with_invalid_timezone():CODE
LOWsrc/time/test/time_server_test.py465def test_get_local_tz_with_override():CODE
LOWsrc/time/test/time_server_test.py472def test_get_local_tz_with_invalid_override():CODE
LOWsrc/time/test/time_server_test.py479def test_get_local_tz_with_valid_iana_name(mock_get_localzone):CODE
LOWsrc/time/test/time_server_test.py488def test_get_local_tz_when_none_returned(mock_get_localzone):CODE
LOWsrc/time/test/time_server_test.py496def test_get_local_tz_handles_windows_timezones(mock_get_localzone):CODE
LOWsrc/time/test/time_server_test.py523def test_get_local_tz_various_timezones(mock_get_localzone, timezone_name):CODE
LOWsrc/fetch/tests/test_server.py29 def test_url_with_query_params(self):CODE
LOWsrc/fetch/tests/test_server.py84 def test_empty_content_returns_error(self):STRING
LOWsrc/fetch/tests/test_server.py149 async def test_allows_when_robots_txt_allows_all(self):CODE
LOWsrc/fetch/tests/test_server.py168 async def test_blocks_when_robots_txt_disallows_all(self):CODE
LOWsrc/fetch/tests/test_server.py247 async def test_fetch_json_returns_raw(self):CODE
LOWsrc/fetch/src/mcp_server_fetch/server.py27def extract_content_from_html(html: str) -> str:CODE
LOWsrc/fetch/src/mcp_server_fetch/server.py66async def check_may_autonomously_fetch_url(url: str, user_agent: str, proxy_url: str | None = None) -> None:CODE
LOWsrc/git/tests/test_server.py283def test_validate_repo_path_no_restriction():CODE
LOWsrc/git/tests/test_server.py288def test_validate_repo_path_exact_match(tmp_path: Path):CODE
LOWsrc/git/tests/test_server.py295def test_validate_repo_path_subdirectory(tmp_path: Path):CODE
LOWsrc/git/tests/test_server.py304def test_validate_repo_path_outside_allowed(tmp_path: Path):CODE
LOWsrc/git/tests/test_server.py328def test_validate_repo_path_symlink_escape(tmp_path: Path):CODE
LOWsrc/git/tests/test_server.py344def test_git_diff_rejects_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py480def test_git_create_branch_rejects_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py489def test_git_create_branch_rejects_base_branch_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py495def test_git_log_rejects_timestamp_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py504def test_git_branch_rejects_contains_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py35def test_git_checkout_existing_branch(test_repository):CODE
LOWsrc/git/tests/test_server.py42def test_git_checkout_nonexistent_branch(test_repository):CODE
LOWsrc/git/tests/test_server.py75def test_git_branch_not_contains(test_repository):CODE
LOWsrc/git/tests/test_server.py99def test_git_add_specific_files(test_repository):CODE
LOWsrc/git/tests/test_server.py112def test_git_add_rejects_path_traversal(test_repository):CODE
LOWsrc/git/tests/test_server.py127def test_git_add_rejects_absolute_path_outside(test_repository):CODE
LOWsrc/git/tests/test_server.py153def test_git_diff_unstaged_empty(test_repository):CODE
LOWsrc/git/tests/test_server.py168def test_git_diff_staged_empty(test_repository):CODE
LOWsrc/git/tests/test_server.py245def test_git_create_branch_from_base(test_repository):CODE
LOWsrc/git/tests/test_server.py271def test_git_show_initial_commit(test_repository):CODE
LOWsrc/git/tests/test_server.py316def test_validate_repo_path_traversal_attempt(tmp_path: Path):CODE
LOWsrc/git/tests/test_server.py356def test_git_checkout_rejects_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py368def test_git_diff_allows_valid_refs(test_repository):CODE
LOWsrc/git/tests/test_server.py394def test_git_checkout_allows_valid_branches(test_repository):CODE
LOWsrc/git/tests/test_server.py412def test_git_diff_rejects_malicious_refs(test_repository):CODE
LOWsrc/git/tests/test_server.py438def test_git_checkout_rejects_malicious_refs(test_repository):CODE
LOWsrc/git/tests/test_server.py458def test_git_show_rejects_flag_injection(test_repository):CODE
LOWsrc/git/tests/test_server.py467def test_git_show_rejects_malicious_refs(test_repository):CODE
Self-Referential Comments5 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMsrc/git/tests/test_server.py335 # Create a symlink inside allowed that points outsideCOMMENT
MEDIUMsrc/git/tests/test_server.py64 # Create a new branch and commit to itCOMMENT
MEDIUMsrc/git/tests/test_server.py78 # Create a new branch and commit to itCOMMENT
MEDIUMsrc/git/tests/test_server.py373 # Create a branch with a commit for diffingCOMMENT
MEDIUMsrc/git/tests/test_server.py399 # Create a branch to checkoutCOMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/memory/__tests__/knowledge-graph.test.ts272 { name: 'Acme Corp', entityType: 'company', observations: ['tech company'] },CODE
LOWsrc/memory/__tests__/knowledge-graph.test.ts276 { from: 'Alice', to: 'Acme Corp', relationType: 'works_at' },CODE
LOWsrc/memory/__tests__/knowledge-graph.test.ts277 { from: 'Bob', to: 'Acme Corp', relationType: 'competitor' },CODE
LOWsrc/memory/__tests__/knowledge-graph.test.ts290 expect(result.entities[0].name).toBe('Acme Corp');CODE
LOWsrc/memory/__tests__/knowledge-graph.test.ts318 expect(result.relations[0].to).toBe('Acme Corp');CODE
LOWsrc/everything/__tests__/tools.test.ts640 name: 'John Doe',CODE
LOWsrc/everything/__tests__/tools.test.ts662 expect(result.content[1].text).toContain('John Doe');CODE
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/filesystem/path-validation.ts71 // On Windows, we need to check if both paths are on the same driveCOMMENT
LOWsrc/filesystem/__tests__/path-validation.test.ts949 // Step 1: validatePath would pass for legitimate fileCOMMENT
LOWsrc/filesystem/__tests__/path-validation.test.ts952 // Step 2: Race condition - replace file with symlink after validationCOMMENT
LOWsrc/filesystem/__tests__/path-validation.test.ts956 // Step 3: Read operation follows symlink to forbidden locationCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/filesystem/__tests__/path-validation.test.ts949 // Step 1: validatePath would pass for legitimate fileCOMMENT
LOWsrc/filesystem/__tests__/path-validation.test.ts952 // Step 2: Race condition - replace file with symlink after validationCOMMENT
LOWsrc/filesystem/__tests__/path-validation.test.ts956 // Step 3: Read operation follows symlink to forbidden locationCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHREADME.md123 "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/everything/tools/trigger-url-elicitation.ts121 // Key the one-shot error-path marker on inputs the client resendsCOMMENT
LOWsrc/everything/tools/trigger-url-elicitation.ts141 // 1. The prerequisite points at a *different* URL than the one thatCOMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/time/src/mcp_server_time/server.py56 except Exception as e:CODE
LOWsrc/time/src/mcp_server_time/server.py215 except Exception as e:CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/git/src/mcp_server_git/server.py264 # Check if repo_path is the same as or a subdirectory of allowed_repositoryCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/release.py59 def update_version(self, version: Version) -> None: ...CODE