How it works
The Rankahead MCP server runs as a stateless HTTP endpoint. Each request is a JSON-RPC call authenticated with a bearer token. Your AI agent calls the endpoint, lists the available tools, and invokes them by name with structured arguments. The server returns structured JSON responses that the agent can reason about and act on.- Endpoint:
POST https://app.rankahead.ai/api/mcp - Protocol: MCP JSON-RPC, version
2024-11-05 - Authentication:
Authorization: Bearer <YOUR_MCP_TOKEN> - Server name:
rankahead-mcp(version0.1.0)
Step 1: Create an MCP token
You need an MCP token to authenticate requests. Tokens are scoped to your organisation.1
Open Settings
In the Rankahead dashboard, click Settings in the sidebar.
2
Go to the MCP section
Select MCP (or API Keys, depending on your account view) from the settings navigation.
3
Create a new token
Click Create token, give it a name (for example,
claude-desktop or cursor), and confirm. The token is shown once — copy it now.4
Store the token securely
Treat your MCP token like a password. Do not commit it to version control. You can revoke it from the same settings page at any time.
Step 2: Initialise the connection
Before calling tools, your client must send aninitialize request to establish the session and confirm protocol compatibility.
Authorization header:
cURL
Step 3: List available tools
After initialising, calltools/list to retrieve the full catalogue of tools your client can invoke.
Step 4: Call a tool
Usetools/call to invoke any tool by name, passing arguments as a JSON object.
Example: get your dashboard
Example: trigger a prompt run
Example: generate a blog post
Authentication errors
If your request is missing a token or uses an invalid one, the server returns an HTTP 401 with a JSON-RPC error:Connect Claude Desktop
1
Open your Claude Desktop config
Find the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
2
Add the Rankahead MCP server
Add the following entry to the
mcpServers object, replacing YOUR_MCP_TOKEN with the token you created in Settings:claude_desktop_config.json
3
Restart Claude Desktop
Quit and reopen Claude Desktop. The Rankahead tools will appear in the tool selector when you start a new conversation.
4
Verify the connection
In a new Claude conversation, ask: “List my Rankahead tracking prompts.” Claude will call
list_prompts and return your prompt data.Connect Cursor
1
Open Cursor settings
In Cursor, go to Settings > MCP (or press
Cmd+Shift+P and search for MCP).2
Add a new MCP server
Click Add MCP server and fill in the following:
- Name:
rankahead - URL:
https://app.rankahead.ai/api/mcp - Auth header:
Authorization: Bearer YOUR_MCP_TOKEN
3
Save and reload
Save the configuration. Cursor will connect to the server and load the available tools automatically.
Available tool categories
The following categories are available through the MCP server. For full tool reference including input schemas and response shapes, see the MCP Reference tab.Analytics
get_dashboard, get_gaps, get_citations, get_trends, get_prompt_analyticsPrompts
list_prompts, get_prompt, create_prompt, update_prompt, delete_prompt, list_runs, get_run, trigger_prompt_runDomains
list_domains, get_domain, create_domain, list_competitors, get_competitor, add_competitor, delete_competitorBlog
list_blog_posts, get_blog_post, generate_blog_post, update_blog_post, publish_blog_post, delete_blog_post, get_blog_gsc_metrics, get_blog_publish_statusGoogle Search Console
get_gsc_connection, get_gsc_dashboard, get_gsc_alerts, mark_gsc_alert_readGEO tasks
list_geo_tasks, get_geo_task, create_geo_task, update_geo_task, delete_geo_taskOrganisation
get_organisation, list_members, send_invite, revoke_invite, list_pending_invitesContent & persona
get_content_settings, update_content_settings, get_persona, upsert_personaBuilt-in agent vs. MCP
If you want to use natural language with Rankahead inside the dashboard itself, use the built-in AI Agent. The MCP server is for connecting external tools and building custom automations outside of Rankahead’s interface.