Rank Tracking MCP Server: Connect Search Data to AI Assistants
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.
| Capability | Hosted server | Local npm package (stdio) |
|---|---|---|
| Transport[1] | Streamable HTTP | stdio subprocess |
| Endpoint or command | https://api.trackserps.com/mcp | npx -y @trackserps/mcp |
| Sign-in | OAuth 2.1 with PKCE, or an API key in the Authorization header | API key in the TRACKSERPS_API_KEY environment variable |
| Needs Node.js on your machine | Not included | Included |
| Works with Claude.ai and ChatGPT connectors | Included | Not included |
| Tools available today | 19 | 19 on 0.3.0 or later; 14 on earlier versions |
| Bing engine on create_project, find_location and check_rank | Included | Only with 0.3.0 or later |
- 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.
| Tool | What it does | Scope | Credits |
|---|---|---|---|
list_projects | Projects with domain, location, schedule, keyword count and status | read | 0 |
find_location | Searches location codes by name or country, for Google or Bing | read | 0 |
get_rankings | Latest rank per keyword with 7-day and 30-day change and ranking URL; filter by device or tag | read | 0 |
get_ranking_movement | Biggest gainers, losers, newly ranked and dropped keywords over a date range (default 7 days) | read | 0 |
get_keyword_history | Rank history and net change for one keyword, by ID or phrase | read | 0 |
get_search_volume | Monthly volume, CPC and competition for a project or one keyword | read | 0 |
get_serp_snapshot | Stored top-100 SERP for a keyword and date, with feature badges and AI Overview references | read | 0 |
compare_serp | Which URLs moved up, moved down, stayed, entered or dropped between two check dates | read | 0 |
list_competitors | Competitor domains tracked on a project (up to 10 per project) | read | 0 |
get_share_of_voice | Daily share of voice for your domain and each competitor | read | 0 |
get_usage | Credit balance and monthly API call usage | read | 0 |
get_run_status | Status, keywords checked and credits charged for the latest or a given run | read | 0 |
get_lookup | Status and result of a one-off lookup | read | 0 |
list_lookups | One-off lookups from the past 30 days, newest first | read | 0 |
add_competitor | Adds a competitor domain and queues a backfill from stored SERP snapshots | projects:write | 0 |
create_project | Creates a project (Google or Bing) with optional starting keywords | projects:write | 0 at creation |
add_keywords | Adds or updates keywords; previews unless confirm is true | keywords:write | 0 now; raises future scheduled-check spend |
run_check | Starts a check for a project or a subset of keywords; previews unless confirm is true | runs:write | 1 per keyword per device |
check_rank | Queues a one-off lookup for one or more phrases on Google or Bing; previews unless confirm is true | runs:write | 1 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_soonwith 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_creditsand 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 scope | Default | What it allows |
|---|---|---|
projects:read | On | List projects, keywords, locations and usage |
rankings:read | On | Read rankings, rank history and search volume |
runs:write | On | Start project checks and one-off lookups (spends credits) |
projects:write | Off | Create projects and add competitors |
keywords:write | Off | Add 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?
list_projectsresolves the domain to a project ID.get_ranking_movementwith a 14-day range returns the losers.get_serp_snapshotfor each large loser returns the SERP feature badges and AI Overview references on the latest check.compare_serpfor the worst two, withfromtwo weeks ago andtothe 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.
list_competitorsconfirms the competitor is not already tracked and shows how many of the 10 slots are used.add_competitoradds the domain and queues a backfill from stored SERP snapshots. This needsprojects:writeand costs nothing.get_share_of_voicereturns 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?
find_locationwith "Dallas, Texas" returns a location code.check_rankwith that code,device: "mobile"and the domain queues a lookup and returns an ID. This costs 1 credit.- After 10 to 20 minutes,
get_lookupreturns 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
| Symptom | Likely cause | Fix |
|---|---|---|
| Client shows "unauthorized" after connecting | Token expired or connector revoked | Reconnect; check for the Connector key under Settings, API |
forbidden_scope on a write tool | The scope was not granted at consent | Disconnect and reconnect with the scope ticked |
| Consent screen refuses with a plan message | Write scope selected on a read-only plan | Untick write scopes or move to Growth or higher |
| 403 about IP address | The API key has an IP allowlist and your client is outside it | Add the egress IP, or use a key without an allowlist |
| 429 "rate limit exceeded" | Per-minute limit for the plan | Wait for the Retry-After delay |
429 run_too_soon | A run was started for that project in the last 10 minutes | Wait, or check specific keywords later |
insufficient_credits | Balance does not cover the held credits | Check get_usage, then reduce the keyword set or add credits |
| "No rankings yet" for a new project | No check has completed | Run run_check or wait for the schedule |
get_serp_snapshot is not in the tool list | Local package older than 0.3.0 | Upgrade to 0.3.0 or later, or use the hosted server |
| Request rejected with a 400 about the URL | A key or token was placed in the query string | Move 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:
- Scope the connector to what the task needs. Start without
runs:write. - 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.
- 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.
- Use
ts_test_keys while you build prompts or agent loops. - 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?
Why might my local package show fewer tools than the hosted server?
Can an assistant spend my credits without asking me?
How do I make the connection read-only?
Does the MCP server give real-time rankings?
Which AI clients can connect?
How do I revoke access?
Sources & references
- Model Context Protocol specification: Transports(checked 2026-11-11)
- Model Context Protocol specification: Authorization(checked 2026-11-11)
- Model Context Protocol specification: Tools(checked 2026-11-11)
- Anthropic: MCP connector (Messages API)(checked 2026-11-11)
- OpenAI: Connectors and remote MCP servers(checked 2026-11-11)