Skip to main content
Glama

mcp-homielab

CI License: MIT

Model Context Protocol servers for people who build and ship apps, browser extensions and websites. Let Claude, Cursor or any MCP client read your AdSense, AdMob and Search Console reports, publish to Google Play, App Store Connect, Chrome Web Store and Firefox Add-ons, manage a Blogger blog, and generate images, speech, music and video with Gemini.

One static binary, no runtime. Each service runs as its own stdio MCP server (mcp-homielab <service>), so you add only the ones you use.

Unofficial: not affiliated with or endorsed by Google, Apple or Mozilla. You use your own API credentials; nothing is sent anywhere except the API each service wraps.

Install

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/homielab/homielab-mcp/main/install.sh | sh

Installs to ~/.local/bin (set MCP_HOMIELAB_INSTALL_DIR to change). Windows: download the zip from Releases. With Go 1.27+: go install github.com/homielab/homielab-mcp/cmd/mcp-homielab@latest.

Related MCP server: adsense-mcp

Quick start

mcp-homielab add searchconsole     # register with Claude Code (or: add all)
mcp-homielab searchconsole login   # Google services: sign in once (setup below)

Other clients: mcp-homielab add --client claude-desktop <service>, --client cursor, or --client json to print the config:

{
  "mcpServers": {
    "searchconsole": { "command": "/path/to/mcp-homielab", "args": ["searchconsole"] }
  }
}

Run mcp-homielab to list services, mcp-homielab <service> --help for one service's commands and credential lookup.

Services

Service

API

Auth

adsense

AdSense Management API v2 (read-only): reports by site, page, ad unit, country…, 18 presets, CSV export, policy issues

Google

admob

AdMob API v1 (read-only): apps, ad units, network and mediation reports, 13 presets, period comparison, CSV export

Google

searchconsole

Search Console: Search Analytics, quick report, period comparison, sitemaps, URL inspection; add/remove properties and sitemaps

Google

googleplay

Google Play Developer API (read-write): tracks and staged rollout, .aab/.apk upload, listings and images, IAP, reviews, purchase verification

Google

appstoreconnect

App Store Connect API (read-write): TestFlight, versions and metadata, review submission, release, customer reviews, IAP, sales and finance reports

API key

blogger

Blogger API v3 (read-write): posts and pages (create, edit, publish, schedule, delete), comment moderation, page views

Google

chromewebstore

Chrome Web Store API v2 (read-write): status, upload, publish (staged, % rollout), cancel, rollback, reviews, metrics

Google

firefoxaddons

addons.mozilla.org API v5 (read-write): listing, icon, screenshots, upload and validation, version submit, rollback, ratings, search

API key

gemini

Gemini API media generation (paid per call): images, speech, music, video, spend log

API key

Setup per service

Google services (adsense, admob, searchconsole, googleplay, blogger, chromewebstore) share one OAuth client:

  1. In Google Cloud Console, enable the APIs you need and create one OAuth Client ID of type Desktop app. Download its JSON.

  2. Put it in the shared config dir, so it serves every Google service:

    • macOS: ~/Library/Application Support/mcp-homielab/

    • Linux: ~/.config/mcp-homielab/

    • Windows: %AppData%\mcp-homielab\

  3. mcp-homielab <service> login (or ask the agent; it calls <prefix>_login).

App Store Connect: mcp-homielab appstoreconnect setup --key-file AuthKey_<KEYID>.p8 --issuer-id <ID> (details). Firefox Add-ons: mcp-homielab firefoxaddons setup --issuer <JWT issuer> (details). Gemini: set GEMINI_API_KEY, or mcp-homielab gemini setup (details).

Step-by-step guide and troubleshooting: INSTALL.md.

Credentials, tokens and state live in <user config dir>/mcp-homielab/<service>/ with mode 0600. Set MCP_HOMIELAB_CONFIG_DIR to use another dir.

Safety

Several services can write: publish releases, edit store listings, delete items. gemini spends money on every call. Read a service's README before giving an agent access, and add only the services you need.

Development

git clone https://github.com/homielab/homielab-mcp.git && cd homielab-mcp
./build.sh     # gofmt + vet + test, then builds mcp-homielab into $(go env GOPATH)/bin

Path

Contents

cmd/mcp-homielab/main.go

Service list and entry point

services/<id>/

One service: main.go (Service(), instructions), API client, tools, prompts, tests

internal/mcpkit/

CLI (<service>, login/logout, add), *_login tools, tool result helpers

internal/googleauth/

OAuth loopback + PKCE, client secret lookup, token store, background login

internal/googleapi/

JSON client: retry on 429/5xx, Retry-After, Google error decoding, pagination

internal/appdir/

Config dir (MCP_HOMIELAB_CONFIG_DIR or <user config dir>/mcp-homielab)

internal/daterange/, internal/render/

Date presets; Markdown/CSV tables and CSV export

Add a service:

  1. Create services/<id>/main.go with func Service() mcpkit.Server. A Google API declares a googleauth.Provider (Name = id, scope, env prefix, tool prefix) and adds the id to googleauth.Collection; an API-key service sets ID, Credentials and a setup command (see services/gemini).

  2. API client: googleapi.New(hc, "<API name>") with hc from auth.HTTPClient(ctx).

  3. Tools: mcpkit.AddLoginTools, then the service's tools (with Title and Annotations), prompts and tests.

  4. Add it to the list in cmd/mcp-homielab/main.go.

Release: push a tag vX.Y.Z; GitHub Actions runs GoReleaser and attaches binaries for macOS, Linux and Windows (amd64, arm64). Publishing the release lists every service in the MCP Registry as io.github.homielab/<service>.

Contributing

Issues and pull requests are welcome. Run ./build.sh before a PR. Tests use local fake servers and never call a real API; keep it that way, and never commit real account ids, tokens or keys.

Report a vulnerability privately through GitHub security advisories, not a public issue.

License

MIT

Available Tools

15 tools
gsc_add_siteAdd Search Console PropertyA
Idempotent

WRITE: add a property to the logged-in account — a URL prefix (https://www.example.com/) or a domain property (sc-domain:example.com). It stays unverified (no data) until ownership is verified in Search Console; adding an existing property is a no-op.

Inputs: siteUrl (required).

gsc_delete_siteRemove Search Console PropertyA
Idempotent

WRITE, DESTRUCTIVE: remove a property from the logged-in account (other owners and the site itself are unaffected; re-adding needs verification again). siteUrl must match gsc_list_sites exactly. Confirm with the user before calling.

Inputs: siteUrl (required).

gsc_delete_sitemapDelete SitemapA
Idempotent

WRITE, DESTRUCTIVE: remove a submitted sitemap from a property's Sitemaps report (the file on the site is untouched; Google may still crawl it). Confirm with the user before calling.

Inputs: feedpath (required), siteUrl.

gsc_get_sitemapGet Sitemap DetailsA
Read-only

Get details of one submitted sitemap (feedpath) for a property: status, contents and error counts.

Inputs: feedpath (required), siteUrl.

gsc_inspect_urlInspect URL Index StatusA
Read-only

URL Inspection: Google-index status of one URL (verdict, coverage state, robots.txt state, canonicals, last crawl, sitemaps) plus AMP / mobile usability / rich results when available. The URL must belong to the given property. Quota is limited (~2,000 queries/property/day) — do not loop it over many URLs.

Inputs: inspectionUrl (required), siteUrl, languageCode.

gsc_inspect_urlsInspect Several URLsA
Read-only

URL Inspection for up to 10 URLs of one property in one call, run concurrently. Returns a summary (indexed / not indexed / canonical mismatch / robots.txt block / fetch error / invalid rich results) and one row per URL. Each URL costs one inspection from the ~2,000/property/day quota. Use gsc_inspect_url for the full detail of one URL.

Inputs: urls (required), siteUrl.

gsc_list_sitemapsList SitemapsA
Read-only

List sitemaps submitted for a Search Console property with submission dates, indexability and per-content-type submitted/indexed counts. Pass sitemapIndex to list the child sitemaps of one sitemap index.

Inputs: siteUrl, sitemapIndex.

gsc_list_sitesList Search Console PropertiesA
Read-only

List Search Console properties (URL-prefix like https://www.example.com/ or domain like sc-domain:example.com) with your permission level. The returned exact siteUrl values should be passed to other tools.

gsc_loginSearch Console LoginA

Authorize access to Google Search Console: opens the browser at Google's OAuth consent page and stores the refresh token locally. Non-blocking: returns immediately while approval is pending — call gsc_login_status afterwards. Required once before any other tool. Scope: webmasters (read, plus adding/removing properties and sitemaps).

gsc_login_statusSearch Console Login StatusA
Read-only

Check whether the Search Console OAuth flow is running/finished and whether a stored token exists. Use right after gsc_login.

gsc_logoutSearch Console LogoutA

Delete the locally stored Search Console OAuth token.

gsc_period_comparisonCompare Analytics PeriodsA
Read-only

Period-over-period comparison of Search Analytics: runs the same query for the given window and a baseline window — by default the immediately preceding window of equal length, or baselineStartDate/baselineEndDate (e.g. the same window last year) — then reports per-key deltas (current minus baseline: clicks, impressions, CTR, position) sorted by absolute click change. Best with query / page / device / country dimensions — not with date. Dimensions: date, hour, query, page, country (ISO-3166 alpha-3), device (DESKTOP/MOBILE/TABLET), searchAppearance. Search type (type): web (default), image, video, news, discover, googleNews. Aggregation: auto (default), byPage, byProperty. Filter operators: contains, equals (default), notContains, notEquals, includingRegex (RE2), excludingRegex (RE2).

Inputs: type, endDate, filters, siteUrl, +7 more.

gsc_quick_reportSearch Analytics Quick ReportA
Read-only

Run several Search Analytics cuts in ONE call — the fastest way to a broad SEO picture: daily trend, top queries, top pages, device split, country split, and query→page mapping. Each cut comes back as its own markdown table; a cut the API rejects is reported inline without aborting the others. Use gsc_period_comparison for period-over-period deltas and gsc_inspect_url for index status.

Inputs: type, endDate, filters, maxRows, +4 more.

gsc_search_analyticsSearch Analytics ReportA
Read-only

Search Analytics (performance) report: clicks, impressions, CTR and average position grouped by dimensions, for a property and date range. Typical combos: daily trend [dimensions=["date"]], top queries [dimensions=["query"]], top pages [dimensions=["page"]], queries on one page [dimensions=["query"], filters=[{dimension:"page",expression:"...",operator:"equals"}]], device split [dimensions=["device"]], country split [dimensions=["country"]], query×page [dimensions=["query","page"]]. Dimensions: date, hour, query, page, country (ISO-3166 alpha-3), device (DESKTOP/MOBILE/TABLET), searchAppearance. Search type (type): web (default), image, video, news, discover, googleNews. Aggregation: auto (default), byPage, byProperty. Filter operators: contains, equals (default), notContains, notEquals, includingRegex (RE2), excludingRegex (RE2). Data lags ~2 days (dataState "all" includes fresher partial data). Max 25,000 rows per call; paginate with startRow. Results are top-N, sorted by clicks (by date when grouping by date); sortBy/sortOrder re-sort and minImpressions/minPosition/maxPosition filter the returned rows, e.g. page-two opportunities: dimensions ["query","page"], rowLimit 5000, minPosition 11, maxPosition 20, minImpressions 100, sortBy impressions.

Inputs: type, sortBy, endDate, filters, +13 more.

gsc_submit_sitemapSubmit SitemapA
Idempotent

WRITE: submit (or resubmit) a sitemap URL for a property so Google fetches it. Processing is asynchronous — check gsc_get_sitemap later for status and counts.

Inputs: feedpath (required), siteUrl.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools target a distinct resource+action (sites, sitemaps, inspection, auth), and the single-vs-batch inspection pair is explicitly cross-referenced. The only soft spot is the analytics trio (gsc_search_analytics, gsc_quick_report, gsc_period_comparison), which all wrap the same Search Analytics API; descriptions do distinguish them (raw cuts, bundled cuts, period deltas), so confusion risk is moderate rather than severe.

    Naming Consistency5/5

    Every tool follows the same gsc_ prefix plus verb_noun snake_case pattern (gsc_list_sites, gsc_get_sitemap, gsc_submit_sitemap, gsc_inspect_url). Destructive vs write vs read intent is signaled consistently in descriptions, so naming is fully predictable.

    Tool Count5/5

    15 tools is a well-scoped size for a Search Console server covering three API surfaces plus auth. Each tool maps to a real API operation or a justified convenience wrapper (gsc_quick_report, gsc_inspect_urls).

    Completeness4/5

    CRUD coverage is solid: sites (add/list/delete), sitemaps (list/get/submit/delete), analytics (standard, comparison, quick), inspection (single and batch), and auth lifecycle (login/status/logout). Minor gaps remain: no way to update a site's permission level, and no direct sitemap-index management beyond listing children.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Google AdSense management. Create ad units, generate framework-specific ad code, manage earnings reports, and automate ads.txt — all from your AI assistant.
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for managing Google Ads campaigns through the official Google Ads API, covering accounts, campaigns, budgets, keywords, search terms, and keyword ideas. It provides tools for both reading and mutating live ads data, such as pausing campaigns, updating budgets, and adding keywords.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server that gives AI assistants structured, read-only access to the Google AdMob API — publisher accounts, apps, ad units, and performance reports.
      6
      MIT