TrackSERPs
Log in

Claude Code MCP Rank Tracking: Terminal SEO Automation

Quick answer

Claude Code MCP rank tracking connects Anthropic's command-line agent directly to TrackSERPs search intelligence using the Model Context Protocol. By running claude mcp add with our npm package or remote Streamable HTTP endpoint, developers can inspect top-100 Google positions, track ranking volatility, and evaluate technical SEO migrations directly from their terminal session.

Key facts

  • Claude Code registers MCP servers using the claude mcp add CLI command with stdio or HTTP transport options.Source: code.claude.com
  • TrackSERPs provides a zero-install remote Streamable HTTP endpoint at https://api.trackserps.com/mcp.Source: modelcontextprotocol.io
  • Developers can verify post-deployment SEO migrations without leaving their terminal workflow or git branch.Source: code.claude.com

Terminal-native SEO diagnostics with Claude Code

For software engineers and technical SEO practitioners, context-switching between code editors, terminal sessions, and browser dashboards slows down incident response. When deploying URL redirects, updating structured data schema, or investigating organic traffic drops, having immediate command-line access to Google ranking positions accelerates diagnosis.

Claude Code, Anthropic's agentic command-line interface, natively supports the Model Context Protocol. By registering the TrackSERPs MCP server, you turn your terminal into an interactive search operations console capable of inspecting top-100 SERP depth, verifying geographic rank differences, and auditing competitor snippets while reviewing code changes.

Registration commands for Claude Code

Configure TrackSERPs in Claude Code using either the hosted remote transport or the local npm runner.

Connect to the hosted Streamable HTTP endpoint using your TrackSERPs API key:

claude mcp add --transport http trackserps https://api.trackserps.com/mcp \
  --header "Authorization: Bearer ts_test_your_key_here"

You can also run without the --header flag to trigger an interactive browser login via OAuth 2.1:

claude mcp add --transport http trackserps https://api.trackserps.com/mcp

Method 2: Local stdio transport (npm)

If you prefer running a local subprocess on your development machine, invoke the @trackserps/mcp package directly:

claude mcp add trackserps \
  -e TRACKSERPS_API_KEY=ts_test_your_key_here \
  -- npx -y @trackserps/mcp

Verify the installation anytime inside a Claude Code session by entering:

/mcp

The output displays trackserps with status connected and lists the 19 available tools.

Practical CLI prompt scenarios

Once registered, Claude Code can execute search checks in response to engineering and deployment tasks.

Scenario 1: Post-deploy URL redirect verification

"We just refactored our plumbing service URLs from /services/drain-cleaning to /drain-cleaning. Check our current ranking URL and position for 'drain cleaning service' on example-plumbing.com."

Tools executed:

  1. list_projects → Finds the project for example-plumbing.com.
  2. get_rankings (project_id: "...", limit: 100) → Locates the target phrase, reports the current ranking URL (https://example-plumbing.com/services/drain-cleaning), and flags whether the old or new URL currently holds position in the top 100.

Scenario 2: Quick competitive lookup

"Run a quick rank check for 'emergency plumber' against acmeplumbing.com in Chicago, IL on desktop."

Tools executed:

  1. find_location (query: "Chicago, IL") → Returns location code 1016367.
  2. check_rank → Submits a one-off rank lookup via POST /v1/lookups.
  3. get_lookup → Polls and prints the top 10 competitors and the target domain's rank.

Scenario 3: Pre-migration ranking baseline export

"Summarize all keywords in example-plumbing.com currently ranking in the top 10, and list their detected SERP features so we can archive them before the site relaunch."

Tools executed:

  1. get_rankings (project_id: "...", limit: 200) → Filters for rank <= 10.
  2. Claude Code formats a clean markdown table in your terminal showing phrase, rank, and features (such as Featured Snippets and Local Packs).

To connect other AI tools across your workflow, see our guides for Claude Desktop, Cursor IDE, and the full MCP integration reference.

Frequently asked questions

What is the CLI command to register TrackSERPs in Claude Code?
For the remote hosted server, run: claude mcp add --transport http trackserps https://api.trackserps.com/mcp --header 'Authorization: Bearer ts_live_...'. For the local stdio runner, run: claude mcp add trackserps -e TRACKSERPS_API_KEY=ts_live_... -- npx -y @trackserps/mcp.
Can I manage multiple project environments in Claude Code?
Yes. Scoped API keys can restrict Claude Code to staging or production client projects, or you can supply project_ids dynamically in your conversational prompts.
How do I check which TrackSERPs tools are available in Claude Code?
Run /mcp in the Claude Code terminal interface to list all active MCP servers, inspection tools, and current connection status.
Does Claude Code support dry-run simulation for rank checks?
Yes. By default, run_check and add_keywords execute in dry-run mode, printing credit cost estimates without mutating live data unless confirm: true is passed.

Sources & references

  1. Claude Code Documentation — Working with Model Context Protocol (MCP)(checked 2026-11-11)
  2. TrackSERPs Model Context Protocol (MCP) Guide(checked 2026-11-11)