Skip to content

Model Context Protocol (MCP) Server

RankForge features native, zero-dependency support for Anthropic's Model Context Protocol (MCP) via JSON-RPC 2.0 over standard I/O (stdio).

This allows AI assistants and coding agents (Claude Desktop, Cursor, Windsurf, Zed, Copilot) to inspect, audit, and interact with your Laravel application's SEO and GEO engine directly.


Starting the MCP Server

Start the RankForge MCP server via Artisan:

bash
php artisan rankforge:mcp
# or using the alias:
php artisan rankforge:mcp:serve

Connecting with AI Clients

1. Claude Desktop Configuration

Add RankForge to your claude_desktop_config.json:

macOS

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "rankforge": {
      "command": "php",
      "args": [
        "/path/to/your/laravel-app/artisan",
        "rankforge:mcp"
      ]
    }
  }
}

2. Cursor IDE Configuration

In .cursor/mcp.json or Cursor Settings -> MCP:

json
{
  "mcpServers": {
    "rankforge": {
      "command": "php",
      "args": ["artisan", "rankforge:mcp"]
    }
  }
}

Available MCP Tools

AI agents can execute the following tools via RankForge:

ToolDescriptionParameters
check_seo_healthRuns an automated SEO audit checking site title, description, robots directives, sitemaps, and IndexNow configuration.None
get_llms_txtGenerates and returns semantic Markdown documentation for AI crawlers (/llms.txt or /llms-full.txt).full (boolean, optional)
get_robots_txtReturns the active robots.txt configuration, including environment locks and bot directives.None
get_sitemapReturns the root XML sitemap index or a specific chunked sitemap section.section (string, optional), page (int, optional)
inspect_html_metaParses and audits SEO metadata (title, description, canonical, robots, OG, Twitter) from raw HTML content.html (string, required)
get_skill_mdReturns the complete RankForge Agent Skill (SKILL.md) instructions and code patterns.None
submit_indexnowSubmits URL(s) to the IndexNow protocol for instant indexing across Bing and Yandex.urls (array of strings, required)

Available MCP Resources

RankForge exposes live context resources to LLMs:

Resource URIMIME TypeDescription
rankforge://llms.txttext/markdownConcise semantic Markdown summary of site documentation
rankforge://llms-full.txttext/markdownComprehensive unpaginated documentation bundle for LLM context windows
rankforge://robots.txttext/plainThe active robots.txt directives
rankforge://sitemap.xmlapplication/xmlThe root XML sitemap index
rankforge://skill.mdtext/markdownThe RankForge agent skill instructions and guidelines

Example Agent Interactions

When connected via MCP, you can prompt your AI assistant:

"Audit my Laravel app's SEO health and check if our sitemap and robots.txt are properly configured."

The AI assistant will invoke check_seo_health and get_robots_txt via MCP and provide a detailed analysis.

"Inspect the SEO meta tags of this rendered page HTML to ensure Open Graph and Twitter Card tags are complete."

The AI assistant will invoke inspect_html_meta with the HTML payload and verify all meta properties.

Released under the MIT License.