md-lint
Lints local Markdown files and directories for broken relative links/images, empty link targets or text, heading hierarchy issues, and common README problems, with tools for linting a single Markdown file or a tree of Markdown files.
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., "@md-lintLint README.md for broken relative links and heading issues"
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.
@mcpx-digital/md-lint
MCP server that lints local Markdown for broken relative links, heading hierarchy, empty links, and common README issues.
Local files only. Relative targets are checked on disk. External
http(s)links are not fetched (no scraping, no network link checks).
Install (MCPX / npx)
npx -y @mcpx-digital/md-lintPrepared for npm as
@mcpx-digital/md-lint. Until published, run from a local clone.
Related MCP server: Claude Writer's Aid MCP
Cursor mcp.json example
{
"mcpServers": {
"md-lint": {
"command": "npx",
"args": ["-y", "@mcpx-digital/md-lint"]
}
}
}Local clone:
{
"mcpServers": {
"md-lint": {
"command": "node",
"args": ["/absolute/path/to/md-lint-mcp/index.js"]
}
}
}Tools
Tool | What it does |
| Lint one |
| Lint Markdown files under a directory |
Checks
Broken relative links / images (filesystem)
Empty link targets or empty link text
Heading hierarchy (missing H1, level skips, multiple H1)
README heuristics (short/empty, missing install/license keywords, placeholders)
Example prompts
“Lint README.md for broken links and heading issues”
“Scan docs/ for Markdown problems”
Development
git clone https://github.com/TheoryofShadows/md-lint-mcp.git
cd md-lint-mcp
npm install
npm test
node index.jsSell / list on MCPX
Suggested listing price: $5.
Install command: npx -y @mcpx-digital/md-lint
License
MIT © TheoryofShadows
Available Tools
2 toolslint_markdownA
Lint a Markdown file for broken relative links, heading hierarchy, empty links, and common README issues. Local files only. Relative links are checked on disk; external http(s) links are not fetched.
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to a .md file. | |
| readmeChecks | No | Enable README-specific heuristics (default true for README* names). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does disclose meaningful behavior: relative links are resolved on disk and external http(s) links are never fetched, which signals a purely local, network-free operation. It stops short of stating read-only nature, output/exit semantics, or failure behavior for an unreadable path.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences, front-loaded with the core purpose and checks, then the scope caveat. Every sentence earns its place with zero filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers what is checked and what is not fetched, which is the key scope question. But with no annotations and no output schema, it leaves the result shape and failure behavior unspecified, making it only minimally adequate for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so both parameters (filePath, readmeChecks) are already documented, including the README default heuristic. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (lint) and resource (Markdown file) plus the concrete checks performed: broken relative links, heading hierarchy, empty links, README issues. The single-file scope is clear, though it never explicitly distinguishes itself from the sibling lint_markdown_tree beyond the singular 'file' framing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
'Local files only' and the note that external http(s) links are not fetched implicitly bound when the tool applies. However, there is no explicit contrast with lint_markdown_tree (whole tree/directory), so the agent must infer which tool to pick when both could apply.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
lint_markdown_treeA
Lint all Markdown files under a directory (skips node_modules/.git). Local files only. Relative links are checked on disk; external http(s) links are not fetched.
| Name | Required | Description | Default |
|---|---|---|---|
| dirPath | No | Alias for rootPath. | |
| maxFiles | No | Max files (default 50). | |
| rootPath | Yes | Directory or file to scan. | |
| readmeChecks | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden and does so well for a read-only scan tool: it discloses skip patterns (node_modules/.git), that only local files are considered, and that relative links are validated on disk while http(s) links are not fetched. It omits traversal/depth behavior, failure semantics for broken links, and output shape, which keeps it below a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences, each load-bearing: scope, file-access constraint, and link-checking behavior. Front-loaded with the primary action and no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema and no annotations, so the description must stand alone; it covers scope, skip rules, and link-checking semantics adequately. Gaps remain around the readmeChecks flag and maxFiles behavior, which an agent would have to guess from the schema alone.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 75%, so two parameters (readmeChecks, maxFiles) and the dirPath alias are documented only in the schema. The description clarifies that the root target is a directory but adds no meaning for the remaining parameters, so it neither compensates for nor regresses the baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Specific verb (lint) and resource (all Markdown files under a directory), with explicit scope that separates it from the single-file sibling. It does not name lint_markdown directly, so the differentiation is inferred from 'tree' wording rather than stated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The recursive/all-files framing implies when this tool is appropriate versus a single-file linter, and 'Local files only' bounds the use case. However, it never explicitly names lint_markdown or the condition that should route an agent to it, leaving sibling selection to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
v0.1.0- First observed
lint_markdown - First observed
lint_markdown_tree
TDQS
Scored across 2 tools
The two tools have clearly distinct targets: one lints a single file, the other recursively lints a directory tree. No overlap or ambiguity exists.
Both tool names use the consistent lint_markdown prefix with a clear suffix distinguishing scope. The pattern is predictable and readable.
Two tools cover the core file and directory linting cases, but the count feels slightly thin for the domain; a tool for linting content or configuration might add value.
The surface covers linting individual files and directory trees, which are the primary local operations. Minor gaps like linting a list of files or custom configs exist but are not critical.
Maintenance
Related MCP Connectors
Lint a SKILL.md for frontmatter, structure, secrets and size. All 6 tools free.
MEOK AGENTS.md Linter MCP — validates the cross-vendor coding-agent spec (Cursor / Claude Code /
Static linter for CLAUDE.md-style agent constitution files: 10 operational-guardrail checks.
Static linter for CLAUDE.md-style agent constitution files: 10 operational-guardrail checks.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.6MIT
- AlicenseBqualityFmaintenanceProvides intelligent manuscript analysis and writing assistance for markdown projects, including semantic search, quality checks, terminology consistency, link validation, progress tracking, and comprehensive writing statistics.3513113MIT
- AlicenseAqualityCmaintenancestdio server to read markdown with images or index markdown headings from a file, folder or URL2331MIT
- AlicenseNot gradedqualityCmaintenanceProvides MCP tools to scan and navigate markdown repositories, offering graph-based overview, document reading, context retrieval, and orphan detection.MIT