TrackSERPs
Log in

Rank Tracking MCP Server: Connect Search Data to AI Assistants

Quick answer

A rank tracking MCP server lets an AI assistant call your rank tracker as a set of tools instead of reading pasted exports. TrackSERPs offers two ways: a hosted endpoint at https://api.trackserps.com/mcp that uses OAuth 2.1, and an npm package (@trackserps/mcp) that runs locally over stdio with an API key. The hosted server exposes 19 tools; most are free reads, and only checks and lookups spend credits.

Key facts

  • MCP defines two standard transports: stdio, where the client launches the server as a subprocess, and Streamable HTTP, where the server is an independent HTTP endpoint.Source: modelcontextprotocol.io
  • The MCP authorization spec applies to HTTP transports and is based on OAuth 2.1, with PKCE required for clients and protected resource metadata required on the server.Source: modelcontextprotocol.io
  • The MCP spec says there should always be a human in the loop able to deny tool invocations, and that clients should confirm sensitive operations.Source: modelcontextprotocol.io
  • Anthropic's Messages API MCP connector supports only tool calls from the MCP spec and needs a publicly reachable HTTP server, so local stdio servers cannot be attached directly.Source: platform.claude.com
  • OpenAI's Responses API requires approval by default before data goes to a remote MCP server, and lets you limit which tools are imported with allowed_tools.Source: developers.openai.com

What this MCP server does, and what it does not

The Model Context Protocol (MCP) is an open standard for letting an AI assistant discover and call tools on another system. The TrackSERPs MCP server wraps the TrackSERPs REST API as 19 tools. An assistant can list your projects, read rankings and movement, compare two stored SERPs, read share of voice against competitors, and, if you allow it, start checks and add keywords.

It does not give the model a live search engine. Every ranking the assistant sees comes from checks TrackSERPs already ran, or from a one-off lookup the assistant queues. Checks are queued and normally take 10 to 20 minutes. That matters for how you phrase requests: "what changed since last week" is answered from stored data straight away, "check this keyword now" is a 10 to 20 minute job, and a good assistant will tell you to come back rather than pretend.

Our position: runs:write is ticked by default on the consent screen so the assistant can start checks, and the app asks you to confirm before a check runs; you can untick it for read-only sessions. The consent screen says plainly that it uses your credits (1 per keyword checked), and account owners get an email whenever a connector with spending access is approved. To revoke one, open Settings, API, API Keys and revoke the key badged "AI connector". Let stored SERP snapshots do most of the thinking either way. Most of the useful questions an SEO asks ("what dropped, who replaced us, did an AI Overview appear") are answered by free read tools.

Hosted server or local npm package

There are two ways to connect, and they differ in where the code runs and how you authenticate, not in what they can do.

TrackSERPs hosted MCP server vs local npm package
CapabilityHosted serverLocal npm package (stdio)
Transport[1]Streamable HTTPstdio subprocess
Endpoint or commandhttps://api.trackserps.com/mcpnpx -y @trackserps/mcp
Sign-inOAuth 2.1 with PKCE, or an API key in the Authorization headerAPI key in the TRACKSERPS_API_KEY environment variable
Needs Node.js on your machineNot includedIncluded
Works with Claude.ai and ChatGPT connectorsIncludedNot included
Tools available today1919 on 0.3.0 or later; 14 on earlier versions
Bing engine on create_project, find_location and check_rankIncludedOnly with 0.3.0 or later
  1. https://modelcontextprotocol.io/specification/2025-06-18/basic/transports (checked 2026-11-11)

Package versions and tool count

Version 0.3.0 of @trackserps/mcp registers 19 tools, and the hosted server at /mcp runs that same code, so it has all 19. Versions before 0.3.0 have 14: they lack get_serp_snapshot, compare_serp, list_competitors, add_competitor and get_share_of_voice, and their tools have no engine option for Bing. Use 0.3.0 or later for the local package; npm view @trackserps/mcp version shows the latest published version.

If a local client is pinned to an older version and you need SERP snapshots, competitors or Bing, either upgrade it or point it at the hosted server with an API key header. The client setup pages show both forms.

When to choose which

Choose the hosted server for Claude.ai, Claude Desktop connectors and ChatGPT. Those clients connect to a URL and cannot launch a local process. Anthropic's own MCP connector for the Messages API has the same constraint: it needs a publicly reachable HTTP server and does not accept stdio servers.

Choose the npm package when your policy says credentials never leave the machine in an OAuth flow, when you are offline from the public internet except for the TrackSERPs API itself, or when you want to point TRACKSERPS_API_URL at a different base URL. The stdio transport also keeps the key out of any hosted hop between your client and us. For stdio, the MCP spec tells implementations to read credentials from the environment rather than run the OAuth flow, which is what the package does.

Connecting the hosted server

For Claude.ai and Claude Desktop, add a custom connector in Settings and enter https://api.trackserps.com/mcp. ChatGPT works the same way through its custom connector settings. Each client then sends you to TrackSERPs to pick an account and approve scopes. Step-by-step pages with the exact menu names:

For clients that accept a header, pass Authorization: Bearer ts_live_.... A ts_test_... key works too and returns synthetic data without spending credits, which is the right choice when you are testing a prompt or an agent loop.

For the local package, the configuration is a command plus one environment variable:

{
  "mcpServers": {
    "trackserps": {
      "command": "npx",
      "args": ["-y", "@trackserps/mcp"],
      "env": { "TRACKSERPS_API_KEY": "ts_test_your_key_here" }
    }
  }
}

The server reads the key from TRACKSERPS_API_KEY and talks to https://api.trackserps.com/v1 unless you set TRACKSERPS_API_URL. The full parameter reference for every tool also lives in the MCP API documentation.

Every tool, its scope and its credit cost

Credits are charged only when a check or lookup actually runs: 1 credit per keyword per device for project runs, and 1 credit per phrase for one-off lookups. Reading stored data is free.

Here is the complete list, as registered in version 0.3.0.

ToolWhat it doesScopeCredits
list_projectsProjects with domain, location, schedule, keyword count and statusread0
find_locationSearches location codes by name or country, for Google or Bingread0
get_rankingsLatest rank per keyword with 7-day and 30-day change and ranking URL; filter by device or tagread0
get_ranking_movementBiggest gainers, losers, newly ranked and dropped keywords over a date range (default 7 days)read0
get_keyword_historyRank history and net change for one keyword, by ID or phraseread0
get_search_volumeMonthly volume, CPC and competition for a project or one keywordread0
get_serp_snapshotStored top-100 SERP for a keyword and date, with feature badges and AI Overview referencesread0
compare_serpWhich URLs moved up, moved down, stayed, entered or dropped between two check datesread0
list_competitorsCompetitor domains tracked on a project (up to 10 per project)read0
get_share_of_voiceDaily share of voice for your domain and each competitorread0
get_usageCredit balance and monthly API call usageread0
get_run_statusStatus, keywords checked and credits charged for the latest or a given runread0
get_lookupStatus and result of a one-off lookupread0
list_lookupsOne-off lookups from the past 30 days, newest firstread0
add_competitorAdds a competitor domain and queues a backfill from stored SERP snapshotsprojects:write0
create_projectCreates a project (Google or Bing) with optional starting keywordsprojects:write0 at creation
add_keywordsAdds or updates keywords; previews unless confirm is truekeywords:write0 now; raises future scheduled-check spend
run_checkStarts a check for a project or a subset of keywords; previews unless confirm is trueruns:write1 per keyword per device
check_rankQueues a one-off lookup for one or more phrases on Google or Bing; previews unless confirm is trueruns:write1 per phrase

"Read" means the rankings:read scope on an API key, or projects:read and rankings:read on an OAuth connector. Two details are easy to miss.

First, create_project does not start a check. A new project's first results appear when its schedule next fires or when you call run_check. If an assistant creates a project and then reports "no rankings found", that is expected until a run completes.

Second, add_keywords spends nothing at the moment you confirm it, but it changes your future bill. Each added keyword is checked on every scheduled run, once per device. The dry run reports the estimated monthly credits before and after, so the assistant can say "this adds about N credits per month" before you agree.

How the preview works

add_keywords and run_check return a preview unless confirm: true is passed. This is what a run_check preview carries back to the model:

{
  "dry_run": true,
  "confirm_required": true,
  "project_id": "cmwc0f1yp0005rqk7w1plnab1",
  "would_hold": 60,
  "balance_after": 3330,
  "allowed": true
}

The model is told to call the tool again with confirm: true to proceed. This is a convention enforced by the tool, not a substitute for your client's approval prompt. A model that is told "go ahead and check everything" can pass confirm: true on its first call. Keep your client's per-tool approval on for write tools, and treat the preview as a way to put a number in front of you before you click.

check_rank has no preview. It is meant for a single question, such as one keyword in one city, and it charges at call time. The API also credits back a failed lookup.

Limits that stop runaway loops

The REST rules apply to every tool call, because the tools are thin wrappers around the REST API:

  • One manual run per project every 10 minutes. A second attempt returns run_too_soon with a retry delay.
  • At most 10 run requests per API key per hour.
  • At most 500 one-off lookup items per API key per hour.
  • A per-minute request limit and a monthly call quota that depend on your plan.
  • A check that your balance covers a run before it starts. If it does not, you get insufficient_credits and nothing is queued.

One tool call can make several REST calls. get_ranking_movement follows pagination for up to 5,000 keywords, and the add_keywords preview pages through existing keywords to work out what is new. Count those against your quota, not just the number of times the model called a tool.

Scopes and what each one lets an assistant do

OAuth consent offers five scopes. Three are on by default, and one of those is a write scope.

OAuth scopeDefaultWhat it allows
projects:readOnList projects, keywords, locations and usage
rankings:readOnRead rankings, rank history and search volume
runs:writeOnStart project checks and one-off lookups (spends credits)
projects:writeOffCreate projects and add competitors
keywords:writeOffAdd or update keywords

Read that table twice before you click Approve. runs:write is on by default, which means a default connection can spend credits. If you only want analysis, untick it. If you leave it on, consider connecting under a plan whose monthly credits you are comfortable losing in a bad loop.

Behind the scenes, approving a connector creates a dedicated API key whose scopes map from your choices. Both read scopes collapse to the key's rankings:read, and the OAuth token itself keeps the finer split, which the hosted server enforces on each call. Tokens are rejected for anything outside the consented scopes with a forbidden_scope error.

Write scopes need a plan with write API access. The Starter plan includes read-only API access, so a consent screen that includes any write scope is refused with a message telling you to untick them or move to Growth or higher. Billing settings, webhooks and share links are not reachable through OAuth at all: the server refuses scopes like webhooks:write.

Example prompts and what the agent actually does

The point of a tool list is how it composes. These three prompts use fictional domains and show the tool sequence an assistant typically follows. The exact sequence varies by client and model.

Weekly review, read-only

Which keywords on acmeplumbing.com dropped more than three positions in the last 14 days, and did any of them gain an AI Overview?

  1. list_projects resolves the domain to a project ID.
  2. get_ranking_movement with a 14-day range returns the losers.
  3. get_serp_snapshot for each large loser returns the SERP feature badges and AI Overview references on the latest check.
  4. compare_serp for the worst two, with from two weeks ago and to the latest date, shows which URLs overtook yours.

Credits spent: 0. This is the pattern to start with. The assistant is reasoning over stored data, and how AI Overview citations are captured is something you can verify yourself in the snapshot output.

Competitor check

Add brightsmile-dental.example as a competitor on the Dallas project, then tell me who has the most share of voice over the last 30 days.

  1. list_competitors confirms the competitor is not already tracked and shows how many of the 10 slots are used.
  2. add_competitor adds the domain and queues a backfill from stored SERP snapshots. This needs projects:write and costs nothing.
  3. get_share_of_voice returns daily scores for your domain and every tracked competitor.

Share of voice here is computed from stored top-100 results using a page-one click-through curve, so the new competitor's history only reaches back as far as your stored snapshots do. A competitor added today does not get history from before you started tracking the keywords.

One-off check with a cost, on mobile

Where does acmeplumbing.com rank for "emergency plumber dallas" on mobile in Dallas, Texas?

  1. find_location with "Dallas, Texas" returns a location code.
  2. check_rank with that code, device: "mobile" and the domain queues a lookup and returns an ID. This costs 1 credit.
  3. After 10 to 20 minutes, get_lookup returns the position and the top results. If the same search was already fetched that UTC day, the status is already completed.

An assistant that calls get_lookup immediately and sees "queued" should say so. If yours keeps polling in a tight loop, tell it to wait. The API asks clients to poll no more than once a minute, and each poll counts against your quota.

Troubleshooting

SymptomLikely causeFix
Client shows "unauthorized" after connectingToken expired or connector revokedReconnect; check for the Connector key under Settings, API
forbidden_scope on a write toolThe scope was not granted at consentDisconnect and reconnect with the scope ticked
Consent screen refuses with a plan messageWrite scope selected on a read-only planUntick write scopes or move to Growth or higher
403 about IP addressThe API key has an IP allowlist and your client is outside itAdd the egress IP, or use a key without an allowlist
429 "rate limit exceeded"Per-minute limit for the planWait for the Retry-After delay
429 run_too_soonA run was started for that project in the last 10 minutesWait, or check specific keywords later
insufficient_creditsBalance does not cover the held creditsCheck get_usage, then reduce the keyword set or add credits
"No rankings yet" for a new projectNo check has completedRun run_check or wait for the schedule
get_serp_snapshot is not in the tool listLocal package older than 0.3.0Upgrade to 0.3.0 or later, or use the hosted server
Request rejected with a 400 about the URLA key or token was placed in the query stringMove it to the Authorization header

Security model, and what remains your job

The hosted endpoint follows the MCP authorization spec's shape. An unauthenticated request gets a 401 with a WWW-Authenticate header pointing at protected-resource metadata, the client discovers the authorization server, registers itself, and runs the authorization-code flow with PKCE and a resource parameter that names the MCP server. The server checks the token and scopes on every request. The spec requires MCP servers to validate that a token was issued for them and forbids passing a client's token through to other services. On our side, the MCP endpoint dispatches tool calls to the same API handlers an API-key request would hit, with the same auth, limits and charging.

Other guardrails in the hosted endpoint:

  • Stateless Streamable HTTP with JSON responses. There is no server-held session to hijack and no standing GET stream.
  • A 1 MB request body limit.
  • Credentials in the URL query string are rejected.
  • Repeated failed authentication attempts from one IP are throttled.
  • Per-key IP allowlists, when configured, apply to MCP requests.
  • Plans with no API access cannot use the endpoint.

What is still your responsibility:

  1. Scope the connector to what the task needs. Start without runs:write.
  2. Keep your client's tool approval on for write tools. The spec says clients should confirm sensitive operations and show tool inputs before calls, because a model can be steered by content it reads.
  3. Treat tool output as data. Titles and snippets in a stored SERP come from third-party pages, which means a hostile page could try to write instructions into a result that an assistant later reads. OpenAI's guidance on remote MCP servers raises the same risk for any server and recommends approvals and logging. Do not give an assistant tools that can email or publish on its own, together with this one, unless a human approves each step.
  4. Use ts_test_ keys while you build prompts or agent loops.
  5. Revoke connectors you stop using. Each appears with a Connector badge under Settings, API, API Keys, and revoking it invalidates its tokens.

When not to use the MCP server

MCP is a good fit for conversation: exploring, explaining, a human in the loop. It is a weak fit for scheduled work. If you want a report every Monday, a script calling the REST API or SDK is cheaper, deterministic and easier to test. If you want to be told when a keyword drops, subscribe to a webhook rather than asking a model to poll. For the decision between the three when you are building an autonomous agent, read building AI SEO agents on TrackSERPs data.

MCP also puts every tool description into the model's context. If you only need three tools, restrict them. In the Messages API, you can disable tools in the mcp_toolset configuration, and OpenAI's remote MCP tool takes an allowed_tools list. A smaller tool surface is cheaper and gives the model fewer ways to go wrong.

For a longer walkthrough of a monitoring workflow built on these tools, see monitoring rankings from an AI agent with MCP. To get a key and connect, start from the API quickstart; credits and plan limits are on the pricing page.

Frequently asked questions

What is the difference between the hosted MCP server and the npm package?
The hosted server at https://api.trackserps.com/mcp needs no install and signs in with OAuth 2.1 (or an API key header). The @trackserps/mcp package runs on your machine over stdio and reads TRACKSERPS_API_KEY. Both call the same REST API, so scopes, quotas and credit charges are identical. The package has the same 19 tools as the hosted server from version 0.3.0; earlier versions have fewer.
Why might my local package show fewer tools than the hosted server?
Versions before 0.3.0 have 14 tools. Version 0.3.0 added get_serp_snapshot, compare_serp, list_competitors, add_competitor and get_share_of_voice, plus a Bing option on create_project, find_location and check_rank. Use 0.3.0 or later. Run npm view @trackserps/mcp version to see the latest published version.
Can an assistant spend my credits without asking me?
Not through add_keywords or run_check, which only preview cost unless confirm is true. check_rank has no preview step and charges 1 credit per phrase when called, so untick runs:write on the consent screen for exploratory sessions. Your client's own tool-approval prompt is the second guard.
How do I make the connection read-only?
With OAuth, untick runs:write, projects:write and keywords:write on the consent screen. With the npm package, use an API key limited to the rankings:read scope. The Starter plan is read-only for API access anyway, so write scopes need Growth or higher.
Does the MCP server give real-time rankings?
No. New checks are queued and normally take 10 to 20 minutes. If the same search was already fetched earlier that UTC day, the result comes back immediately and still costs 1 credit. Reading stored rankings is free and returns straight away.
Which AI clients can connect?
Claude.ai and Claude Desktop connectors, ChatGPT custom connectors, Claude Code, Cursor and VS Code with GitHub Copilot agent mode all work with the hosted server. Claude Desktop, Claude Code, Cursor and VS Code also run the local npm package. Each has a setup page linked from this one.
How do I revoke access?
OAuth connectors show up under Settings, API, API Keys with a Connector badge. Revoking the key invalidates the connector's access and refresh tokens straight away, without touching your other API keys. For the npm package, revoke or rotate the API key you put in the client configuration, and update any other machine that still holds the old one.

Sources & references

  1. Model Context Protocol specification: Transports(checked 2026-11-11)
  2. Model Context Protocol specification: Authorization(checked 2026-11-11)
  3. Model Context Protocol specification: Tools(checked 2026-11-11)
  4. Anthropic: MCP connector (Messages API)(checked 2026-11-11)
  5. OpenAI: Connectors and remote MCP servers(checked 2026-11-11)