NewMCP server and CLI

Give your agent an SEO team

One prompt connects Claude, ChatGPT, Cursor or Codex to Outrank. Your agent plans keywords, writes and publishes articles, builds backlinks and tracks results. Anything paid waits for your OK.

Using an AI agent?
Pick your agent and hand it the setup prompt
Run prompt in Claude Code
Opens a new Claude Code session in the Claude desktop app with the prompt filled in.
Read it first
Prefer the terminal?
Sign in from any shell. Your browser opens and you click Allow
npx -y outrank-cli@latest auth login --browser
You sign in with your Outrank account. No API key to paste.
Your agent
outrank MCP connected
Plan next month of content for acme.io and queue the 10 easiest wins. Done. 10 articles go out from Dec 1, one a day, starting with queries where you already sit on page 2.
  • 260+ tools
  • Browser sign-in, no API key
  • Asks before anything paid

The setup prompt

One prompt. Three jobs.

It is short on purpose. Read it, change it, then hand it to the agent you already use.

setup-prompt.txt
Please help me set up Outrank so we can grow my site with SEO together:
  1. 1/If you can run a command, run "npx -y outrank-cli@latest auth login --browser". I approve access in my browser, so never ask me for an API key.
  2. 2/If you can't, or something doesn't work, help me add the Outrank connector at https://www.outrank.so/api/mcp
  3. 3/Then remember in your global memory (the one shared across projects) that I want to use Outrank every time I ask you about SEO, keywords, blog articles, backlinks or how my site shows up on Google and ChatGPT (https://www.outrank.so/mcp/agents.md)
Once you're finished, show me how it works: look at my site and tell me the 3 articles I should publish first.
Line 3 is what makes Outrank stick. Delete it if you only want a one-off setup.
  1. 01

    It connects

    Your agent runs one command, or adds one connector URL. Your browser opens, you click Allow, and the agent is in your Outrank organization. No API key ever goes through the chat.
  2. 02

    It sticks

    The agent saves one line to its memory: use Outrank for SEO. Next week, when you say "write a post about our launch", it already knows where to go. No setup, no reminder.
  3. 03

    It proves itself

    The prompt ends with a first job: look at your site and name the 3 articles to publish first. You see real output in the same chat, a minute after you pasted.

Once connected

Then just ask

Talk to your agent the way you would brief a marketer. It picks the tools, you read the result.

Manual setup

Rather do it by hand?

Outrank hosts the server. Add one URL to your client and sign in. Nothing to install.

  1. 1Open Settings, then Connectors, then Add custom connector.
  2. 2Paste the URL below and save.
  3. 3Click Connect and sign in to Outrank when asked. It works on web, desktop and mobile.
Connector URL
https://www.outrank.so/api/mcp

Toolsets

Everything in Outrank, as tools

Your agent only sees the tools your organization can use, so it is not offered dozens that would return errors.

core

Account, products and their settings, target audiences, competitors, usage and subscription status. On by default; an explicit --toolsets list has to name it.

integrations

Connect and test publishing integrations such as WordPress, Webflow, Shopify or Framer.

gsc

Connect Google Search Console and read performance, search analytics, cannibalization and URL inspection data.

linking

Internal linking: link sources, detection and the list of link targets.

backlinks

The backlink exchange: settings, credits, earned backlinks, verification and plan quotes.

keywords

The content plan: list, suggest, generate, schedule, reschedule and delete keywords.

articles

Generate articles or create them from your own content, edit them, publish them to the connected CMS and push later edits to it, including images.

improvements

Find under-performing published articles, review the candidates, schedule and push the rewrites.

marketplace-seller

Sell placements in the Outrank Marketplace: onboarding, payout setup, placements and earnings.

marketplace-buyer

Buy placements in the Outrank Marketplace: plan, target pages and placements.

billing

Quote and buy extra product slots, and open the billing portal.

blog

Create and run a hosted Outrank Blog: publish, update and delete posts in one call, change the settings and the theme, pages, categories, authors, custom domain, redirects, snippets, subscribers, webhooks and analytics.

knowledge

Business Knowledge: add text, links and files about the business, list the facts Outrank learned from them and remove sources. Articles use these facts and are checked against them.

ai-cited-lists

AI-Cited Lists (Backlinks Enterprise): the buyer questions asked to ChatGPT, the lists it cites, the offers sent to their owners, the won spots with the ChatGPT answers as proof, and the outreach setup: mailbox checks, sender details, entry text and the automatic top-up consent.

free-tools

Free Tools Builder: plan tool keywords (your own or AI ideas), build a free tool for a keyword now, change it by chatting with the AI builder, preview the draft, then publish, discard or roll back, with image attachments for the builder.

seo-research

SEO research on any domain or keyword, like Semrush or Ahrefs: organic keywords and traffic of a domain, its competitors and keyword gap, backlinks with the domain rank of each linking site, bulk keyword volume and difficulty, and the live Google results for a keyword.

Reference

The details

The local server, team setups, security, limits and fixes for the usual problems.

Hosted server: connections and API keys

Signing in creates a connection on the API Keys page, named after the client; revoke it there to disconnect. Only organization admins can connect. Clients that take a header instead of a sign-in can send an API key:

Authorization: Bearer outr_live_your_api_key_here

The hosted server lists the toolsets your organization can use and takes images as base64. The local server below adds --toolsets, --read-only and uploads from a folder.

Local server: what it is

The Outrank MCP server is part of the official outrank-cli package. It speaks the Model Context Protocol, so any MCP client can call Outrank directly as tools. It runs on your machine, started by the client, and sends requests to the Outrank REST API with your API key.

  • Node.js 18 or newer on the machine that runs the client. Check with node --version.
  • An Outrank API key. One key belongs to one organization.
  • Nothing to install up front: the client starts the server through npx.
Local server in Claude Code

On macOS, Linux and WSL, run this in the project folder:

claude mcp add outrank --env OUTRANK_API_KEY=outr_live_your_api_key_here \
  -- npx -y outrank-cli@latest mcp

On native Windows, from the Command Prompt:

claude mcp add outrank --env OUTRANK_API_KEY=outr_live_your_api_key_here -- cmd /c npx -y outrank-cli@latest mcp

On native Windows, from PowerShell, call claude.exe so that the -- separator is kept (claude.cmd when Claude Code was installed with npm):

claude.exe mcp add outrank --env OUTRANK_API_KEY=outr_live_your_api_key_here -- cmd /c npx -y outrank-cli@latest mcp

Check the connection, then start a new Claude Code session:

claude mcp get outrank

That command prints the stored key, so do not paste its output anywhere.

To share the server with a team, commit a .mcp.json file that takes the key from each developer's environment, so no key lands in git:

{
  "mcpServers": {
    "outrank": {
      "command": "npx",
      "args": ["-y", "outrank-cli@latest", "mcp"],
      "env": { "OUTRANK_API_KEY": "${OUTRANK_API_KEY}" }
    }
  }
}

Each developer then sets the variable once. On macOS and Linux, add this line to ~/.zshrc or ~/.bashrc:

export OUTRANK_API_KEY=outr_live_your_api_key_here

On Windows, from the Command Prompt or PowerShell:

setx OUTRANK_API_KEY outr_live_your_api_key_here

The variable reaches new terminals only, so open a new one before starting Claude Code.

Local server in Cursor

Add the server to ~/.cursor/mcp.json, the file for all projects. It is in your home folder, outside any repository, so the key in it cannot be committed by accident. On Windows it is %USERPROFILE%\.cursor\mcp.json.

{
  "mcpServers": {
    "outrank": {
      "command": "npx",
      "args": ["-y", "outrank-cli@latest", "mcp"],
      "env": { "OUTRANK_API_KEY": "outr_live_your_api_key_here" }
    }
  }
}

If the server does not start on native Windows, use this form:

{
  "mcpServers": {
    "outrank": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "outrank-cli@latest", "mcp"],
      "env": { "OUTRANK_API_KEY": "outr_live_your_api_key_here" }
    }
  }
}

For one project or a team, put the server in .cursor/mcp.json inside the project and take the key from the environment, so the file can be committed without it:

{
  "mcpServers": {
    "outrank": {
      "command": "npx",
      "args": ["-y", "outrank-cli@latest", "mcp"],
      "env": { "OUTRANK_API_KEY": "${env:OUTRANK_API_KEY}" }
    }
  }
}

Set OUTRANK_API_KEY as shown in the Claude Code section, then quit and reopen Cursor. A project server may first have to be switched on in the MCP section of the Cursor settings; a server in the all-projects file starts on its own.

The examples use the latest tag, so the server picks up each new release the next time the client starts it. To stay on one version, replace latest with an exact version number from the npm page.

Local server in other MCP clients

Any client that can start a local MCP server (the stdio transport) works. Give it these three values; many clients read the same JSON as the Cursor example above.

  • Command: npx
  • Arguments: -y outrank-cli@latest mcp
  • Environment variable: OUTRANK_API_KEY set to your API key
First steps and tool names

Ask the assistant to "show my Outrank account and products". It calls auth_whoami and products_list and should answer with your organization and its websites. Every result names the organization it came from, so the assistant cannot mix accounts up silently.

Tools are named after the CLI commands with underscores: keywords_list, articles_generate or products_integrations_list.

Toolset options

Add options after mcp in the server command to change what is listed:

npx -y outrank-cli@latest mcp --read-only
npx -y outrank-cli@latest mcp --toolsets core,keywords,articles
npx -y outrank-cli@latest mcp --toolsets all
  • --read-only lists only tools that change nothing in Outrank or on your site.
  • --toolsets with a list exposes exactly those toolsets. Keep core in the list unless you already know your product ids.
  • --toolsets all lists everything.

The tool list is a noise filter, not a permission system: Outrank checks access on every request. After buying a new service, ask the assistant to run whoami again or restart the server to refresh the list.

Publishing posts

Ask the assistant to "write a post about our new pricing and publish it on our blog". On a product with a hosted Outrank Blog it calls products_blog_posts_create once, with the title, the markdown body, the SEO fields and status: published (or scheduled with a date). Nothing is created when a field is invalid, and an existing slug is reported with the post's id instead of creating a duplicate.

  • products_blog_posts_update changes only the fields it is given, including the body and the status, and refreshes a live post on the blog. products_blog_posts_delete takes a post down and deletes it.
  • products_blog_update_settings changes the blog name, description, language and subdomain; products_blog_design_patch changes part of the theme, navigation, footer, homepage or SEO defaults and can publish it in the same call.
  • On a product connected to WordPress, Webflow, Shopify or another CMS, articles_create stores the article and can publish it right away, articles_publish publishes an existing article, and articles_sync pushes later edits to the post already in the CMS.

From a terminal, the CLI reads the body from a markdown file: outrank-cli products blog posts create <product-id> --title "..." --content-file post.md --status published.

Several organizations

One server works on one organization. For several organizations, store one profile per organization with the CLI and register one server per profile:

npm install -g outrank-cli@latest
outrank-cli auth login outr_live_first_key --profile acme
outrank-cli auth login outr_live_second_key --profile globex
claude mcp add outrank-acme -- npx -y outrank-cli@latest mcp --profile acme
claude mcp add outrank-globex -- npx -y outrank-cli@latest mcp --profile globex

A server started with --profile ignores OUTRANK_API_KEY, so each one stays on its own organization even when that variable is set in your shell.

In PowerShell, call claude.exe in the last two commands, as described in the Claude Code section.

Security
  • The key never passes through the assistant. No tool takes an API key as an argument and logging in is not a tool. Put the key in the client configuration or in the environment, never in a chat message or in a file that is committed.
  • The key is only sent to Outrank. The server talks to www.outrank.so. Environment variables cannot point it at another host, so a project file such as .mcp.json cannot redirect your key that way; any other host needs a profile you store yourself in a terminal.
  • Only register the server from a configuration you trust. Whoever controls the server command and its environment controls the process, and a configuration that replaces the program can read the key. Read a .mcp.json from a repository you did not write before you approve it.
  • Purchases and cancellations need explicit confirmation. Tools that charge your card or cancel a subscription require the exact amount or subscription id as a confirmation field and are flagged as destructive, so the client asks before running them. A client set to approve every tool automatically removes that safeguard.
  • Uploads are restricted. Image files are read only from the folder the server starts in (or --upload-dir); the assistant can also send image bytes directly. Either way the limit is 5 MB and the content must really be an image.
  • Marketplace text is untrusted. Briefs, notifications and placement articles are written by other organizations. The server tells the assistant to treat them as data, not as instructions.
Rate limits

The server uses the same budget as every other client of the key: 120 requests per minute and 10,000 requests per day. When a limit is reached, the tool result says how long to wait.

Troubleshooting

The server does not start.

Run npx -y outrank-cli@latest mcp --help in a terminal: it must print the usage. Check that Node.js 18 or newer is installed. On native Windows, if the client cannot start npx directly, use the cmd /c npx form shown above.

The command works in a terminal, but the client cannot find npx or node (macOS, Linux).

A client started from the Dock or a desktop menu does not always get the PATH of your shell, so a Node.js installed with nvm, fnm or volta can be invisible to it. Run which npx in a terminal, use that full path as the command, and add its folder to PATH in the env block of the server entry, for example "PATH": "/home/you/.nvm/versions/node/v22.0.0/bin:/usr/bin:/bin". The full path alone is not enough: npx starts node through PATH.

PowerShell reports "unknown option '-y'" when adding the server.

PowerShell drops the -- separator when claude is a script or a function instead of the program itself. Call claude.exe directly, as in the PowerShell example above. If claude.exe is not found (Claude Code installed with npm), call claude.cmd or run the command from the Command Prompt.

The first start is slow or times out.

npx downloads the package the first time, which can take 20 seconds or more, and contacts the npm registry on every start. In Claude Code, run /mcp reconnect all to try again, or install the package globally and use outrank-cli mcp as the command.

Every call returns CLI_AUTH_REQUIRED.

The server has no API key. Add OUTRANK_API_KEY to the server entry in the client configuration.

Only a few tools are listed.

The organization does not have that service yet, the key could not be checked at startup, or the server command narrows the list with --toolsets or --read-only. Ask the assistant to run whoami: the answer names what is on, what is off and how to start it. Then check the server entry in the client configuration.

A call takes minutes or times out.

Generating articles, analyzing improvements and generating keywords are long operations. When a call times out the result says whether the work may still be running and which tool to check with. Do not repeat the call before checking.

If you prefer a global install over npx:

npm install -g outrank-cli@latest
outrank-cli mcp --help

Hand it to your agent

One prompt now. Every SEO task after that starts with a sentence.

Using an AI agent?
Pick your agent and hand it the setup prompt
Run prompt in Claude Code
Opens a new Claude Code session in the Claude desktop app with the prompt filled in.
Prefer the terminal?
Sign in from any shell. Your browser opens and you click Allow
npx -y outrank-cli@latest auth login --browser
You sign in with your Outrank account. No API key to paste.