Serpstat API MCP Server

A TypeScript server that integrates Serpstat SEO API with Anthropic's Model Context Protocol (MCP), enabling AI assistants like Claude to access

Local serverstdioTypeScript

What is the Serpstat API MCP server?

Serpstat API MCP server exists for a simple reason — assistants are far more useful when they can act on Serpstat API directly instead of describing what you should do. A TypeScript server that integrates Serpstat SEO API with Anthropic's Model Context Protocol (MCP), enabling AI assistants like Claude to access comprehensive SEO data and analysis tools.

What you get

The Model Context Protocol (MCP) is an open standard developed by Anthropic that enables AI assistants to securely connect to external data sources and tools. This server implements MCP to provide Claude and other compatible AI assistants with access to Serpstat's powerful SEO analytics API.

  • 🔍 Comprehensive SEO Analysis: Access domain info, keyword research, competitor analysis, and backlink data
  • Input Validation: Robust parameter validation using Zod schemas
  • 📊 Event Logging: Detailed logging with Winston for debugging and monitoring
  • ⚙️ Flexible Configuration: Environment-based configuration with sensible defaults
  • 🧪 Well Tested: Jest tests for parameter validation and business logic
  • 🚀 TypeScript: Full type safety throughout the codebase

Setting it up

The server ships on npm as @serpstat/serpstat-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Serpstat API is connected, these are the calls the assistant has available:

  • domain — Domain analysis tools (domain info, competitors, domain keywords, etc.)
  • keywords — Keyword research tools (keyword suggestions, search volume, difficulty, etc.)
  • backlinks — Backlink analysis tools (backlink summary, anchors, referring domains, etc.)
  • url — URL analysis tools (URL traffic, competitors, keywords, etc.)
  • projects — Project management tools (create, list, delete projects)
  • credits — Credits and usage monitoring tools
  • audit — Site audit tools (full site SEO audit, error reports, etc.)
  • page-audit — One-page audit tools (single page analysis, on-page SEO, etc.)
  • get_domains_info — Get SEO information for multiple domains
  • get_domain_competitors — Get list of competitor domains
  • get_domain_keywords — Get keywords that domain ranks for
  • get_domain_urls — Get URLs within a domain and their keyword counts

Configuration and credentials

You will need 5 environment variables: SERPSTAT_API_TOKEN, LANG, LC_ALL, SERPSTAT_ENABLED_CATEGORIES, SERPSTAT_API_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js 18.0.0 or higher (Download Node.js) - Valid Serpstat API token (get one from Serpstat) - Compatible AI Assistant: Claude Desktop, Gemini CLI, or any MCP-compatible client

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Serpstat API.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the serpstat api mcp server does with a few real requests.

Choosing this one

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Serpstat API's toolset — domain, keywords, backlinks and 11 more — is a fair guide to whether it matches your workflow.

This entry was verified against Serpstat API's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
domainDomain analysis tools (domain info, competitors, domain keywords, etc.)
keywordsKeyword research tools (keyword suggestions, search volume, difficulty, etc.)
backlinksBacklink analysis tools (backlink summary, anchors, referring domains, etc.)
urlURL analysis tools (URL traffic, competitors, keywords, etc.)
projectsProject management tools (create, list, delete projects)
creditsCredits and usage monitoring tools
auditSite audit tools (full site SEO audit, error reports, etc.)
page-auditOne-page audit tools (single page analysis, on-page SEO, etc.)
get_domains_infoGet SEO information for multiple domains
get_domain_competitorsGet list of competitor domains
get_domain_keywordsGet keywords that domain ranks for
get_domain_urlsGet URLs within a domain and their keyword counts
get_domain_regions_countGet keyword count by region for a domain
get_domain_uniq_keywordsGet unique keywords for two domains not ranked by a third domain

How to install the Serpstat API MCP server

{
   "mcpServers": {
      "serpstat": {
         "command": "npx",
         "args": ["-y", "@serpstat/serpstat-mcp-server"],
         "env": {
            "SERPSTAT_API_TOKEN": "YOUR_SERPSTAT_API_TOKEN_HERE",
            "LANG": "en_US.UTF-8",
            "LC_ALL": "en_US.UTF-8"
         }
      }
   }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 18.0.0 or higher (Download Node.js) - Valid Serpstat API token (get one from Serpstat) - Compatible AI Assistant: Claude Desktop, Gemini CLI, or any MCP-compatible client
VariableDescriptionRequired
SERPSTAT_API_TOKENCredential the server authenticates with.Yes
LANGConfiguration value read at startup.Optional
LC_ALLConfiguration value read at startup.Optional
SERPSTAT_ENABLED_CATEGORIESConfiguration value read at startup.Optional
SERPSTAT_API_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Serpstat API to domain.
  • Use Serpstat API to keywords.
  • Use Serpstat API to backlinks.

Frequently asked questions

It connects Serpstat API to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (domain, keywords, backlinks, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Serpstat API directly.