SurfRank MCP Server

SurfRank MCP Server

Enables AI assistants to access SurfRank's AI visibility analytics platform through 24 tools. It allows agents to run AI-visibility reports, research keywords, track competitors, and manage projects directly from chat interfaces.

Category
Visit Server

README

SurfRank MCP Server

Let your AI agent run AI-visibility reports, research keywords, and track competitors on SurfRank β€” directly from the chat window.

npm version license node

This package exposes the SurfRank public API as Model Context Protocol (MCP) tools, so any MCP-compatible AI assistant β€” Claude Desktop, Claude Code, Cursor, Windsurf, ChatGPT MCP connectors, and others β€” can call SurfRank on your behalf.


What is SurfRank?

SurfRank measures how visible your brand is inside AI answers (ChatGPT, Perplexity, Gemini, Claude, Grok, DeepSeek, Meta AI). It runs your tracked keywords against each engine, scores your mentions against competitors, and surfaces the content opportunities that would move the needle.

What is MCP?

The Model Context Protocol is an open standard from Anthropic that lets AI agents discover and call external tools. Install this server once, and your agent gets 24 new abilities β€” no plugin APIs, no OAuth dance, no glue code.


What you can ask your agent once this is connected

πŸ’¬ "Create a SurfRank project for surfrank.ai in the SaaS industry, then track these 10 keywords…"

πŸ’¬ "What did my latest AI visibility report show? Which engines are missing my brand?"

πŸ’¬ "Run a quick test for competitor.com and compare it to my score."

πŸ’¬ "List my top 5 content opportunities and draft articles for the highest-impact ones."

The agent picks the right tool, calls the SurfRank API with your key, and replies in natural language. Credits come out of your SurfRank account at the same rate as direct API calls.


Requirements

  • Node.js 18 or newer (required by the MCP SDK).
  • A SurfRank API key on the Pay As You Go plan. Generate one at app.surfrank.ai/api-management.
  • An MCP-compatible client (see the Configuration section).

Install

Run ad-hoc with npx β€” no install needed:

npx -y @surfrank/mcp-server

Or install globally:

npm install -g @surfrank/mcp-server

Configuration

Pick your client below and paste the snippet into its MCP config file.

Claude Desktop

Edit your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "surfrank": {
      "command": "npx",
      "args": ["-y", "@surfrank/mcp-server"],
      "env": {
        "SURFRANK_API_KEY": "sr_your_key_here"
      }
    }
  }
}

Restart Claude Desktop. You should see surfrank appear in the MCP servers menu.

Cursor

Edit ~/.cursor/mcp.json (or use Settings β†’ MCP β†’ Add server):

{
  "mcpServers": {
    "surfrank": {
      "command": "npx",
      "args": ["-y", "@surfrank/mcp-server"],
      "env": {
        "SURFRANK_API_KEY": "sr_your_key_here"
      }
    }
  }
}

Claude Code

claude mcp add surfrank -- npx -y @surfrank/mcp-server
export SURFRANK_API_KEY=sr_your_key_here

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "surfrank": {
      "command": "npx",
      "args": ["-y", "@surfrank/mcp-server"],
      "env": { "SURFRANK_API_KEY": "sr_your_key_here" }
    }
  }
}

Available tools

The server exposes every SurfRank public-API endpoint as a tool (24 in total). Your agent discovers them automatically β€” you don't need to list them in your prompt.

Category Tools
Projects list_projects, get_project, create_project, update_project, delete_project
Keywords list_keywords, add_keyword, add_keywords_bulk, delete_keyword
Reports trigger_report, list_reports, get_report, get_latest_analyses
Quick Test run_quick_test, list_quick_tests, get_quick_test, select_quick_test_keywords
Keyword Research research_keyword, list_keyword_research, get_keyword_research
Competitors list_competitors, add_competitor, delete_competitor
Opportunities list_opportunities

Each tool maps 1:1 to a REST endpoint under https://api.surfrank.ai/api/v1/public/*.


Scoped API keys

If you generate a project-scoped API key, the MCP server can only operate on that project. Any tool call that references a different project ID is rejected with a 403 from the SurfRank API, and the error surfaces verbatim in the agent's response.

This is the recommended setup when you're connecting a single workspace or a teammate to a single brand.


Credit usage

Credits are deducted from your SurfRank account per the same pricing as direct API calls:

Operation Cost
Quick test 1 credit flat
Keyword research 0.5 Γ— number of engines
Report trigger 0.3 Γ— keywords Γ— engines
Everything else (list / get / update) free

Every tool response includes a credits object so your agent (and you) can track usage in real time.


Environment variables

Variable Required Default Purpose
SURFRANK_API_KEY βœ… β€” Your API key (sr_…)
SURFRANK_API_URL β€” https://api.surfrank.ai/api/v1/public Override for staging / local development

Debugging

Use the official MCP inspector to poke at the server directly β€” useful when onboarding a new client or diagnosing a connection issue:

SURFRANK_API_KEY=sr_your_key_here \
  npx @modelcontextprotocol/inspector npx @surfrank/mcp-server

The inspector opens a browser UI where you can list tools and call them manually, exactly as an AI agent would.


Security notes

  • API keys are shown once on creation and stored as SHA-256 hashes on SurfRank's servers. If you lose a key, revoke and regenerate it β€” it can't be recovered.
  • Credentials stay in your local MCP config file. This package never writes them to disk and never phones home.
  • Each API key is rate-limited to 60 requests per minute. Exceeding it returns HTTP 429.

Links


License

MIT Β© SurfRank Pte. Ltd. β€” see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured