mcp-web-auditor 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Stick
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: mcp-web-auditor
3
+ Version: 0.1.0
4
+ Summary: A lightweight MCP server for auditing webpage response speed, SEO tags, OpenGraph metadata, accessibility, and broken links.
5
+ Author: stickno
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: mcp[cli]<2.0.0,>=1.0.0
11
+ Requires-Dist: httpx>=0.27.0
12
+ Requires-Dist: beautifulsoup4>=4.12.0
13
+ Dynamic: license-file
14
+
15
+ # Web Auditor MCP Server
16
+
17
+ [![mcp-web-auditor MCP server – quality and maintenance score on Glama](https://glama.ai/mcp/servers/stickno/mcp-web-auditor/badges/card.svg)](https://glama.ai/mcp/servers/stickno/mcp-web-auditor)
18
+
19
+ A lightweight Model Context Protocol (MCP) server that enables Claude and other AI assistants to audit any webpage for response speed, core SEO tags, OpenGraph metadata, image accessibility, and broken links.
20
+
21
+ ## Features
22
+ - **Webpage Audit (`audit_webpage`):** Checks HTTP status, response time (ms), page title, meta description, H1 headings, OpenGraph tags (`og:title`, `og:image`), and missing image `alt` attributes.
23
+ - **Broken Link Scanner (`check_broken_links`):** Crawls internal and external links on a webpage to detect `404`/`500` or unreachable URLs.
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ git clone https://github.com/stickno/mcp-web-auditor.git
29
+ cd mcp-web-auditor
30
+ pip install -r requirements.txt
31
+ ```
32
+
33
+ ## Claude Desktop Configuration
34
+
35
+ Add this to your `claude_desktop_config.json`:
36
+
37
+ ```json
38
+ {
39
+ "mcpServers": {
40
+ "web-auditor": {
41
+ "command": "python",
42
+ "args": ["/path/to/mcp-web-auditor/server.py"]
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## License
49
+ MIT
@@ -0,0 +1,35 @@
1
+ # Web Auditor MCP Server
2
+
3
+ [![mcp-web-auditor MCP server – quality and maintenance score on Glama](https://glama.ai/mcp/servers/stickno/mcp-web-auditor/badges/card.svg)](https://glama.ai/mcp/servers/stickno/mcp-web-auditor)
4
+
5
+ A lightweight Model Context Protocol (MCP) server that enables Claude and other AI assistants to audit any webpage for response speed, core SEO tags, OpenGraph metadata, image accessibility, and broken links.
6
+
7
+ ## Features
8
+ - **Webpage Audit (`audit_webpage`):** Checks HTTP status, response time (ms), page title, meta description, H1 headings, OpenGraph tags (`og:title`, `og:image`), and missing image `alt` attributes.
9
+ - **Broken Link Scanner (`check_broken_links`):** Crawls internal and external links on a webpage to detect `404`/`500` or unreachable URLs.
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ git clone https://github.com/stickno/mcp-web-auditor.git
15
+ cd mcp-web-auditor
16
+ pip install -r requirements.txt
17
+ ```
18
+
19
+ ## Claude Desktop Configuration
20
+
21
+ Add this to your `claude_desktop_config.json`:
22
+
23
+ ```json
24
+ {
25
+ "mcpServers": {
26
+ "web-auditor": {
27
+ "command": "python",
28
+ "args": ["/path/to/mcp-web-auditor/server.py"]
29
+ }
30
+ }
31
+ }
32
+ ```
33
+
34
+ ## License
35
+ MIT
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: mcp-web-auditor
3
+ Version: 0.1.0
4
+ Summary: A lightweight MCP server for auditing webpage response speed, SEO tags, OpenGraph metadata, accessibility, and broken links.
5
+ Author: stickno
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: mcp[cli]<2.0.0,>=1.0.0
11
+ Requires-Dist: httpx>=0.27.0
12
+ Requires-Dist: beautifulsoup4>=4.12.0
13
+ Dynamic: license-file
14
+
15
+ # Web Auditor MCP Server
16
+
17
+ [![mcp-web-auditor MCP server – quality and maintenance score on Glama](https://glama.ai/mcp/servers/stickno/mcp-web-auditor/badges/card.svg)](https://glama.ai/mcp/servers/stickno/mcp-web-auditor)
18
+
19
+ A lightweight Model Context Protocol (MCP) server that enables Claude and other AI assistants to audit any webpage for response speed, core SEO tags, OpenGraph metadata, image accessibility, and broken links.
20
+
21
+ ## Features
22
+ - **Webpage Audit (`audit_webpage`):** Checks HTTP status, response time (ms), page title, meta description, H1 headings, OpenGraph tags (`og:title`, `og:image`), and missing image `alt` attributes.
23
+ - **Broken Link Scanner (`check_broken_links`):** Crawls internal and external links on a webpage to detect `404`/`500` or unreachable URLs.
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ git clone https://github.com/stickno/mcp-web-auditor.git
29
+ cd mcp-web-auditor
30
+ pip install -r requirements.txt
31
+ ```
32
+
33
+ ## Claude Desktop Configuration
34
+
35
+ Add this to your `claude_desktop_config.json`:
36
+
37
+ ```json
38
+ {
39
+ "mcpServers": {
40
+ "web-auditor": {
41
+ "command": "python",
42
+ "args": ["/path/to/mcp-web-auditor/server.py"]
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## License
49
+ MIT
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ server.py
5
+ mcp_web_auditor.egg-info/PKG-INFO
6
+ mcp_web_auditor.egg-info/SOURCES.txt
7
+ mcp_web_auditor.egg-info/dependency_links.txt
8
+ mcp_web_auditor.egg-info/entry_points.txt
9
+ mcp_web_auditor.egg-info/requires.txt
10
+ mcp_web_auditor.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mcp-web-auditor = server:main
@@ -0,0 +1,3 @@
1
+ mcp[cli]<2.0.0,>=1.0.0
2
+ httpx>=0.27.0
3
+ beautifulsoup4>=4.12.0
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "mcp-web-auditor"
7
+ version = "0.1.0"
8
+ description = "A lightweight MCP server for auditing webpage response speed, SEO tags, OpenGraph metadata, accessibility, and broken links."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "MIT"}
12
+ authors = [
13
+ {name = "stickno"}
14
+ ]
15
+ dependencies = [
16
+ "mcp[cli]>=1.0.0,<2.0.0",
17
+ "httpx>=0.27.0",
18
+ "beautifulsoup4>=4.12.0"
19
+ ]
20
+
21
+ [project.scripts]
22
+ mcp-web-auditor = "server:main"
@@ -0,0 +1,94 @@
1
+ import time
2
+ from urllib.parse import urljoin, urlparse
3
+ import httpx
4
+ from bs4 import BeautifulSoup
5
+ from mcp.server.fastmcp import FastMCP
6
+
7
+ mcp = FastMCP("Web Auditor")
8
+
9
+ @mcp.tool()
10
+ async def audit_webpage(url: str) -> dict:
11
+ """Bir web sayfasının hızını, SEO etiketlerini, OpenGraph verilerini ve erişilebilirliğini analiz eder."""
12
+ if not url.startswith(("http://", "https://")):
13
+ url = f"https://{url}"
14
+
15
+ start_time = time.perf_counter()
16
+ try:
17
+ async with httpx.AsyncClient(follow_redirects=True, timeout=10.0) as client:
18
+ response = await client.get(url)
19
+ response.raise_for_status()
20
+ except Exception as e:
21
+ return {"error": f"Sayfaya erişilemedi: {str(e)}"}
22
+
23
+ load_time_ms = round((time.perf_counter() - start_time) * 1000, 2)
24
+ soup = BeautifulSoup(response.text, "html.parser")
25
+
26
+ title = soup.title.string.strip() if soup.title and soup.title.string else "Missing"
27
+ meta_desc_tag = soup.find("meta", attrs={"name": "description"})
28
+ meta_desc = meta_desc_tag["content"].strip() if meta_desc_tag and meta_desc_tag.get("content") else "Missing"
29
+ og_title = soup.find("meta", property="og:title")
30
+ og_image = soup.find("meta", property="og:image")
31
+
32
+ h1_tags = [h1.get_text(strip=True) for h1 in soup.find_all("h1")]
33
+ images = soup.find_all("img")
34
+ images_without_alt = sum(1 for img in images if not img.get("alt"))
35
+
36
+ return {
37
+ "url": str(response.url),
38
+ "status_code": response.status_code,
39
+ "response_time_ms": load_time_ms,
40
+ "seo": {
41
+ "title": title,
42
+ "title_length": len(title) if title != "Missing" else 0,
43
+ "meta_description": meta_desc,
44
+ "h1_count": len(h1_tags),
45
+ "h1_texts": h1_tags[:3],
46
+ "has_og_title": bool(og_title),
47
+ "has_og_image": bool(og_image),
48
+ },
49
+ "accessibility": {
50
+ "total_images": len(images),
51
+ "images_missing_alt_text": images_without_alt,
52
+ },
53
+ }
54
+
55
+ @mcp.tool()
56
+ async def check_broken_links(url: str, max_links: int = 10) -> dict:
57
+ """Sayfadaki dış ve iç bağlantıları tarayarak kırık (404/500) linkleri tespit eder."""
58
+ if not url.startswith(("http://", "https://")):
59
+ url = f"https://{url}"
60
+
61
+ try:
62
+ async with httpx.AsyncClient(follow_redirects=True, timeout=10.0) as client:
63
+ response = await client.get(url)
64
+ soup = BeautifulSoup(response.text, "html.parser")
65
+ links = []
66
+ for a in soup.find_all("a", href=True):
67
+ full_url = urljoin(str(response.url), a["href"])
68
+ if urlparse(full_url).scheme in ("http", "https"):
69
+ links.append(full_url)
70
+
71
+ unique_links = list(dict.fromkeys(links))[:max_links]
72
+ broken = []
73
+ for link in unique_links:
74
+ try:
75
+ res = await client.head(link, timeout=5.0)
76
+ if res.status_code >= 400:
77
+ broken.append({"url": link, "status": res.status_code})
78
+ except Exception:
79
+ broken.append({"url": link, "status": "unreachable"})
80
+
81
+ return {
82
+ "checked_count": len(unique_links),
83
+ "broken_count": len(broken),
84
+ "broken_links": broken,
85
+ }
86
+ except Exception as e:
87
+ return {"error": f"Bağlantılar taranamadı: {str(e)}"}
88
+
89
+ def main():
90
+ mcp.run()
91
+
92
+ if __name__ == "__main__":
93
+ main()
94
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+