SEO Audit MCP
Enables running comprehensive SEO audits on websites, checking meta tags, sitemaps, robots.txt, broken links, headings, duplicate titles, and keyword density through MCP tools.
README
SEO Audit MCP
A comprehensive SEO auditing tool suite. Run audits via CLI, Local MCP (stdio), or Remote MCP (HTTP).
Features
| Check | What It Detects |
|---|---|
| Meta Tags | Missing/invalid title, description, viewport, Open Graph tags |
| Sitemap | Validate sitemap.xml existence and structure |
| Robots.txt | Validate robots.txt rules and directives |
| Broken Links | Scan page for broken/404 links |
| Headings | Analyze h1–h6 hierarchy compliance |
| Duplicate Titles | Detect duplicate or poorly formed page titles |
| Keyword Density | Analyze keyword frequency and density |
Packages
All packages are published to npm under the @seo-audit scope.
| Package | npm | Description | Type |
|---|---|---|---|
@seo-audit/core |
npm | Shared audit logic | Library |
@seo-audit/cli |
npm | Command-line interface (seo-audit) |
CLI |
@seo-audit/local-mcp |
npm | MCP server over stdio (seo-audit-mcp) |
MCP (local) |
@seo-audit/remote-mcp |
npm | MCP server over HTTP (seo-audit-remote) |
MCP (remote) |
Quick Start (No Install)
# CLI — audit any website
npx @seo-audit/cli https://example.com
# Local MCP — run as an MCP server
bunx @seo-audit/local-mcp
Installation
CLI
npm install -g @seo-audit/cli
seo-audit https://example.com
Local MCP (for MCP clients)
npm install -g @seo-audit/local-mcp
seo-audit-mcp
CLI Usage
seo-audit [options] <url>
Arguments:
url Website URL to audit (e.g. https://example.com)
Options:
-c, --checks <checks> Comma-separated checks to run.
Available: meta-tags, sitemap, robots-txt,
broken-links, headings, duplicate-titles,
keyword-density
-t, --timeout <ms> Request timeout (default: 15000)
-C, --concurrency <n> Concurrency for link checking (default: 5)
-j, --json Output as JSON
-V, --version Show version
-h, --help Display help
Examples
# Full audit
npx @seo-audit/cli https://example.com
# Specific checks only
npx @seo-audit/cli https://example.com --checks meta-tags,headings
# JSON output
npx @seo-audit/cli https://example.com --json
# Higher timeout for slow sites
npx @seo-audit/cli https://example.com --timeout 30000
MCP Server Setup
Claude Desktop
Add to claude.json:
{
"mcpServers": {
"seo-audit": {
"command": "bunx",
"args": ["@seo-audit/local-mcp"]
}
}
}
OpenCode
Add to opencode.json:
{
"mcp": {
"seo-audit": {
"type": "local",
"command": ["bun", "x"."-y", "@seo-audit/local-mcp"],
"enabled": true
}
}
}
MCP Tools
Once connected, the following tools are available:
| Tool | Description |
|---|---|
audit |
Run all SEO checks (or subset) |
check_meta_tags |
Check meta tags |
check_sitemap |
Validate sitemap.xml |
check_robots_txt |
Validate robots.txt |
check_broken_links |
Find broken links |
check_headings |
Analyze heading structure |
check_duplicate_titles |
Check duplicate titles |
check_keyword_density |
Analyze keyword density |
Remote MCP
# Install
npm install -g @seo-audit/remote-mcp
# Run the server
seo-audit-remote
# (Default: http://localhost:3456)
curl -X POST http://localhost:3456/call \
-H "Content-Type: application/json" \
-d '{"name":"audit","arguments":{"url":"https://example.com"}}'
Architecture
MCP Clients (Claude Desktop, OpenCode, etc.)
│ │
stdio │ HTTP │
▼ ▼
┌──────────────┐ ┌──────────────────┐
│ local-mcp │ │ remote-mcp │
│ (stdio) │ │ (Express) │
└──────┬───────┘ └────────┬─────────┘
│ │
└──────────┬──────────┘
▼
┌──────────────┐
│ core │
│ (audit logic)│
└──────────────┘
│
▼
┌──────────────┐
│ cli │
│ (commander) │
└──────────────┘
Development
This is a Bun monorepo using workspaces.
# Prerequisites
curl -fsSL https://bun.sh/install | bash
# Install dependencies
bun install
# Build all packages
bun run build
# Run from source (no build needed)
bun run dev:cli # CLI
bun run dev:local # Local MCP
bun run dev:remote # Remote MCP
# Lint, format, typecheck
bun run lint
bun run format:check
bun run typecheck
Publish a Package
cd packages/<name>
npm publish --access public
Tech Stack
Runtime: Bun / Node.js 20+
Language: TypeScript
Bundler: tsdown
Linting/Formatting: oxlint / oxfmt
MCP: @modelcontextprotocol/sdk
HTML Parsing: Cheerio
Validation: Zod
CLI: Commander
HTTP: Express (remote-mcp)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。