Claude Code MCP Rank Tracking: Terminal SEO Automation
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.
Method 1: Remote HTTP transport (Recommended)
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:
list_projects→ Finds the project forexample-plumbing.com.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:
find_location(query: "Chicago, IL") → Returns location code1016367.check_rank→ Submits a one-off rank lookup viaPOST /v1/lookups.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:
get_rankings(project_id: "...",limit: 200) → Filters forrank <= 10.- 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?
Can I manage multiple project environments in Claude Code?
How do I check which TrackSERPs tools are available in Claude Code?
Does Claude Code support dry-run simulation for rank checks?
Sources & references
- Claude Code Documentation — Working with Model Context Protocol (MCP)(checked 2026-11-11)
- TrackSERPs Model Context Protocol (MCP) Guide(checked 2026-11-11)