@automatelab/ai-seo-mcp 0.1.0 → 0.1.2
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.
- package/LICENSE +21 -21
- package/README.md +217 -217
- package/dist/index.js +204 -40
- package/dist/index.js.map +1 -1
- package/dist/tools/audit-canonical.d.ts.map +1 -1
- package/dist/tools/audit-canonical.js +9 -2
- package/dist/tools/audit-canonical.js.map +1 -1
- package/dist/tools/audit-page.d.ts.map +1 -1
- package/dist/tools/audit-page.js +14 -3
- package/dist/tools/audit-page.js.map +1 -1
- package/dist/tools/check-robots.d.ts.map +1 -1
- package/dist/tools/check-robots.js +4 -1
- package/dist/tools/check-robots.js.map +1 -1
- package/dist/tools/check-sitemap.d.ts.map +1 -1
- package/dist/tools/check-sitemap.js +12 -2
- package/dist/tools/check-sitemap.js.map +1 -1
- package/dist/tools/check-technical.d.ts.map +1 -1
- package/dist/tools/check-technical.js +9 -2
- package/dist/tools/check-technical.js.map +1 -1
- package/dist/tools/generate-llms-txt.d.ts.map +1 -1
- package/dist/tools/generate-llms-txt.js +25 -5
- package/dist/tools/generate-llms-txt.js.map +1 -1
- package/dist/tools/rewrite-for-aeo.js +28 -28
- package/dist/tools/rewrite-for-geo.js +28 -28
- package/dist/tools/score-ai-overview-eligibility.d.ts.map +1 -1
- package/dist/tools/score-ai-overview-eligibility.js +9 -2
- package/dist/tools/score-ai-overview-eligibility.js.map +1 -1
- package/package.json +61 -60
- package/src/lib/crawlers.json +6 -6
- package/src/lib/schema-types.json +56 -56
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 automatelab
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 automatelab
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,217 +1,217 @@
|
|
|
1
|
-
# @automatelab/ai-seo-mcp
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/@automatelab/ai-seo-mcp)
|
|
4
|
-
[](./LICENSE)
|
|
5
|
-
[](https://nodejs.org)
|
|
6
|
-
|
|
7
|
-
Vendor-agnostic MCP server that audits, scores, and rewrites web pages for AI-citation eligibility. No API keys. No registration.
|
|
8
|
-
|
|
9
|
-
Works in Claude Desktop, Cursor, Cline, Windsurf, VS Code (Copilot / Continue), and any client that speaks the [Model Context Protocol](https://modelcontextprotocol.io).
|
|
10
|
-
|
|
11
|
-
## Why it's important
|
|
12
|
-
|
|
13
|
-
AI assistants are eating search. ChatGPT, Perplexity, Google AI Overviews, and Claude with web access answer a fast-growing share of "what is X" and "how do I Y" queries - and each answer cites a handful of pages. Being one of those cited sources is binary: you are in the answer, or you are invisible.
|
|
14
|
-
|
|
15
|
-
The signals that decide citation eligibility are not what classic SEO tools measure. Lighthouse will not flag missing `FAQPage` schema. Search Console will not tell you that `GPTBot` is allowed but `OAI-SearchBot` is blocked. Ahrefs does not score citation worthiness. Screaming Frog does not validate `llms.txt`.
|
|
16
|
-
|
|
17
|
-
A page that no AI assistant cites is a page that, for a growing share of users, does not exist.
|
|
18
|
-
|
|
19
|
-
This MCP gives you a short list of no-brainer fixes that dramatically increase the odds of getting cited by an AI assistant versus unprepared text. It audits the specific signals AI assistants use - schema completeness, FAQ structure, AI-crawler allowlists, `llms.txt`, entity density, freshness, authority - and for each gap it returns the exact change to make. No opaque scores, no guesswork. Most of the fixes are one-time edits to a template or a `robots.txt` and pay off on every page you publish from then on.
|
|
20
|
-
|
|
21
|
-
## What it does
|
|
22
|
-
|
|
23
|
-
Modern search increasingly happens inside AI assistants. ChatGPT Search, Perplexity, Google AI Overviews, Claude with web access, and Microsoft Copilot all cite pages they consider authoritative, well-structured, and machine-readable. The signals that drive those citations overlap with classic SEO but are not the same.
|
|
24
|
-
|
|
25
|
-
This MCP gives any AI client a toolkit to inspect a URL and answer questions like:
|
|
26
|
-
|
|
27
|
-
- Is this page set up to be cited by AI Overviews and Perplexity?
|
|
28
|
-
- What schema is missing, malformed, or deprecated?
|
|
29
|
-
- Are GPTBot, ClaudeBot, OAI-SearchBot, and PerplexityBot allowed by `robots.txt`?
|
|
30
|
-
- Does the page have a chance at the Answer Engine slot for a given query?
|
|
31
|
-
- Rewrite this passage into a citation-ready answer block.
|
|
32
|
-
|
|
33
|
-
13 tools. Deterministic where possible. Rule-based scoring with explicit rubrics, not black-box numbers.
|
|
34
|
-
|
|
35
|
-
## Install
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npx -y @automatelab/ai-seo-mcp
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Requires Node 20 or later. No global install needed.
|
|
42
|
-
|
|
43
|
-
### Claude Desktop
|
|
44
|
-
|
|
45
|
-
Add to `%APPDATA%\Claude\claude_desktop_config.json` on Windows, or `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS:
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{
|
|
49
|
-
"mcpServers": {
|
|
50
|
-
"ai-seo": {
|
|
51
|
-
"command": "npx",
|
|
52
|
-
"args": ["-y", "@automatelab/ai-seo-mcp"]
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
Restart Claude Desktop. The 13 tools appear in the tool tray.
|
|
59
|
-
|
|
60
|
-
### Cursor
|
|
61
|
-
|
|
62
|
-
Add to `.cursor/mcp.json` in the project root or `~/.cursor/mcp.json` globally:
|
|
63
|
-
|
|
64
|
-
```json
|
|
65
|
-
{
|
|
66
|
-
"mcpServers": {
|
|
67
|
-
"ai-seo": {
|
|
68
|
-
"command": "npx",
|
|
69
|
-
"args": ["-y", "@automatelab/ai-seo-mcp"]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Cline
|
|
76
|
-
|
|
77
|
-
Add to VS Code settings or `.cline/mcp_settings.json`:
|
|
78
|
-
|
|
79
|
-
```json
|
|
80
|
-
{
|
|
81
|
-
"mcpServers": {
|
|
82
|
-
"ai-seo": {
|
|
83
|
-
"command": "npx",
|
|
84
|
-
"args": ["-y", "@automatelab/ai-seo-mcp"],
|
|
85
|
-
"disabled": false,
|
|
86
|
-
"autoApprove": []
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Windsurf, Continue, VS Code Copilot
|
|
93
|
-
|
|
94
|
-
Use the same `command` / `args` pattern. Any MCP client that supports stdio transport works.
|
|
95
|
-
|
|
96
|
-
## Quickstart
|
|
97
|
-
|
|
98
|
-
After adding the config snippet above and restarting your client, try these prompts:
|
|
99
|
-
|
|
100
|
-
- *"Run an AI-SEO audit on `https://example.com` and tell me the top three things to fix."* - calls `audit_page` and returns a scored report with prioritized findings.
|
|
101
|
-
- *"Check which AI crawlers my site allows in `robots.txt` for `https://yourdomain.com`."* - calls `check_robots` and lists per-crawler allow/disallow.
|
|
102
|
-
- *"Score how citation-worthy this blog post is for Perplexity and ChatGPT: `https://...`."* - calls `score_citation_worthiness`.
|
|
103
|
-
- *"Generate an `llms.txt` for `https://yourdomain.com` from its sitemap."* - calls `generate_llms_txt`.
|
|
104
|
-
- *"Rewrite this passage for Answer Engine Optimization: [paste passage]."* - calls `rewrite_for_aeo` (uses MCP sampling if your client supports it).
|
|
105
|
-
|
|
106
|
-
No API keys. No accounts. The first call may take a few seconds while `npx` downloads the package; subsequent calls are instant.
|
|
107
|
-
|
|
108
|
-
## Tools
|
|
109
|
-
|
|
110
|
-
| Tool | Purpose |
|
|
111
|
-
|------|---------|
|
|
112
|
-
| `audit_page` | Composite AI-SEO audit with 8-dimension scoring (schema, technical, structure, robots, freshness, authority, entity density, sitemap). |
|
|
113
|
-
| `audit_schema` | Validate JSON-LD against Schema.org rules and AI-citation best practice. Flags deprecated patterns. |
|
|
114
|
-
| `audit_canonical` | Canonical link integrity, trailing-slash hygiene, `og:url` consistency. |
|
|
115
|
-
| `check_robots` | Parse `robots.txt` and report per-crawler allow/disallow for all known AI crawlers. Surfaces the GPTBot-blocked-but-OAI-SearchBot-allowed trap. |
|
|
116
|
-
| `check_sitemap` | Validate XML sitemaps: presence, URL count, `lastmod` freshness, image/video extensions. |
|
|
117
|
-
| `check_technical` | HEAD tag audit: canonical, OpenGraph, Twitter Card, hreflang, HTTPS, noindex, title hygiene. |
|
|
118
|
-
| `score_ai_overview_eligibility` | Score a page's probability of appearing in Google AI Overviews using current correlation factors. |
|
|
119
|
-
| `generate_llms_txt` | Generate `llms.txt` and optionally `llms-full.txt` from a domain's sitemap. |
|
|
120
|
-
| `validate_llms_txt` | Lint an existing `llms.txt` for spec compliance and broken links. |
|
|
121
|
-
| `score_citation_worthiness` | Score how citable a page or text block is for Perplexity, ChatGPT, Google AI Overviews, and Claude. |
|
|
122
|
-
| `rewrite_for_aeo` | Rewrite content for Answer Engine Optimization (BLUF structure, FAQ format, schema additions). |
|
|
123
|
-
| `rewrite_for_geo` | Rewrite content for Generative Engine Optimization (entity definitions, comparison tables, synthesis-ready structure). |
|
|
124
|
-
| `extract_entities` | Extract named entities, `sameAs` links, and citation-density score from a page's content and structured data. |
|
|
125
|
-
|
|
126
|
-
## Example
|
|
127
|
-
|
|
128
|
-
In Claude Desktop, after wiring the server above:
|
|
129
|
-
|
|
130
|
-
> **You:** Run an AI-SEO audit on `https://automatelab.tech/how-to-connect-zapier-to-notion`.
|
|
131
|
-
|
|
132
|
-
Claude calls `audit_page`. Result (truncated):
|
|
133
|
-
|
|
134
|
-
```json
|
|
135
|
-
{
|
|
136
|
-
"url": "https://automatelab.tech/how-to-connect-zapier-to-notion",
|
|
137
|
-
"fetched_at": "2026-05-15T10:32:00Z",
|
|
138
|
-
"score": 61,
|
|
139
|
-
"grade": "C",
|
|
140
|
-
"dimension_scores": {
|
|
141
|
-
"schema": 45, "technical": 80, "structure": 40,
|
|
142
|
-
"robots": 90, "freshness": 85, "authority": 40,
|
|
143
|
-
"entity_density": 21, "sitemap": 100
|
|
144
|
-
},
|
|
145
|
-
"findings": [
|
|
146
|
-
{
|
|
147
|
-
"severity": "critical",
|
|
148
|
-
"category": "structure",
|
|
149
|
-
"where": "<body>",
|
|
150
|
-
"message": "No FAQ structure found (no FAQPage schema or H3 question headings).",
|
|
151
|
-
"fix": "Add FAQ H3 headings ending in '?' with answer paragraphs, and a FAQPage JSON-LD block.",
|
|
152
|
-
"estimated_impact": "high"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"severity": "warning",
|
|
156
|
-
"category": "authority",
|
|
157
|
-
"where": "page-level",
|
|
158
|
-
"message": "Low authority signals - missing Organization or author Person schema.",
|
|
159
|
-
"fix": "Add Organization JSON-LD and Article.author as a Person node with sameAs links.",
|
|
160
|
-
"estimated_impact": "high"
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
Claude then summarizes the findings and proposes fixes. For rewrite tools, the host model (Claude / GPT / etc.) does the rewriting via MCP sampling.
|
|
167
|
-
|
|
168
|
-
## Environment variables
|
|
169
|
-
|
|
170
|
-
All variables are optional. Set them in the MCP client config under `"env"`.
|
|
171
|
-
|
|
172
|
-
| Variable | Default | Description |
|
|
173
|
-
|----------|---------|-------------|
|
|
174
|
-
| `USER_AGENT` | `automatelab-ai-seo-mcp/0.1.0 (+https://github.com/AutomateLab-tech/ai-seo)` | HTTP User-Agent on all fetches. |
|
|
175
|
-
| `FETCH_TIMEOUT_MS` | `15000` | Per-request timeout in milliseconds. |
|
|
176
|
-
| `MAX_BYTES` | `5242880` | Maximum response body size in bytes (5 MB). |
|
|
177
|
-
| `RESPECT_ROBOTS` | `true` | Global default for robots.txt compliance. Set `"false"` to disable. |
|
|
178
|
-
| `INTER_REQUEST_DELAY_MS` | `1500` | Minimum delay between requests to the same host within a tool call. |
|
|
179
|
-
|
|
180
|
-
## Polite by default
|
|
181
|
-
|
|
182
|
-
Every tool that hits the network goes through one fetch path that:
|
|
183
|
-
|
|
184
|
-
- Respects `robots.txt` for the configured User-Agent (override with `RESPECT_ROBOTS=false`).
|
|
185
|
-
- Identifies itself honestly via `User-Agent` (no spoofing as a browser).
|
|
186
|
-
- Sleeps `INTER_REQUEST_DELAY_MS` between requests to the same host within a tool call.
|
|
187
|
-
- Times out at `FETCH_TIMEOUT_MS` per request.
|
|
188
|
-
- Caps response body at `MAX_BYTES` and refuses non-HTML / non-XML payloads where inappropriate.
|
|
189
|
-
|
|
190
|
-
This MCP is not a scraper. It audits public pages the way Lighthouse or Screaming Frog do, one URL at a time.
|
|
191
|
-
|
|
192
|
-
## What it does not do
|
|
193
|
-
|
|
194
|
-
- No JavaScript-rendered scraping. Only static HTML is fetched. SPAs that render content client-side will produce incomplete audits.
|
|
195
|
-
- No paid-API integrations (Search Console, Ahrefs, Semrush). Bring those signals manually if you need them.
|
|
196
|
-
- No site-wide crawling. Tools that need multiple URLs read from the public sitemap.
|
|
197
|
-
- No live SERP checks. AI Overview eligibility is a deterministic heuristic, not a guarantee.
|
|
198
|
-
- English-language tuning. Technical checks (schema, robots, canonical) are language-agnostic; content scoring assumes English.
|
|
199
|
-
- Entity extraction is regex-based (title-case phrases, acronyms, CamelCase). False positives and misses are expected on v0.1.
|
|
200
|
-
|
|
201
|
-
## Contributing
|
|
202
|
-
|
|
203
|
-
Bug reports, feature ideas, and PRs welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
204
|
-
|
|
205
|
-
## Security
|
|
206
|
-
|
|
207
|
-
To report a vulnerability, see [SECURITY.md](./SECURITY.md).
|
|
208
|
-
|
|
209
|
-
## License
|
|
210
|
-
|
|
211
|
-
MIT - see [LICENSE](./LICENSE).
|
|
212
|
-
|
|
213
|
-
## Acknowledgements
|
|
214
|
-
|
|
215
|
-
Built by [automatelab.tech](https://automatelab.tech/products/mcp/ai-seo/)
|
|
216
|
-
|
|
217
|
-
Schema.org, `robots.txt`, and `llms.txt` are open standards. Crawler user-agent data is sourced from Anthropic, OpenAI, Google, Perplexity, and Cloudflare documentation. The MCP itself is built on the [Model Context Protocol](https://modelcontextprotocol.io) by Anthropic.
|
|
1
|
+
# @automatelab/ai-seo-mcp
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@automatelab/ai-seo-mcp)
|
|
4
|
+
[](./LICENSE)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
|
|
7
|
+
Vendor-agnostic MCP server that audits, scores, and rewrites web pages for AI-citation eligibility. No API keys. No registration.
|
|
8
|
+
|
|
9
|
+
Works in Claude Desktop, Cursor, Cline, Windsurf, VS Code (Copilot / Continue), and any client that speaks the [Model Context Protocol](https://modelcontextprotocol.io).
|
|
10
|
+
|
|
11
|
+
## Why it's important
|
|
12
|
+
|
|
13
|
+
AI assistants are eating search. ChatGPT, Perplexity, Google AI Overviews, and Claude with web access answer a fast-growing share of "what is X" and "how do I Y" queries - and each answer cites a handful of pages. Being one of those cited sources is binary: you are in the answer, or you are invisible.
|
|
14
|
+
|
|
15
|
+
The signals that decide citation eligibility are not what classic SEO tools measure. Lighthouse will not flag missing `FAQPage` schema. Search Console will not tell you that `GPTBot` is allowed but `OAI-SearchBot` is blocked. Ahrefs does not score citation worthiness. Screaming Frog does not validate `llms.txt`.
|
|
16
|
+
|
|
17
|
+
A page that no AI assistant cites is a page that, for a growing share of users, does not exist.
|
|
18
|
+
|
|
19
|
+
This MCP gives you a short list of no-brainer fixes that dramatically increase the odds of getting cited by an AI assistant versus unprepared text. It audits the specific signals AI assistants use - schema completeness, FAQ structure, AI-crawler allowlists, `llms.txt`, entity density, freshness, authority - and for each gap it returns the exact change to make. No opaque scores, no guesswork. Most of the fixes are one-time edits to a template or a `robots.txt` and pay off on every page you publish from then on.
|
|
20
|
+
|
|
21
|
+
## What it does
|
|
22
|
+
|
|
23
|
+
Modern search increasingly happens inside AI assistants. ChatGPT Search, Perplexity, Google AI Overviews, Claude with web access, and Microsoft Copilot all cite pages they consider authoritative, well-structured, and machine-readable. The signals that drive those citations overlap with classic SEO but are not the same.
|
|
24
|
+
|
|
25
|
+
This MCP gives any AI client a toolkit to inspect a URL and answer questions like:
|
|
26
|
+
|
|
27
|
+
- Is this page set up to be cited by AI Overviews and Perplexity?
|
|
28
|
+
- What schema is missing, malformed, or deprecated?
|
|
29
|
+
- Are GPTBot, ClaudeBot, OAI-SearchBot, and PerplexityBot allowed by `robots.txt`?
|
|
30
|
+
- Does the page have a chance at the Answer Engine slot for a given query?
|
|
31
|
+
- Rewrite this passage into a citation-ready answer block.
|
|
32
|
+
|
|
33
|
+
13 tools. Deterministic where possible. Rule-based scoring with explicit rubrics, not black-box numbers.
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx -y @automatelab/ai-seo-mcp
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Requires Node 20 or later. No global install needed.
|
|
42
|
+
|
|
43
|
+
### Claude Desktop
|
|
44
|
+
|
|
45
|
+
Add to `%APPDATA%\Claude\claude_desktop_config.json` on Windows, or `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"mcpServers": {
|
|
50
|
+
"ai-seo": {
|
|
51
|
+
"command": "npx",
|
|
52
|
+
"args": ["-y", "@automatelab/ai-seo-mcp"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Restart Claude Desktop. The 13 tools appear in the tool tray.
|
|
59
|
+
|
|
60
|
+
### Cursor
|
|
61
|
+
|
|
62
|
+
Add to `.cursor/mcp.json` in the project root or `~/.cursor/mcp.json` globally:
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"mcpServers": {
|
|
67
|
+
"ai-seo": {
|
|
68
|
+
"command": "npx",
|
|
69
|
+
"args": ["-y", "@automatelab/ai-seo-mcp"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Cline
|
|
76
|
+
|
|
77
|
+
Add to VS Code settings or `.cline/mcp_settings.json`:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"mcpServers": {
|
|
82
|
+
"ai-seo": {
|
|
83
|
+
"command": "npx",
|
|
84
|
+
"args": ["-y", "@automatelab/ai-seo-mcp"],
|
|
85
|
+
"disabled": false,
|
|
86
|
+
"autoApprove": []
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Windsurf, Continue, VS Code Copilot
|
|
93
|
+
|
|
94
|
+
Use the same `command` / `args` pattern. Any MCP client that supports stdio transport works.
|
|
95
|
+
|
|
96
|
+
## Quickstart
|
|
97
|
+
|
|
98
|
+
After adding the config snippet above and restarting your client, try these prompts:
|
|
99
|
+
|
|
100
|
+
- *"Run an AI-SEO audit on `https://example.com` and tell me the top three things to fix."* - calls `audit_page` and returns a scored report with prioritized findings.
|
|
101
|
+
- *"Check which AI crawlers my site allows in `robots.txt` for `https://yourdomain.com`."* - calls `check_robots` and lists per-crawler allow/disallow.
|
|
102
|
+
- *"Score how citation-worthy this blog post is for Perplexity and ChatGPT: `https://...`."* - calls `score_citation_worthiness`.
|
|
103
|
+
- *"Generate an `llms.txt` for `https://yourdomain.com` from its sitemap."* - calls `generate_llms_txt`.
|
|
104
|
+
- *"Rewrite this passage for Answer Engine Optimization: [paste passage]."* - calls `rewrite_for_aeo` (uses MCP sampling if your client supports it).
|
|
105
|
+
|
|
106
|
+
No API keys. No accounts. The first call may take a few seconds while `npx` downloads the package; subsequent calls are instant.
|
|
107
|
+
|
|
108
|
+
## Tools
|
|
109
|
+
|
|
110
|
+
| Tool | Purpose |
|
|
111
|
+
|------|---------|
|
|
112
|
+
| `audit_page` | Composite AI-SEO audit with 8-dimension scoring (schema, technical, structure, robots, freshness, authority, entity density, sitemap). |
|
|
113
|
+
| `audit_schema` | Validate JSON-LD against Schema.org rules and AI-citation best practice. Flags deprecated patterns. |
|
|
114
|
+
| `audit_canonical` | Canonical link integrity, trailing-slash hygiene, `og:url` consistency. |
|
|
115
|
+
| `check_robots` | Parse `robots.txt` and report per-crawler allow/disallow for all known AI crawlers. Surfaces the GPTBot-blocked-but-OAI-SearchBot-allowed trap. |
|
|
116
|
+
| `check_sitemap` | Validate XML sitemaps: presence, URL count, `lastmod` freshness, image/video extensions. |
|
|
117
|
+
| `check_technical` | HEAD tag audit: canonical, OpenGraph, Twitter Card, hreflang, HTTPS, noindex, title hygiene. |
|
|
118
|
+
| `score_ai_overview_eligibility` | Score a page's probability of appearing in Google AI Overviews using current correlation factors. |
|
|
119
|
+
| `generate_llms_txt` | Generate `llms.txt` and optionally `llms-full.txt` from a domain's sitemap. |
|
|
120
|
+
| `validate_llms_txt` | Lint an existing `llms.txt` for spec compliance and broken links. |
|
|
121
|
+
| `score_citation_worthiness` | Score how citable a page or text block is for Perplexity, ChatGPT, Google AI Overviews, and Claude. |
|
|
122
|
+
| `rewrite_for_aeo` | Rewrite content for Answer Engine Optimization (BLUF structure, FAQ format, schema additions). |
|
|
123
|
+
| `rewrite_for_geo` | Rewrite content for Generative Engine Optimization (entity definitions, comparison tables, synthesis-ready structure). |
|
|
124
|
+
| `extract_entities` | Extract named entities, `sameAs` links, and citation-density score from a page's content and structured data. |
|
|
125
|
+
|
|
126
|
+
## Example
|
|
127
|
+
|
|
128
|
+
In Claude Desktop, after wiring the server above:
|
|
129
|
+
|
|
130
|
+
> **You:** Run an AI-SEO audit on `https://automatelab.tech/how-to-connect-zapier-to-notion`.
|
|
131
|
+
|
|
132
|
+
Claude calls `audit_page`. Result (truncated):
|
|
133
|
+
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"url": "https://automatelab.tech/how-to-connect-zapier-to-notion",
|
|
137
|
+
"fetched_at": "2026-05-15T10:32:00Z",
|
|
138
|
+
"score": 61,
|
|
139
|
+
"grade": "C",
|
|
140
|
+
"dimension_scores": {
|
|
141
|
+
"schema": 45, "technical": 80, "structure": 40,
|
|
142
|
+
"robots": 90, "freshness": 85, "authority": 40,
|
|
143
|
+
"entity_density": 21, "sitemap": 100
|
|
144
|
+
},
|
|
145
|
+
"findings": [
|
|
146
|
+
{
|
|
147
|
+
"severity": "critical",
|
|
148
|
+
"category": "structure",
|
|
149
|
+
"where": "<body>",
|
|
150
|
+
"message": "No FAQ structure found (no FAQPage schema or H3 question headings).",
|
|
151
|
+
"fix": "Add FAQ H3 headings ending in '?' with answer paragraphs, and a FAQPage JSON-LD block.",
|
|
152
|
+
"estimated_impact": "high"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"severity": "warning",
|
|
156
|
+
"category": "authority",
|
|
157
|
+
"where": "page-level",
|
|
158
|
+
"message": "Low authority signals - missing Organization or author Person schema.",
|
|
159
|
+
"fix": "Add Organization JSON-LD and Article.author as a Person node with sameAs links.",
|
|
160
|
+
"estimated_impact": "high"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Claude then summarizes the findings and proposes fixes. For rewrite tools, the host model (Claude / GPT / etc.) does the rewriting via MCP sampling.
|
|
167
|
+
|
|
168
|
+
## Environment variables
|
|
169
|
+
|
|
170
|
+
All variables are optional. Set them in the MCP client config under `"env"`.
|
|
171
|
+
|
|
172
|
+
| Variable | Default | Description |
|
|
173
|
+
|----------|---------|-------------|
|
|
174
|
+
| `USER_AGENT` | `automatelab-ai-seo-mcp/0.1.0 (+https://github.com/AutomateLab-tech/ai-seo)` | HTTP User-Agent on all fetches. |
|
|
175
|
+
| `FETCH_TIMEOUT_MS` | `15000` | Per-request timeout in milliseconds. |
|
|
176
|
+
| `MAX_BYTES` | `5242880` | Maximum response body size in bytes (5 MB). |
|
|
177
|
+
| `RESPECT_ROBOTS` | `true` | Global default for robots.txt compliance. Set `"false"` to disable. |
|
|
178
|
+
| `INTER_REQUEST_DELAY_MS` | `1500` | Minimum delay between requests to the same host within a tool call. |
|
|
179
|
+
|
|
180
|
+
## Polite by default
|
|
181
|
+
|
|
182
|
+
Every tool that hits the network goes through one fetch path that:
|
|
183
|
+
|
|
184
|
+
- Respects `robots.txt` for the configured User-Agent (override with `RESPECT_ROBOTS=false`).
|
|
185
|
+
- Identifies itself honestly via `User-Agent` (no spoofing as a browser).
|
|
186
|
+
- Sleeps `INTER_REQUEST_DELAY_MS` between requests to the same host within a tool call.
|
|
187
|
+
- Times out at `FETCH_TIMEOUT_MS` per request.
|
|
188
|
+
- Caps response body at `MAX_BYTES` and refuses non-HTML / non-XML payloads where inappropriate.
|
|
189
|
+
|
|
190
|
+
This MCP is not a scraper. It audits public pages the way Lighthouse or Screaming Frog do, one URL at a time.
|
|
191
|
+
|
|
192
|
+
## What it does not do
|
|
193
|
+
|
|
194
|
+
- No JavaScript-rendered scraping. Only static HTML is fetched. SPAs that render content client-side will produce incomplete audits.
|
|
195
|
+
- No paid-API integrations (Search Console, Ahrefs, Semrush). Bring those signals manually if you need them.
|
|
196
|
+
- No site-wide crawling. Tools that need multiple URLs read from the public sitemap.
|
|
197
|
+
- No live SERP checks. AI Overview eligibility is a deterministic heuristic, not a guarantee.
|
|
198
|
+
- English-language tuning. Technical checks (schema, robots, canonical) are language-agnostic; content scoring assumes English.
|
|
199
|
+
- Entity extraction is regex-based (title-case phrases, acronyms, CamelCase). False positives and misses are expected on v0.1.
|
|
200
|
+
|
|
201
|
+
## Contributing
|
|
202
|
+
|
|
203
|
+
Bug reports, feature ideas, and PRs welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
204
|
+
|
|
205
|
+
## Security
|
|
206
|
+
|
|
207
|
+
To report a vulnerability, see [SECURITY.md](./SECURITY.md).
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
MIT - see [LICENSE](./LICENSE).
|
|
212
|
+
|
|
213
|
+
## Acknowledgements
|
|
214
|
+
|
|
215
|
+
Built by [automatelab.tech](https://automatelab.tech/products/mcp/ai-seo/)
|
|
216
|
+
|
|
217
|
+
Schema.org, `robots.txt`, and `llms.txt` are open standards. Crawler user-agent data is sourced from Anthropic, OpenAI, Google, Perplexity, and Cloudflare documentation. The MCP itself is built on the [Model Context Protocol](https://modelcontextprotocol.io) by Anthropic.
|