Skip to main content
Glama
SEO Advisor MCP

SEO Advisor MCP

by andriantam

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRENDS_GEONoDefault country code for trends, e.g. SG. Defaults to US.US
PSI_API_KEYNoFree key for PageSpeed Insights. Without it you share an anonymous quota that is often exhausted.
GSC_SITE_URLNoDefault Search Console property, e.g. sc-domain:example.com.
BING_SITE_URLNoDefault Bing site, e.g. https://example.com/.
GA_PROPERTY_IDNoDefault GA4 property id (digits only).
SEO_DRAFTS_DIRNoAbsolute path of the drafts folder. Defaults to ~/seo-advisor-drafts.~/seo-advisor-drafts
CLOUDFLARE_ZONE_IDNoZone ID of your own site, for cf_zone_traffic.
CLOUDFLARE_API_TOKENNoRead-only Cloudflare API token. Enables cf_radar_domain_rank (and cf_zone_traffic with a zone ID).
BING_WEBMASTER_API_KEYNoYour Bing Webmaster API key (needed for bing_* tools).
BING_WEBMASTER_API_KEY_FILENoPath to a file that holds your Bing Webmaster API key (safer than BING_WEBMASTER_API_KEY).
GOOGLE_APPLICATION_CREDENTIALSNoPath to your service-account JSON key (needed 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

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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_urlA

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.

ga_list_propertiesA

Lists the Google Analytics 4 accounts and properties (name and numeric ID) that the connected Google service account can read. Use it to help the user find the GA4 property ID for a site. Needs the Google Analytics Admin API enabled in the same Google Cloud project.

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_statsA

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_statsB

How Bingbot crawled the site over time: pages crawled, crawl errors, blocked by robots.txt, and indexed counts.

bing_crawl_issuesA

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

NameDescription
onboardingWalks through adding and verifying a domain in Search Console, GA4 and Bing so the tools can read its data.
seo_health_checkRuns every available tool and returns a prioritised list of gaps and fixes.
find_traffic_opportunitiesUses Search Console data to find queries and pages where small changes could win clicks.
content_ideas_from_trendsCombines what is trending now with your own Search Console data to suggest content worth writing.
competitor_content_planFinds topics a competitor covers that you do not, builds a content calendar, and saves reviewable drafts. Publishes nothing.
aeo_checkChecks whether AI search and answer engines can find, trust and cite the site.
performance_vs_engagementCompares Lighthouse results with GA4 engagement by device to see if heavy pages drive visitors away.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 22 tools

Disambiguation4/5

Tools are cleanly partitioned by provider prefix (gsc_, bing_, ga_, trends_, psi_, seo_, content_), and within each family the purpose is usually distinct (query vs page vs time-series stats). The closest overlap is psi_report vs seo_audit_page, both page-level audits, but the descriptions make the Lighthouse-performance vs on-page-SEO split clear enough.

Naming Consistency4/5

Consistent snake_case with provider prefixes and mostly verb_noun forms (gsc_inspect_url, seo_audit_page, content_save_draft). A few outliers break the verb-first pattern (psi_report, ga_realtime, bing_link_counts), but the convention remains readable and predictable overall.

Tool Count4/5

22 tools is on the heavy side, but the server spans six distinct data sources (Search Console, Bing, GA4, Trends, PageSpeed, local content), so each group carries its own weight. Slightly over-scoped rather than redundant.

Completeness3/5

Analysis and read paths are broad, but the content side is half-built: drafts can be listed and created, yet there is no read/update/delete for an existing draft and no publishing step, which will create dead ends. Also missing sitemap submission, index-request, and historical keyword volume (Trends only covers spikes).

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues