SEO Advisor
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TRENDS_GEO | No | Default country code for trends, e.g. SG. Defaults to US. | US |
| PSI_API_KEY | No | Free key for PageSpeed Insights. Recommended; without it you share an anonymous quota that is often exhausted. | |
| GSC_SITE_URL | No | Default Search Console property, e.g. sc-domain:example.com. | |
| BING_SITE_URL | No | Default Bing site, e.g. https://example.com/. | |
| GA_PROPERTY_ID | No | Default GA4 property id (digits only). | |
| SEO_DRAFTS_DIR | No | Absolute path of the drafts folder. Defaults to ~/seo-advisor-drafts. | ~/seo-advisor-drafts |
| BING_WEBMASTER_API_KEY | No | Your Bing Webmaster API key (required for bing_* tools unless BING_WEBMASTER_API_KEY_FILE is set). | |
| BING_WEBMASTER_API_KEY_FILE | No | Path to a file that holds your Bing Webmaster API key (required for bing_* tools unless BING_WEBMASTER_API_KEY is set; the file is safer). | |
| GOOGLE_APPLICATION_CREDENTIALS | No | Path to your service-account JSON key (required for gsc_* and ga_* tools). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
You are an SEO, AEO (answer-engine optimisation) and site-performance advisor for the user's website.
Principles:
Ground every claim in data from the tools. Say which tool a number came from. If a tool is not configured or a source lacks data, say so instead of guessing.
Separate what the data shows from what you infer. Never promise rankings or traffic; give likely direction and rough effort.
Prioritise. Rank recommendations by (impact x confidence) / effort, and show the top 5 before the long tail.
Be specific: name the exact page, query, tag or setting, and write the replacement text (title, meta description, heading) where useful.
Prefer niche, winnable queries over broad head terms a small site cannot win. Say so when a goal is unrealistic.
Performance: a fast page helps Core Web Vitals (a ranking signal) and keeps visitors. Compare mobile and desktop, and lab (Lighthouse) with field data.
AEO: answer engines cite pages that answer a question directly, show clear authorship and dates, have structured data, and are not blocked from AI search crawlers. Treat AEO advice as emerging and less proven than classic SEO.
Recommend only changes that help real users. Do not suggest keyword stuffing, hidden text, purchased links or other spam.
Tools: gsc_* (Search Console), ga_* (Google Analytics 4), psi_report (Lighthouse), seo_find_opportunities (gap analysis), seo_audit_page and seo_audit_site (on-page, AEO, robots, AI crawlers), trends_trending_now (what is spiking in Google Search now), bing_* (Bing Webmaster Tools: queries, pages, traffic, crawl stats and issues, links), seo_competitor_gaps (what a competitor covers that you do not), content_save_draft and content_list_drafts (a local folder of drafts and a content calendar). Compare Bing with Google when both are available.
Content rules: nothing is published automatically. Drafts are saved for the owner to review. Never copy a competitor's wording; take the topic, not the text. Write from the owner's real experience: leave clearly marked [ADD ...] placeholders for photos, first-hand details and numbers you cannot know, and never invent them. Do not mass-produce thin articles; fewer, better pages win.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gsc_list_sitesA | List the Search Console properties the service account can read, with permission level. |
| gsc_search_analyticsA | Search Console performance data: clicks, impressions, CTR and average position. Group by query, page, country, device, date or searchAppearance. Data lags about 2-3 days. |
| seo_find_opportunitiesA | Analyses Search Console query+page data and returns prioritised gaps: striking-distance queries (rank 4-20), low-CTR results, zero-click queries and keyword cannibalisation, each with an estimate of clicks to gain. Defaults to the last 28 days. |
| gsc_list_sitemapsB | Sitemaps submitted for a Search Console property, with last download time, errors and warnings. |
| gsc_inspect_urlB | URL Inspection: is a URL indexed, which canonical Google chose, last crawl time, mobile usability and rich results. About 2,000 per day per property. |
| ga_run_reportB | Google Analytics 4 report. Example: metrics ['sessions','engagementRate','averageSessionDuration'] with dimensions ['deviceCategory'] to compare mobile and desktop, or ['landingPage'] for per-page engagement. Names are GA4 Data API names. |
| ga_realtimeB | GA4 realtime report (last 30 minutes). Useful to confirm the tracking tag is firing. |
| trends_trending_nowA | What is spiking in Google Search right now in a country (Google Trends 'Trending Now' public feed), with approximate search volume bucket and top news headlines. Use 'matching' to keep only topics related to your niche. Short-lived spikes only: it does not give historical interest for a keyword. |
| psi_reportA | Runs Lighthouse through the PageSpeed Insights API (no local Chrome needed). Returns performance, accessibility, best-practices and SEO scores, lab metrics (LCP, TBT, CLS), real-user field data from the Chrome UX Report when available, and the top failing audits. Takes up to a minute. Heavy pages can score very differently on mobile and desktop, so check both. |
| seo_audit_pageA | Fetches a page and checks titles, meta descriptions, canonical, robots, headings, image alt text, internal links, Open Graph, and structured data (JSON-LD), plus answer-engine signals such as Article dates and authors and question-style headings. Returns facts and a list of findings with severity and a suggested fix. |
| seo_audit_siteB | Checks robots.txt (including whether AI crawlers such as GPTBot, ClaudeBot, PerplexityBot and Google-Extended are blocked), whether declared sitemaps load, and whether /llms.txt exists. |
| bing_list_sitesA | Sites verified in the Bing Webmaster Tools account that owns the API key. Use it to confirm the key works. |
| bing_query_statsB | Queries that showed your site on Bing (also feeds Copilot and others), summed across the dates Bing returns: clicks, impressions, CTR and average position. Bing returns all data it holds, with no date filter. |
| bing_page_statsC | Pages that appeared in Bing results, with clicks, impressions and average position. |
| bing_traffic_statsA | Clicks and impressions from Bing search over time. Returns weekly totals for the last N weeks by default (daily rows are mostly zeros on small sites). Use it to spot drops, such as after a migration. |
| bing_crawl_statsA | How Bingbot crawled the site over time: pages crawled, crawl errors, blocked by robots.txt, and indexed counts. |
| bing_crawl_issuesB | Crawl problems Bing found on the site, such as 4xx and 5xx errors, redirects and blocked pages. |
| bing_link_countsB | Pages on your site that have inbound links according to Bing, with link counts. |
| seo_competitor_gapsA | Reads a competitor's public sitemap and their newest article pages, then compares their topics with your own site's pages and any Search Console queries you pass in. Returns the topics they cover that you do not (gaps), partly covered ones, and what you already cover. It cannot see their traffic or search volume, so judge demand separately. Tip: any site's /sitemap.xml lists every page and when it last changed. |
| content_save_draftA | Saves a draft article as a Markdown file in your local drafts folder (SEO_DRAFTS_DIR, default ~/seo-advisor-drafts) with status: draft. It does NOT publish anything. Include publishOn to place it on the content calendar. It will not overwrite a file you have changed to another status. |
| content_list_draftsA | Lists the drafts in your local drafts folder as a calendar: soonest publishOn first, with status, target query and word count. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| seo_health_check | Runs every available tool and returns a prioritised list of gaps and fixes. |
| find_traffic_opportunities | Uses Search Console data to find queries and pages where small changes could win clicks. |
| content_ideas_from_trends | Combines what is trending now with your own Search Console data to suggest content worth writing. |
| competitor_content_plan | Finds topics a competitor covers that you do not, builds a content calendar, and saves reviewable drafts. Publishes nothing. |
| aeo_check | Checks whether AI search and answer engines can find, trust and cite the site. |
| performance_vs_engagement | Compares Lighthouse results with GA4 engagement by device to see if heavy pages drive visitors away. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 21 tools
Tools are grouped by data source (gsc_, bing_, ga_, seo_, content_) and each targets a distinct resource or report dimension, so misselection is unlikely. The closest overlaps are psi_report vs seo_audit_page (lab metrics vs on-page facts) and the three Bing stats tools (query/page/traffic), but the descriptions clearly separate them.
A predictable source-prefix + action pattern (gsc_list_sites, bing_crawl_issues, seo_audit_page, content_save_draft) is used throughout, which makes the set easy to scan. Minor deviations exist where the noun replaces the verb (gsc_search_analytics, psi_report, seo_competitor_gaps), but the convention remains readable.
21 tools is on the heavy side, but the server genuinely spans seven integrations (GSC, Bing, GA4, PageSpeed, Trends, auditing, drafts), so each group earns its place. No obvious filler or duplicate tool inflates the count.
Coverage across Search Console, Bing, GA4, Lighthouse and on-page/site audits is broad and supports real end-to-end SEO workflows. Gaps remain around keyword/search-volume research (Trends only gives current spikes) and the content lifecycle, which offers save and list but no read, update, or delete draft operation.