Features How it works Integrations Pricing FAQ Sign in Get Started

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 install

Auto-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"}'
No key needed for the 15 free tools (rate-limited 5 calls/IP/day). A paid Ranki.io key lifts the limit to 500 calls/key/day and unlocks the 7 bridge tools that read your real Google Search Console keywords, AI citations and article library.

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 as robots-disallow, noindex, keep or unsure with 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 literal sharp-cli / cwebp / avifenc command to run, and a ready-to-paste <picture> block with srcset.

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 generic AGENTS.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:

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-IP headers are honoured only when the request actually comes from Cloudflare's published ranges.

FAQ

Does it use my Claude credits?

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.

Stdio vs HTTP transport?

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.

How do I see the tools in my editor?

After saving the config, restart the editor. The MCP indicator should show ranki as a connected server with 22 tools.

Can I self-host?

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.

Will it work offline?

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.