Skip to main content
Rankahead exposes a Model Context Protocol (MCP) server that lets external AI agents interact with every feature of the platform — analytics, prompts, domains, content, GSC, and more. You send standard JSON-RPC 2.0 requests over HTTP, and the server executes the corresponding tool on your behalf. This means you can drive Rankahead from Claude Desktop, Cursor, or any other MCP-compatible client without writing custom integration code.

Endpoint

All MCP requests go to a single HTTP endpoint:
POST https://app.rankahead.ai/api/mcp
The server is stateless. Each HTTP call is a self-contained JSON-RPC request — there is no session or streaming connection to maintain. Every request must include your MCP token in the Authorization header. See the authentication page for details.

Protocol details

PropertyValue
TransportStreamable HTTP (stateless)
RPC formatJSON-RPC 2.0
Protocol version2024-11-05
Server namerankahead-mcp
Server version0.1.0

Supported methods

MethodDescription
initializeHandshake. Returns server info and capabilities.
pingHealth check. Returns an empty object.
tools/listReturns the full list of available tools.
tools/callExecutes a specific tool and returns its result.
notifications/*Accepted silently with HTTP 202; no action taken.
Any other method returns JSON-RPC error code -32601 (method not found).

Quick start

The examples below show the three requests you need to get oriented with the MCP server.
1

Initialize the connection

Send an initialize request to confirm the server is reachable and check the protocol version.
curl
curl -s -X POST https://app.rankahead.ai/api/mcp \
  -H "Authorization: Bearer YOUR_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {}
  }'
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2024-11-05",
    "capabilities": { "tools": {} },
    "serverInfo": {
      "name": "rankahead-mcp",
      "version": "0.1.0"
    }
  }
}
2

List available tools

Call tools/list to retrieve every tool the server exposes, including their input schemas.
curl
curl -s -X POST https://app.rankahead.ai/api/mcp \
  -H "Authorization: Bearer YOUR_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/list",
    "params": {}
  }'
3

Call a tool

Use tools/call to execute a specific tool. Pass the tool name and any required arguments in params.
curl
curl -s -X POST https://app.rankahead.ai/api/mcp \
  -H "Authorization: Bearer YOUR_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "get_dashboard",
      "arguments": {}
    }
  }'
Tool results are returned as a content array with a single text item containing JSON-encoded data:
Response
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"visibilityScore\": 72, ...}"
      }
    ]
  }
}

Available tools

The server exposes tools across eight functional categories. All tools operate within your organisation’s data.

Analytics

ToolDescription
get_dashboardRetrieve your AI visibility dashboard summary.
get_gapsFetch gap analysis data — topics where competitors appear but you don’t.
get_citationsList citations where your domain appears in AI-generated answers.
get_trendsReturn visibility trend data over time.
get_prompt_analyticsGet per-prompt performance metrics.

Prompts

ToolDescription
list_promptsList all tracking prompts in your organisation.
get_promptRetrieve a single prompt by ID.
list_runsList run history for a prompt.
get_runRetrieve the result of a specific prompt run.
create_promptCreate a new tracking prompt.
update_promptUpdate an existing prompt.
delete_promptDelete a prompt.
trigger_prompt_runManually trigger a prompt run immediately.

Domains

ToolDescription
list_domainsList all domains in your organisation.
get_domainRetrieve a single domain by ID.
list_competitorsList competitors tracked for a domain.
get_competitorRetrieve a specific competitor.
add_competitorAdd a competitor to a domain.
create_domainAdd a new domain to your organisation.
delete_competitorRemove a competitor from a domain.

Blog

ToolDescription
list_blog_postsList all blog posts.
get_blog_postRetrieve a single blog post by ID.
generate_blog_postGenerate a new AI-optimized blog post.
update_blog_postUpdate an existing blog post.
publish_blog_postPublish a blog post to your connected CMS.
delete_blog_postDelete a blog post.
get_blog_gsc_metricsRetrieve Google Search Console metrics for a blog post.
get_blog_publish_statusCheck the publish status of a blog post.

Google Search Console (GSC)

ToolDescription
get_gsc_connectionCheck the GSC connection status for a domain.
get_gsc_dashboardRetrieve GSC performance data.
get_gsc_alertsList active GSC alerts (ranking drops, traffic changes).
mark_gsc_alert_readMark a GSC alert as read.

GEO tasks

ToolDescription
list_geo_tasksList all GEO optimization tasks.
get_geo_taskRetrieve a specific GEO task.
create_geo_taskCreate a new GEO task.
update_geo_taskUpdate an existing GEO task.
delete_geo_taskDelete a GEO task.

Organisation

ToolDescription
get_organisationRetrieve your organisation details.
list_membersList all members in your organisation.
send_inviteSend a team invitation by email.
revoke_inviteRevoke a pending invitation.
list_pending_invitesList all pending invitations.

Settings & persona

ToolDescription
get_content_settingsRetrieve your content generation settings.
update_content_settingsUpdate content generation settings.
get_personaRetrieve your organisation’s AI persona.
upsert_personaCreate or update the AI persona.

Compatible clients

The Rankahead MCP server works with any client that supports the Model Context Protocol over HTTP.

Claude Desktop

Add Rankahead as a custom MCP server in Claude Desktop settings.

Cursor

Configure Rankahead MCP in your Cursor project’s MCP settings.

Any MCP client

Any client that supports stateless HTTP MCP transport and JSON-RPC 2.0 will work.
When configuring a client, set the server URL to https://app.rankahead.ai/api/mcp and supply your MCP token as the Bearer token. No other configuration is required.

Next steps

Authentication

Learn how to create and use MCP tokens securely.

Tool reference

Browse the full per-tool documentation with input schemas and response examples.