Skip to content
Docs menu

AI assistants

MCP server

Rank.ai’s MCP server connects Claude Code, Codex, Cursor, Claude.ai and ChatGPT to your Rank.ai workspace. Add its address to your assistant, sign in, and ask about your AI visibility in plain words.

Server address
https://api.rank.ai/mcp
Sign in with
Your Rank.ai account, or an API key
Included on
The Growth and Agency plans and every done-for-you plan, including the Growth trial. See pricing

Setup

Connect your assistant

Pick your assistant. The first time it connects, it opens Rank.ai in your browser: sign in, pick the workspace and choose whether it may make changes. One connection works in one workspace.

One command, then sign in from Claude Code.

  1. Add the server

    Run this in your terminal. It adds Rank.ai to the project you are in; put --scope user after rank-ai to add it to every project.

    Terminal
    claude mcp add --transport http rank-ai https://api.rank.ai/mcp
  2. Sign in

    Start Claude Code, type /mcp, choose rank-ai and sign in to Rank.ai in your browser. Pick the workspace and whether it may make changes.

    In Claude Code
    /mcp
  3. Ask

    Ask in plain words, like “How often do ChatGPT, Claude and Gemini name us?”

Or connect with an API key

Keep the key in an environment variable and add the server to a project's .mcp.json:

.mcp.json
{
  "mcpServers": {
    "rank-ai": {
      "type": "http",
      "url": "https://api.rank.ai/mcp",
      "headers": { "Authorization": "Bearer ${RANK_AI_API_KEY}" }
    }
  }
}

Claude Code's MCP guide

API keys

Use an API key

For your own scripts, or a client that can’t sign in, send an API key with every request.

  1. In Rank.ai, open Settings, then API keys, and generate a key. Label it after the assistant or script that will use it, and keep it in an environment variable.
  2. Copy the key when it appears. Rank.ai shows each key once.
  3. Send it as a bearer token with every request:
Header
Authorization: Bearer rnk_live_...

Examples

What you can ask

Ask the way you would ask a colleague, and your assistant picks the tools. These examples are for a med spa in Austin.

  • How often do ChatGPT, Claude and Gemini name us this month?

    get_ai_visibility
  • Which questions are we losing, and which brands win them?

    list_questionsget_question
  • Show me what ChatGPT said for the worst one, and the sources it used.

    get_answer
  • Which sites does AI cite most for med spas in Austin?

    list_cited_sources
  • Where do we rank on Google Maps for “med spa near me”?

    get_map_scan
  • Draft an article to win “best Botox in Austin”.

    draft_article
  • Grade prospect.com in AI answers.

    grade_domainget_grade

Reference

Tools

Your assistant sees every tool when it connects and chooses the ones a question needs. These are the ones you will use most.

Your workspace

ToolWhat it doesAccess
get_accountYour plan and what it includes, credits, article allowance and what this connection may do.Reads
get_overviewHow you are doing across AI answers, Google, local and content, and what needs attention.Reads

AI answers

ToolWhat it doesAccess
get_ai_visibilityThe share of answers that name you and cite your site, per engine, against the brands named most.Reads
list_questionsYour tracked questions, how often each engine names you, and which ones you are losing.Reads
get_questionOne question: each engine's latest answer, whether it names and cites you, and where.Reads
list_answersThe answers to one question, newest first.Reads
get_answerOne answer in full: its text, every brand and every source, and the searches the engine ran.Reads
list_cited_sourcesThe sites AI cites for your questions, and their top pages.Reads
suggest_questionsQuestions worth tracking. Adds nothing.Reads
add_questionsTrack new questions.Changes data
update_questionReword, change engines, pause or resume a question.Changes data
run_checkAsk the engines a question now.Uses credits or allowance

Competitors

ToolWhat it doesAccess
list_competitorsTracked competitors, brands AI names that you don't track, and who ranks in Google.Reads
get_competitorOne competitor's Google, paid search and AI footprint.Reads
track_competitorAdd a competitor to track.Changes data
untrack_competitorStop tracking a competitor.Changes data

Google and Maps

ToolWhat it doesAccess
list_keywordsYour Google positions, with the change and the ranking page.Reads
get_keywordOne keyword's history and the results above you.Reads
list_local_rankingsMap grid tracking for each location and keyword.Reads
list_map_scansYour saved map scans.Reads
get_map_scanOne map scan: coverage for each keyword and the competitors on top.Reads
list_auditsYour audits and monthly reports.Reads
get_auditOne audit, a section at a time.Reads

Content

ToolWhat it doesAccess
list_content_gapsKeywords competitors win that you don't target.Reads
list_articlesYour articles by status.Reads
get_articleOne article with its text.Reads
draft_articleWrite an article for a lost question, a content gap or a title.Uses credits or allowance
publish_articlePublish an article to your connected site or hosted blog.Changes data

AI grades

ToolWhat it doesAccess
grade_domainGrade any domain in AI answers, a prospect's included.Changes data
get_gradeThe grade's result.Reads

Limits

Credits and limits

Reading your data uses no credits. Changes and checks work the way they do in the app.

  • Changes wait for a yes. A tool that changes your workspace or uses credits first returns a preview: what will happen and what it costs. Nothing runs until your assistant calls it again to confirm, so it can ask you first.
  • Checks use your plan’s credits and drafts your article allowance, the same as in the app. Grading a domain uses no credits.
  • Each connection can make 60 calls a minute and 3,000 a day, and each workspace 120 a minute and 10,000 a day. When your assistant reaches a limit, the reply says when to try again.
  • Errors come back as a code and a sentence, such as [plan_required] or [rate_limited], so your assistant can tell you what to do next.

See how often ChatGPT, Claude and Gemini name you.

Enter your website. In about two minutes, Rank.ai asks ChatGPT, Claude and Gemini 12 questions your customers ask and grades how often they name you.

  • Your grade out of 100How often AI names you, cites your site, and how high it ranks you.
  • Who gets namedEvery competitor in the answers, most named first.
  • The pages AI readsThe sources behind each answer.
  • Three fixesWhat to fix first, with a brief for the first article.