MCP Server
Add 22 SEO + AEO + speed + image-optimization tools to Claude Code, Claude Desktop, Cursor, Windsurf and ChatGPT Desktop. Hosted at mcp.ranki.io, published on npm as @ranki.io/seo-aeo-mcp. MIT licensed; source on GitHub.
Install (one line)
npx @ranki.io/cli installAuto-detects Claude Code, Claude Desktop, Cursor, Windsurf or ChatGPT Desktop and writes the right MCP config for that editor. The 15 free tools work without an account. The 7 paid bridge tools need a RANKI_API_KEY from app.ranki.io/developer.
Install (manual)
// ~/.claude/claude_desktop_config.json (or ~/.claude/claude_code_config.json)
{
"mcpServers": {
"ranki": {
"command": "npx",
"args": ["-y", "@ranki.io/seo-aeo-mcp"],
"env": { "RANKI_API_KEY": "rk_live_..." }
}
}
}// .cursor/mcp.json or .windsurf/mcp.json in your project root
{
"mcpServers": {
"ranki": {
"url": "https://mcp.ranki.io",
"headers": { "X-API-Key": "rk_live_..." }
}
}
}curl -X POST https://mcp.ranki.io/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'The 22 tools
Audit (3 free)
audit_seo(url)— 10-check on-page SEO scorecard (title, meta, H1, canonical, viewport, HTTPS, OpenGraph, image alt, internal links, JSON-LD). Returns 0–100 with per-failure fix recipes.audit_aeo(url)— 8-check Answer Engine Optimization scorecard (FAQPage / Article schema, definitional intro, author byline, llms.txt, robots AI access, answer-style headings, structured tables).audit_hidden_pages(urls[] or domain)— classifies each URL asrobots-disallow,noindex,keeporunsurewith reasoning; ready-to-paste robots.txt block included.
Speed & images (3 free)
audit_speed(url, strategy)— real Lighthouse + Core Web Vitals via Google PageSpeed Insights. Returns image opportunities with bytes saved per file, render-blocking JS/CSS, failing on-page SEO audits.audit_core_web_vitals(url)— focused LCP / CLS / INP audit with literal fix recipes per metric.optimize_images(images[], max_width)— target format (AVIF + WebP), responsive widths, alt suggestion, the literalsharp-cli/cwebp/avifenccommand to run, and a ready-to-paste<picture>block withsrcset.
Generate (3 free)
generate_sitemap_xml(urls[], changefreq?)— deploy-ready sitemap.generate_llms_txt(site_name, summary, key_pages[]?)— the emerging llms.txt standard for AI crawlers.generate_robots_txt(sitemap_url, allow_ai?, disallow_paths[]?)— robots.txt that explicitly allows or denies GPTBot, ClaudeBot, PerplexityBot, Google-Extended, etc.
Content & strategy (5 free)
seo_starter_kit(domain)— the 4 baseline files most vibe-coded sites are missing, ready to deploy.find_topic_ideas(url)— structured brief for 15 article topics across informational / commercial / transactional intent.find_keyword_gap(url, competitors[]?)— methodology for keyword-gap analysis vs named competitors.propose_titles_metas(urls[], focus_keyword?)— 5 title + meta description candidates per page across 5 angles, length-validated.explain_seo_terms(category?)— reference glossary of 40+ SEO and AEO terms; filter by basics / aeo / technical / analytics / penalty / all.
Install (1 free)
install_skill(agent?)— returns the install commands for the Ranki SEO Skill across Claude Code, Claude Desktop, Cursor, Windsurf, Claude.ai web Projects and genericAGENTS.md.
Your Ranki.io account (7, paid — X-API-Key required)
get_account()— whoami: name, email, plan, daily/monthly limits, current usage. Best first call after pasting a key.list_projects()— list your Ranki.io projects.list_articles(project_id, status?, per_page?, page?)— paginated article index: nano_id, title, status, language, focus keywords, TOC outline, word count, SEO score.get_article(article_id)— fetch one article: title, content_html, focus keyword, TOC, embedded image URLs, SEO score.list_rank_tracking(project_id)— Google Search Console summary for a project: 28-day totals, top 20 keywords by clicks, top 20 opportunity keywords (the easy wins).list_gsc_keywords(project_id, sort?, dir?, min_impressions?, per_page?)— full paginated GSC keyword list.ai_visibility(project_id, since?, cited_only?, per_page?)— recorded AI-citation snapshots (ChatGPT, Claude, Perplexity, Google AI Overviews) per project.
Example tool call (raw JSON-RPC)
POST https://mcp.ranki.io/
Content-Type: application/json
X-API-Key: rk_live_... (optional for the 15 free tools)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "audit_aeo",
"arguments": { "url": "https://yoursite.com/post" }
}
}Two implementations, same tools
The MCP ships in two parity implementations on the same GitHub repo:
- PHP 8.4 — the production deployment behind
mcp.ranki.io. Zero dependencies. View source → - Node / TypeScript — published on npm as
@ranki.io/seo-aeo-mcp. Stdio (via npx) and HTTP (via--serve) modes. View source →
Both expose the same 22 tools with the same JSON output, SSRF guard, rate-limit semantics and security posture.
Security & rate limits
- SSRF guard — outbound fetches validate scheme (http/https), resolve hostnames, and reject private / loopback / link-local / cloud-metadata IPs (incl. AWS IMDS). Manual redirect handling re-validates every hop.
- Body size cap — 64 KB; JSON depth cap — 16; tool-name allowlist —
^[a-z][a-z0-9_]{0,63}$. - Atomic daily rate-limit — file-locked counters. No key: 5 calls/IP/UTC-day (free tools only). With paid Ranki.io API key: 500 calls/key/UTC-day, plus a 100/IP/day ceiling for keyed callers (defence in depth).
- IP-spoof block —
X-Forwarded-For/CF-Connecting-IPheaders are honoured only when the request actually comes from Cloudflare's published ranges.
FAQ
The MCP server itself never calls an LLM. It returns deterministic structured advice — checklists, fix recipes, ready-to-deploy files, image conversion commands. Your AI editor (Claude / Cursor / Windsurf / ChatGPT) reads that output and applies it to your code using its own context. Whatever your AI editor charges you for that work is the only cost.
Claude Desktop, Claude Code and ChatGPT Desktop use stdio — they spawn npx -y @ranki.io/seo-aeo-mcp as a subprocess. Cursor, Windsurf and Claude.ai web use HTTP — they point at https://mcp.ranki.io with an X-API-Key header. Same 22 tools, same JSON output, different wire format.
After saving the config, restart the editor. The MCP indicator should show ranki as a connected server with 22 tools.
Yes. Both the PHP server (server/ directory) and the TypeScript server (ts-server/ directory) are MIT-licensed. npx @ranki.io/seo-aeo-mcp --serve --port 8787 runs the HTTP server locally.
The audit tools (audit_*) fetch the target URL, so they need internet. The generators (generate_*) work offline. The bridge tools (list_*, ai_visibility, etc.) call app.ranki.io so they need internet too.