Seo

io.github.rog0x由 GitHub 账号 rog0x 发布v1.0.1更新于 Oct 24, 2026

SEO analysis - meta tags, keywords, links, page speed

概览

AI 生成的概览

本地 MCP 服务器,为助手提供 SEO 分析工具,可检查公开网页的元标签、标题结构、链接、关键词、速度与站点地图。

可以做什么
  • 审计元标签、Open Graph 与 Twitter Card 标签并给出 0-100 评分
  • 校验标题层级,标记缺失、跳级或重复的标题
  • 探测页面链接并归类为正常、失效、重定向、超时或错误
  • 统计关键词词频与密度,并检查目标关键词的放置位置
  • 测量首字节时间、加载时间、HTML 大小与资源数量,并检查阻塞渲染脚本和图片问题
  • 解析 sitemap.xml 或 robots.txt 中的站点地图指令,检查新鲜度、重复与合规性
适用场景
适合让助手对公开网站或页面做站内 SEO 检查并输出结构化结论,而无需注册外部 SEO 服务。
运行要求
通过 npm 包 @rog0x/mcp-seo-tools 以本地 stdio 进程运行,需要 Node.js 18 或更高版本。未声明任何 API 密钥或环境变量。工具会直接抓取目标页面与链接,因此需要网络访问。
安装前请注意
工具会对传入的任意网址发起外部 HTTP 请求,包括对页面中每个链接做 HEAD/GET 探测,可能触及内网或私有地址。链接检查受 max_links 参数限制。结果仅反映本机单次抓取,并非完整爬取或真实用户性能数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Seo,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-seo-tools

An MCP (Model Context Protocol) server that gives AI agents a suite of SEO analysis tools. Analyze any public webpage for meta tags, heading structure, broken links, keyword density, page speed, and sitemap health — all without external API keys.

Tools

ToolDescription
seo_meta_analyzeAudit meta tags, Open Graph, and Twitter Card tags with scoring
seo_heading_checkValidate H1-H6 hierarchy, detect skipped levels and duplicates
seo_link_checkFind broken links, redirects, and missing anchor text
seo_keyword_densityMeasure keyword frequency and check target keyword placement
seo_page_speedMeasure TTFB, load time, HTML size, and resource counts
seo_sitemap_parseParse sitemap.xml, check freshness, duplicates, and compliance

Requirements

  • Node.js 18+
  • No API keys needed — all tools use direct HTTP requests and HTML parsing

Installation

bash
git clone <repo-url>cd mcp-seo-toolsnpm installnpm run build

Usage with Claude Code

Add to your Claude Code MCP configuration:

bash
claude mcp add seo-tools node D:/products/mcp-servers/mcp-seo-tools/dist/index.js

Usage with Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "seo-tools": {      "command": "node",      "args": ["D:/products/mcp-servers/mcp-seo-tools/dist/index.js"]    }  }}

Tool Details

seo_meta_analyze

Fetches a URL and inspects all meta-related elements. Checks title length (optimal: 30-60 chars), meta description length (optimal: 120-160 chars), canonical URL, viewport tag, language attribute, Open Graph completeness, and Twitter Card setup. Returns a 0-100 score.

Input: { "url": "https://example.com" }

seo_heading_check

Parses all headings on a page and builds a visual hierarchy tree. Flags: missing H1, multiple H1s, skipped heading levels, empty headings, overly long headings (>70 chars), and duplicate headings.

Input: { "url": "https://example.com" }

seo_link_check

Extracts all anchor tags from a page, resolves relative URLs, deduplicates, and probes each link with a HEAD request (falling back to GET when needed). Classifies links as ok, broken, redirect, timeout, or error. Reports internal vs. external link ratio.

Input: { "url": "https://example.com", "max_links": 100 }

seo_keyword_density

Strips scripts, styles, and navigation, then tokenizes the remaining body text. Computes frequency and density for single words, bigrams, and trigrams (filtering stop words). When a target keyword is provided, checks whether it appears in the title, H1, meta description, and first paragraph.

Input: { "url": "https://example.com", "target_keyword": "seo tools" }

seo_page_speed

Measures Time to First Byte and total download time from the server's perspective. Counts external scripts, stylesheets, images, and iframes. Detects render-blocking scripts (missing async/defer), images without alt text or dimensions, missing compression, and absence of lazy loading.

Input: { "url": "https://example.com" }

seo_sitemap_parse

Accepts a sitemap URL or any page URL (automatically appends /sitemap.xml). Falls back to checking robots.txt for a Sitemap directive. Handles both <sitemapindex> and <urlset> formats. Validates URL count limits, lastmod freshness, duplicate entries, protocol consistency, and trailing slash patterns.

Input: { "url": "https://example.com" }

License

MIT

来源:README.md,提交 9e4140d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分