beginner 30-45 minutes

Setup Guide: Superlines MCP, Sanity MCP, and AEO Agent for Non-Technical Users

A beginner-friendly walkthrough for connecting the Superlines and Sanity MCP servers to Cursor and Claude Desktop, and setting up the Superlines AEO Agent in your project.

View on GitHub
Summarise with AI:

This guide walks you through three separate setups:

  • Part A — Connecting the Superlines MCP server to Cursor and Claude Desktop so your AI assistant can analyze your AI search visibility, find content opportunities, audit webpages, and more.
  • Part B — Connecting the Sanity MCP server to Cursor and Claude Desktop so your AI assistant can read, write, and manage your Sanity content directly.
  • Part C — Setting up the Superlines AEO Agent in your Cursor project so it can run a daily content intelligence pipeline.

You do not need any programming experience. Each step includes exactly what to type or click.

Want the deep technical guide instead? If you are a developer who wants to understand the architecture and build the agent from scratch, see Build an Agentic AEO Content Pipeline.


Part A: Set up the Superlines MCP server

The Superlines MCP server connects your AI assistant to your AI search analytics data. Once connected, you can ask Cursor or Claude Desktop to show your brand visibility trends, find content opportunities, audit webpages for AI search readiness, analyze competitors, and generate strategic action plans — all in natural language.

The server provides 32 specialized tools organized into categories:

CategoryWhat you can do
Core MetricsBrand visibility, citation rates, share of voice, weekly trends
Webpage AnalysisAudit any URL for AI search readiness, optimize Schema.org markup
Competitive AnalysisSee who is winning AI citations, find competitive gaps
Content StrategyFind content opportunities, keyword research, topic analysis
Strategic ActionsGet AI-generated action plans and next-step recommendations
Account ManagementCreate brands, add tracking prompts, manage labels

What you need before starting

  1. A Superlines account on a paid plan (Starter, Growth, or Enterprise). Sign up at superlines.io.
  2. An API key from your Superlines dashboard. The key starts with sl_live_.
  3. Cursor and/or Claude Desktop installed on your computer.

How to get your Superlines API key

  1. Go to analytics.superlines.io and log in.
  2. Click the Settings icon (gear icon) in the bottom of the left sidebar.
  3. Click Organization Settings.
  4. Go to the API Keys tab.
  5. If you do not have a key yet, click Create API Key. Give it a name like “Cursor MCP” or “Claude Desktop”.
  6. Copy the key. It starts with sl_live_.

Write permissions (optional): By default, your API key is read-only — it can pull analytics data but cannot change anything. If you want your AI assistant to also create brands or add tracking prompts, you need to enable write permissions on the key. In the API Keys settings, click on your key and toggle on write:brands and/or write:prompts. See the setup guide for details.


Option 1: Set up Superlines MCP in Cursor

  1. Open Cursor.

  2. Open the Command Palette: press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows).

  3. Type “MCP” and select View: Open MCP Settings.

  4. Click + New MCP Server. This opens a file called mcp.json.

  5. Add the Superlines server. If the file is empty, paste this (replace YOUR_API_KEY with your actual key):

{
  "mcpServers": {
    "superlines": {
      "url": "https://mcpsse.superlines.io?token=YOUR_API_KEY",
      "transport": "sse"
    }
  }
}
  1. Save the file (Cmd + S on Mac, Ctrl + S on Windows).

  2. Cursor should automatically detect and start the server. You can verify in the MCP Settings panel — “superlines” should show a green status.

If you already have other MCP servers configured (like Sanity), add the superlines entry inside the existing mcpServers object:

{
  "mcpServers": {
    "Sanity": { "type": "http", "url": "https://mcp.sanity.io" },
    "superlines": {
      "url": "https://mcpsse.superlines.io?token=YOUR_API_KEY",
      "transport": "sse"
    }
  }
}

Option 2: Set up Superlines MCP in Claude Desktop

  1. Download and install Claude Desktop if you have not already. You need a Claude Pro subscription ($20/month) for MCP support.

  2. Open Claude Desktop.

  3. Go to Claude > Settings > Developer (on Mac) or File > Settings > Developer (on Windows).

  4. Click Edit Config. This opens a file called claude_desktop_config.json.

  5. Add the Superlines server (replace YOUR_API_KEY with your actual key):

{
  "mcpServers": {
    "superlines": {
      "url": "https://mcpsse.superlines.io?token=YOUR_API_KEY",
      "transport": "sse"
    }
  }
}
  1. Save the file and restart Claude Desktop completely (quit and reopen — not just close the window).

  2. Start a new conversation. You should see a tools icon (small hammer) near the text input area, confirming MCP servers are loaded.


Test the Superlines connection

After setup, test the connection by asking:

List my Superlines brands

If you see your brand(s) listed, the connection is working. Try a few more:

Show me my brand visibility trends for the last 4 weeks
Find content opportunities where I have low AI visibility
Audit this page for AI search readiness: https://yoursite.com

Troubleshooting Superlines MCP

ProblemSolution
”Authentication failed”Make sure your API key is correct and starts with sl_live_. Check for extra spaces.
”No data returned”You need at least one brand with tracked prompts set up in your Superlines account.
”Tool not found”Restart Cursor or Claude Desktop after configuration changes.
”Connection timeout”Check your internet connection. The server is at mcpsse.superlines.io.
”Plan not supported”MCP requires a paid Superlines plan (Starter, Growth, or Enterprise).
Tools load but no brand dataMake sure you include your brand name when asking questions, e.g., “Show metrics for YourBrand”.

For more details, see the full Superlines MCP setup guide and tools reference.


Part B: Set up the Sanity MCP server

The Sanity MCP server lets AI tools like Cursor and Claude Desktop interact with your Sanity content. Once connected, you can ask your AI assistant to query articles, create drafts, update documents, explore your schema, and more — all through natural language.

What you need before starting

  1. A Sanity account — Sign up for free at sanity.io if you do not have one.
  2. A Sanity project — You need at least one project with content. You can check your projects at sanity.io/manage.
  3. Cursor and/or Claude Desktop installed on your computer.

Option 1: Set up Sanity MCP in Cursor

There are two ways to do this. The automatic method is recommended.

  1. Open your terminal (on Mac: search for “Terminal” in Spotlight, or press Cmd + Space and type Terminal).

  2. Type the following command and press Enter:

npx sanity@latest mcp configure
  1. The tool will detect Cursor on your computer and ask you to confirm. Press Enter or type y to continue.

  2. It will use your existing Sanity login to set everything up automatically. If you are not logged in, it will ask you to log in first.

  3. Open Cursor. To verify it worked, open the Command Palette by pressing Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows), then type “MCP” and select View: Open MCP Settings. You should see “Sanity” listed as a server.

That is it. Cursor can now talk to your Sanity project.

Manual method

If the automatic method does not work, you can configure it by hand:

  1. Open Cursor.

  2. Open the Command Palette: press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows).

  3. Type “MCP” and select View: Open MCP Settings.

  4. Click + New MCP Server. This opens a file called mcp.json.

  5. Replace the contents of that file with:

{
  "mcpServers": {
    "Sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}
  1. Save the file (Cmd + S on Mac, Ctrl + S on Windows).

  2. Cursor will detect the new server and open a browser window asking you to log in to Sanity. Log in with your Sanity account and click Authorize.

  3. Go back to Cursor. The Sanity MCP server should now show as connected in the MCP Settings panel.

If you already have other MCP servers configured, do not replace the whole file. Instead, add the Sanity entry inside the existing mcpServers object:

{
  "mcpServers": {
    "your-existing-server": { ... },
    "Sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}

Option 2: Set up Sanity MCP in Claude Desktop

  1. Download and install Claude Desktop if you have not already (MCP is not available in the web version of Claude).

  2. Open your terminal and run:

npx sanity@latest mcp configure
  1. When it asks which editor to configure, select Claude Desktop (or Claude Code if that is what you are using).

  2. It will update your Claude Desktop configuration automatically.

  3. Quit Claude Desktop completely (not just close the window — right-click the dock icon and choose Quit, or use Cmd + Q on Mac).

  4. Reopen Claude Desktop. Start a new conversation and look for the tools icon (a small hammer icon) near the text input area. This confirms MCP servers are loaded.

Manual method for Claude Desktop

If the CLI method does not work, you can edit the config file directly:

  1. Open Claude Desktop.

  2. Go to Claude > Settings > Developer (on Mac) or File > Settings > Developer (on Windows).

  3. Click Edit Config. This opens a file called claude_desktop_config.json.

  4. Add the Sanity server to the mcpServers section:

{
  "mcpServers": {
    "Sanity": {
      "url": "https://mcp.sanity.io",
      "transport": "http"
    }
  }
}
  1. Save the file and restart Claude Desktop completely (quit and reopen).

  2. In a new conversation, Claude will prompt you to authenticate with Sanity via your browser the first time you use a Sanity tool.


Test the connection

After setting up either Cursor or Claude Desktop, test the connection by asking:

List all my Sanity projects

or:

Show me the schema for my Sanity project

If you see a list of your projects or schema types, the connection is working.


Troubleshooting Sanity MCP for Claude Desktop

Problem: Sanity MCP does not appear in Claude Desktop settings after setup

Quit Claude Desktop completely and reopen it. MCP servers only load on startup. Use Cmd + Q on Mac (not just closing the window), wait a few seconds, then reopen Claude Desktop. Start a new conversation — you should see a tools icon (small hammer) near the text input area confirming MCP servers are loaded.

Problem: Authentication errors (“Unauthorized” or “401”)

Your Sanity login token has expired. Run the configuration command again to refresh it:

npx sanity@latest mcp configure

When prompted, select Claude Desktop. This will generate a fresh auth token and update your configuration automatically.

Problem: Tools do not appear or “Tool not found” errors

  1. Quit Claude Desktop completely (Cmd + Q on Mac).
  2. Reopen it and start a new conversation.
  3. If tools still do not appear, check that your Sanity account has correct permissions for the project and dataset you are accessing.
  4. Verify the tools icon (hammer) appears near the text input — this confirms MCP servers loaded.

Problem: HTTP setup does not work (manual configuration)

If you manually configured Sanity MCP using the HTTP method and it is not connecting, try the alternative mcp-remote proxy approach in your claude_desktop_config.json:

{
  "mcpServers": {
    "Sanity": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.sanity.io",
        "--transport",
        "http-only"
      ]
    }
  }
}

Save the file and restart Claude Desktop completely.

Problem: Debugging connection issues

Check Claude Desktop’s MCP logs for detailed error messages:

tail -n 20 -F ~/Library/Logs/Claude/mcp*.log

This will show you real-time logs of what is happening when Claude Desktop tries to connect to Sanity. Look for error messages that indicate authentication failures, network timeouts, or configuration issues.

Troubleshooting Sanity MCP for Cursor

ProblemSolution
No tools appearOpen Command Palette > View: Open MCP Settings and check that Sanity shows a green status. If it shows red, click the restart button next to it.
OAuth login window does not appearClear MCP tokens in Cursor by running Cursor: Clear All MCP Tokens from the Command Palette, then restart.
”Unauthorized” or “401” errorYour login has expired. Run npx sanity@latest mcp configure again to refresh it.
”Tool not found” errorsVerify that your Sanity account has the correct permissions for the project you are accessing.

Part C: Set up the AEO Agent in Cursor

The Superlines AEO Agent is an AI-powered content pipeline that automatically analyzes your AI search visibility, audits your content, fact-checks claims, and creates optimized article drafts in your Sanity CMS. It runs a 7-phase daily pipeline using data from Superlines, Bright Data, and Sanity.

What you need before starting

You will need accounts and API keys from several services. Here is where to get each one:

ServiceWhat it is forWhere to sign upWhat you need
SuperlinesAI search analytics (brand visibility, citations, competitors)superlines.ioAPI key (starts with sl_live_)
AnthropicThe AI brain that powers the agent (Claude)console.anthropic.comAPI key (starts with sk-ant-)
OpenAIUsed for text embeddings (memory/search)platform.openai.comAPI key (starts with sk-)
Bright DataWeb scraping for competitor researchbrightdata.comAPI token
SanityYour content management systemsanity.io/manageProject ID, dataset name, write token
Node.js (v22.13+)Runs the agent on your computernodejs.orgInstall the LTS version

Cost note: Running the agent daily costs roughly $0.50–$2 per run with Claude Sonnet, or $1–$4 with Claude Opus. Superlines, Bright Data (free tier), and Sanity (free tier) are included or free.


Step 1: Install Node.js

The agent requires Node.js version 22.13 or higher. If you are not sure whether you have it:

  1. Open your terminal.

  2. Type node --version and press Enter.

  3. If you see a version number like v22.13.0 or higher, you are good. Skip to Step 2.

  4. If you see an error or a lower version number, go to nodejs.org, download the LTS version, and install it. Then close and reopen your terminal.


Step 2: Download the agent

  1. Open your terminal.

  2. Navigate to the folder where you want to put the project. For example, to put it on your Desktop:

cd ~/Desktop
  1. Download the agent:
git clone https://github.com/Superlines/aeo-agent.git
  1. Go into the project folder:
cd aeo-agent
  1. Install the dependencies:
npm install

This will download everything the agent needs. It may take a minute or two.


Step 3: Open the project in Cursor

  1. Open Cursor.

  2. Go to File > Open Folder (or Cmd + O on Mac).

  3. Navigate to the aeo-agent folder you just downloaded and click Open.

You should see the project files in Cursor’s sidebar.


Step 4: Set up your API keys

The agent needs your API keys to connect to all the services. These are stored in a file called .env that stays on your computer and is never shared.

  1. In Cursor’s sidebar, find the file called .env.example.

  2. Right-click it and select Duplicate (or copy it). Rename the copy to .env (just .env, with no other name before the dot).

    Alternatively, you can do this in the terminal:

cp .env.example .env
  1. Open the .env file in Cursor. You will see a list of settings that look like this:
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
SUPERLINES_API_KEY=sl_live_...
  1. Replace each placeholder value with your real API key. Here is where to find each one:

Anthropic API key

  1. Go to console.anthropic.com.
  2. Click API Keys in the sidebar.
  3. Click Create Key, give it a name, and copy the key.
  4. Paste it after ANTHROPIC_API_KEY=.

OpenAI API key

  1. Go to platform.openai.com/api-keys.
  2. Click Create new secret key, give it a name, and copy the key.
  3. Paste it after OPENAI_API_KEY=.

Superlines API key

  1. Go to your Superlines dashboard.
  2. Click the Settings icon (gear icon) in the sidebar.
  3. Go to API Keys.
  4. Copy your API key (it starts with sl_live_).
  5. Paste it after SUPERLINES_API_KEY=.

Bright Data API token

  1. Go to brightdata.com and log in.
  2. Go to your account settings and find your API token.
  3. Paste it after BRIGHTDATA_API_TOKEN=.

Sanity credentials

  1. Go to sanity.io/manage.
  2. Click on your project.
  3. Project ID: Shown at the top of the project page. Paste it after SANITY_PROJECT_ID=.
  4. Dataset: Usually production. Paste it after SANITY_DATASET=.
  5. Write token: Go to Settings > API > Tokens. Click Add API Token. Give it a name like “AEO Agent”, set permissions to Editor, and click Save. Copy the token and paste it after SANITY_WRITE_TOKEN=.

Pipeline configuration

At the bottom of the .env file, set these values:

  • SUPERLINES_BRAND_NAME= — Your brand name exactly as it appears in Superlines (e.g., Superlines).
  • SUPERLINES_DOMAIN_ID= — Your domain ID from Superlines. You can find this by asking in Cursor with the Superlines MCP: “List my Superlines brands and show me the domain IDs.”
  • SITE_DOMAIN= — Your website domain without https:// (e.g., superlines.io).

Optional settings

These are not required but useful:

  • VERCEL_DEPLOY_HOOK= — If your site is on Vercel, you can add a deploy hook URL so the agent triggers a rebuild after updating content. Find this in Vercel > Project Settings > Git > Deploy Hooks.
  • SLACK_WEBHOOK_URL= — If you want daily reports sent to Slack. Create a webhook at api.slack.com/messaging/webhooks.
  1. Save the file (Cmd + S on Mac, Ctrl + S on Windows).

Important: The .env file contains sensitive API keys. Never share it, commit it to git, or post it online.


Step 5: Run the agent

  1. Open the terminal in Cursor (press Ctrl + ` or go to Terminal > New Terminal).

  2. Make sure you are in the aeo-agent folder. The terminal prompt should show something like ~/Desktop/aeo-agent.

  3. Run the agent:

npm start
  1. The agent will now run its 7-phase pipeline. This takes 5 to 15 minutes depending on how many articles you have.

  2. You will see progress messages in the terminal as each phase completes. When it finishes, it creates a report in the data/reports/ folder.


What happens when the agent runs

The agent goes through 7 phases in order:

PhaseWhat it does
1. Intelligence GatheringReads your AI search data from Superlines — brand visibility, citations, competitive gaps
2. Competitive Deep DiveFinds competitor URLs winning AI citations and scrapes their content for analysis
3. Content Health AuditScans your Sanity articles and flags outdated content
4. Fact CheckExtracts pricing, statistics, and feature claims from your articles and verifies them online
5. Industry InsightsSearches for trending topics, Reddit discussions, and industry reports
6. Data StorytellingFinds interesting patterns in your analytics data for embedding in articles
7. Content ActionsCreates new article drafts, updates existing articles, and fixes incorrect facts in Sanity

All new articles are created as drafts in Sanity. The agent never publishes anything automatically — you always review and publish manually.


Troubleshooting the AEO Agent

ProblemSolution
command not found: npmNode.js is not installed. Download it from nodejs.org and install the LTS version.
command not found: gitGit is not installed. On Mac, open Terminal and type xcode-select --install. On Windows, download from git-scm.com.
Error about Node.js versionYou need version 22.13 or higher. Run node --version to check. Update at nodejs.org.
Missing environment variable errorOpen your .env file and make sure all required keys are filled in. The error message will tell you which one is missing.
Invalid API key errorDouble-check that you copied the full key with no extra spaces. Anthropic keys start with sk-ant-, Superlines keys start with sl_live_.
SANITY_WRITE_TOKEN errorYour token may not have write permissions. Go to Sanity > Settings > API > Tokens and create a new one with Editor role.
Agent seems stuckSome phases take a few minutes. Wait at least 15 minutes before assuming something is wrong. If nothing happens for 5+ minutes, press Ctrl + C to stop and re-run npm start.
npm install failsTry deleting the node_modules folder and running npm install again. If that does not work, check your Node.js version.

Summary

After completing this guide, you should have:

  • Superlines MCP connected to Cursor and/or Claude Desktop — Ask your AI assistant about your AI search visibility, content opportunities, competitive gaps, and more.
  • Sanity MCP connected to Cursor and/or Claude Desktop — Ask your AI assistant to query, create, or update your Sanity content using natural language.
  • The AEO Agent running locally — A daily pipeline that monitors your AI search visibility, audits your content, and creates optimized drafts in Sanity.

Tags