
Linkinator Mcp
io.github.JustinBeckwith由 GitHub 帳號 JustinBeckwith 發布v1.0.3更新於 Oct 24, 2026
MCP server for link checking using linkinator
概覽
本機 MCP 伺服器,透過 linkinator 讓助理掃描網站與本機檔案中的失效連結。
- 可以做什麼
- 掃描網址或本機檔案路徑,回傳通過/失敗摘要與各連結狀態碼
- 在同一網域內遞迴爬取並追蹤頁面之間的連結
- 解析 HTML、CSS 與 Markdown 內容,並驗證錨點片段
- 依 URL 樣式過濾連結,並設定逾時、並行數、User-Agent 與重試策略
- 依錯誤類型分組列出失效連結,並標示其所在頁面
- 適用情境
- 適合讓助理檢查網站或文件目錄中的失效連結、在修改後驗證錨點與片段,或在發布前做一次快速連結檢查。
- 執行需求
- 以 npm 套件 linkinator-mcp 透過 stdio 在本機執行,需要 Node.js 與 npx(或全域安裝)。未宣告任何帳號、API 金鑰或環境變數。掃描遠端網址需要網路存取;掃描本機檔案會在某個連接埠啟動暫存本機伺服器。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Linkinator Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Linkinator MCP Server
[npm version] [CI] [Biome] [codecov]
A Model Context Protocol (MCP) server that provides link checking capabilities using linkinator. This allows AI assistants like Claude to scan webpages and local files for broken links.
Features
- Comprehensive Link Checking: Scan websites and local files for broken links
- Recursive Crawling: Follow links within the same domain
- Multiple Content Types: Check links in HTML, CSS, and Markdown files
- Fragment Validation: Verify anchor links and URL fragments
- Flexible Configuration: Extensive options for timeouts, retries, SSL, and more
- Detailed Reporting: Get status codes, broken links grouped by error type, and parent page information
Quick Setup (Automatic)
The easiest way to get started is using the install-mcp tool, which automatically configures linkinator-mcp for Claude Desktop, Claude Code, Cursor, Cline, and other MCP clients:
This handles all configuration automatically. Restart your Claude client after installation.
Manual Configuration
If you prefer to configure the server manually, you can edit your MCP client's configuration file directly.
Claude Code
macOS/Linux
Edit ~/.config/claude-code/config.json:
Windows
Edit %APPDATA%\claude-code\config.json:
Alternative: Global Installation
If you prefer to install the package globally first with npm install -g linkinator-mcp, you can simplify the configuration:
Claude Desktop
macOS/Linux
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
Restart Your Client
After updating the configuration, restart your Claude client for the changes to take effect.
Usage Examples
Once configured, you can ask Claude to check links on any webpage or local file. Here are some example prompts:
Basic Link Checking
Recursive Scanning
Local File Checking
Advanced Options
Available Options
The scan_page tool supports all of linkinator's CLI options:
Required
- path (string): URL or local file path to scan
Connection Settings
- concurrency (number): Number of simultaneous connections (default: 100)
- port (number): Server port for local scanning (random port by default)
- timeout (number): Request timeout in milliseconds (0 = no timeout)
Crawling Behavior
- recurse (boolean): Follow links recursively on the same domain
- serverRoot (string): Custom disk location where the server starts
- directoryListing (boolean): Auto-serve directory index files
- cleanUrls (boolean): Enable extensionless link resolution (e.g., /about → /about.html)
Content Parsing
- markdown (boolean): Parse and scan markdown files
- checkCss (boolean): Extract and validate URLs in CSS properties
- checkFragments (boolean): Validate URL anchor identifiers
Filtering & Customization
- linksToSkip (string[]): URL patterns to exclude (regex strings)
- userAgent (string): Custom user agent header
Retry Logic
- retry (boolean): Retry HTTP 429 responses with retry-after header
- retryErrors (boolean): Retry 5xx errors
- retryErrorsCount (number): Retry attempt limit
- retryErrorsJitter (number): Random delay between retries in milliseconds
SSL & Security
- allowInsecureCerts (boolean): Accept invalid SSL certificates
Output Format
The tool returns a formatted report showing:
Troubleshooting
Server Not Appearing in Claude Code
- Check that the path in
config.jsonis absolute, not relative - Verify the build directory exists:
ls /path/to/linkinator-mcp/build/index.js - Check Claude Code logs for errors
- Ensure Node.js is in your PATH
Permission Errors
If you get permission errors on macOS/Linux:
Port Already in Use
If scanning local files and getting port errors, try specifying a port:
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details on how to get started.
License
MIT
Related Projects
- linkinator - The underlying link checking library
- MCP Servers - Collection of MCP server implementations
- Claude Code - AI coding assistant that uses MCP
Author
Justin Beckwith [email protected]
Acknowledgments
Built with the Model Context Protocol SDK.
來源:README.md,提交 be7c7a3
工具
0版本歷史
1- v1.0.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分