SERPtag MCP Server — Connect AI Tools to Your Rankings
SERPtag Model Context Protocol (MCP)
The Model Context Protocol (MCP) gives your local AI clients like Cursor, Claude Desktop, and VS Code extensions real-time access to your ranking statistics and search volumes.
What is SERPtag MCP?
MCP is an open standard developed by Anthropic that allows local LLMs to securely call specialized tools. Instead of manual copy-pasting or CSV downloads, your AI workspace calls these tools dynamically to fetch rank tracking information.
SERPtag hosts a secure cloud MCP server at: https://mcp.serptag.com/mcp. For local apps that do not support remote HTTP servers, you can bridge connection using our NPM runner.
Requirements
To connect AI assistants to your rankings, you must ensure:
- An active Agency or Enterprise plan (2500+ keywords).
- An active API key from docs.serptag.com/create-an-api-key or Settings > MCP Server.
- Local installation of Node.js v18+ (required to run the NPM bridge command).
- An MCP client interface installed (e.g., Cursor Editor, Claude Desktop, or Roo-Code).
Generating API Keys
Your local configuration loads rankings using secure API credentials.
- Generate Key
Follow Create an API Key on docs.serptag.com, or generate one in Settings > API Keys. - Copy Full String
Make sure to copy the full string immediately (starts withsk_live_...). It will only be shown once. - Load Config
Paste the key as the value for theSERPTAG_API_KEYvariable in your configuration setup.
Installation
You do not need to install the package globally. Your workspace runs it on-demand via the Node package executor command:
npx -y serptag-mcp-server
Merge the JSON block below into your MCP client config folder. Be sure to replace the placeholder key with your actual live API key:
{
"mcpServers": {
"serptag": {
"command": "npx",
"args": [ "-y", "serptag-mcp-server" ],
"env": {
"SERPTAG_API_KEY": "sk_live_your_key_here"
}
}
}
}
Cursor Configuration
Cursor is designed to read remote SSE endpoints natively. To configure it:
- Open Cursor and navigate to Settings (Gear icon) > Features > MCP.
- Click + Add New MCP Server.
- Name the server:
serptag - Set type to:
SSE - Set URL to:
https://mcp.serptag.com/mcp - Click Add Header: key is
Authorization, value isBearer [Your API Key].
Claude Desktop Configuration
Claude Desktop runs local MCP clients. Add the serptag runner inside the server configuration file:
- macOS Config path:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows Config path:
%APPDATA%\Claude\claude_desktop_config.json
Restart your Claude Desktop application after saving the file to activate the configuration.
VS Code Integration
If you use extensions like Cline, Roo-Code, or Continue in VS Code, append the following block to your local MCP settings workspace:
{
"servers": {
"serptag": {
"command": "npx",
"args": [ "-y", "serptag-mcp-server" ],
"env": {
"SERPTAG_API_KEY": "sk_live_your_key_here"
}
}
}
}
Windsurf Configuration
Windsurf utilizes the standard stdio interface. Paste the configuration block inside your Windsurf MCP configuration settings:
Advanced — Remote HTTP
For developers building custom integrations (such as python agents or LangChain scripts) that support direct SSE/HTTP connection protocols, connect using:
{
"mcpServers": {
"serptag": {
"url": "https://mcp.serptag.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Claude Code CLI command: claude mcp add --transport http serptag https://mcp.serptag.com/mcp
Available Tools (v1)
The MCP server exposes 14 read-only actions for querying active rank tracking data:
| Tool | Description |
|---|---|
| list_projects | List all rank-tracking projects with keyword counts and domain |
| search_projects | Find projects by name or domain |
| get_project | Full details for one project including keywords summary |
| list_keywords | Tracked keywords with current rank, volume, change, and URL |
| search_keywords | Search keywords by text across all or one project |
| get_keyword | One keyword's current rank, volume, movement, and metadata |
| get_keyword_history | Ranking position history over time |
| get_keyword_volume_history | Search volume history chart data |
| get_top_10_keywords | All keywords ranking in positions 1–10 |
| get_project_graph | Project performance graph between two dates (YYYY-MM-DD) |
| get_project_alerts | Alert settings and configuration for a project |
| get_rank_compare | Compare keyword ranks across time periods |
| list_keywords_by_page | Keywords grouped by ranking URL (Pages view) |
| get_account_info | Account plan, usage, refresh limits, and subscription stats |
Upcoming Write operations
| add_keywords | Add keywords to a project |
| create_project | Create a new rank-tracking project |
| refresh_keywords | Trigger an on-demand rank refresh |
| generate_report | Generate an SEO ranking report |
Example Prompts
Try prompting your AI assistant using these query templates:
- "Show me all my SERPtag projects"
- "What are the top keywords for my Acme project?"
- "How has the ranking for 'best seo tool' changed over the last 30 days?"
- "Which keywords dropped the most this week?"
- "Show my top 10 rankings across all projects"
- "What's my account usage vs plan limits?"
- "List keywords ranking on page example.com/blog"
Troubleshooting Guide
Click any issue below to view debugging details:
- SERPTAG_API_KEY is required
Your key is missing from the environment variables block. Add your API key to theenvconfig block underSERPTAG_API_KEY. - 401 Unauthorized - Invalid or inactive key
Regenerate the API key in the settings dashboard. Make sure you copied the full key string, not just the prefix shown in the table listings. - MCP access requires Agency or Enterprise plan
MCP integration is premium. You must upgrade to a plan supporting 2500+ keywords at serptag.com/pricing. - Tools not showing in Claude Desktop
Check that Node.js is correctly installed on your command line (node -vmust return v18+). You must completely close and restart Claude Desktop after editing the JSON file. - Connection errors on localhost dev
If running the server locally for dev testing, launch uvicorn manually using:uvicorn myproject.mcp_standalone:application --port 8001Set the base environment variable to route locally:SERPTAG_API_BASE=http://127.0.0.1:8001.