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.Go to the MCP section
Select MCP (or API Keys, depending on your account view) from the settings navigation.
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.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:| Condition | Error code | Message |
|---|---|---|
No Authorization header | -32000 | Missing Authorization: Bearer <token> |
| Invalid or revoked token | -32000 | Invalid or revoked MCP token |
Connect Claude Desktop
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
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
Restart Claude Desktop
Quit and reopen Claude Desktop. The Rankahead tools will appear in the tool selector when you start a new conversation.
Connect Cursor
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
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.
| Built-in AI agent | MCP server | |
|---|---|---|
| Access | Rankahead dashboard | Any MCP-compatible client |
| Auth | Your Rankahead login | MCP token |
| Use case | Interactive, ad-hoc queries | Automated workflows, external agents |
| Setup required | None | Create a token, configure your client |