Google Sites MCP
Drives the Google Sites editor through a real browser session, allowing creation of sites and pages, adding and formatting text, images, layouts, buttons, dividers, carousels, maps, embeds (URL or raw HTML/CSS/JS), social links, tables of contents and collapsible groups, plus reordering, duplicating and deleting sections and publishing or unpublishing sites.
Inserts Google Drive items into a Google Site, including Docs, Slides, Sheets, Forms, Charts and Calendar, by searching the user's Drive with a query and embedding the first matching result.
Embeds YouTube videos into a Google Site.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Sites MCP create a portfolio site with a large title, about section, photo, and publish it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌐 Google Sites MCP
Deja que Claude construya tu Google Site. Un servidor MCP que maneja el editor de Google Sites, porque Google nunca sacó una API para él.
Let Claude build your Google Site — an MCP server that drives the Sites editor, because Google never shipped an API for it.
Español
Google Sites (el Sites "nuevo") no tiene API pública. La API antigua solo sirve para Sites clásico y está obsoleta. Este servidor resuelve ese hueco: abre un navegador real con tu sesión de Google y maneja el editor por ti, exponiendo todo como herramientas MCP que Claude (o cualquier cliente MCP) puede llamar.
Pídele: "Crea un portafolio con un título grande, una sección Sobre mí, mis habilidades en viñetas, una foto, un mapa de mi ciudad y un botón de contacto, y publícalo." El servidor hace los clics.
Qué puedes hacer
Área | Herramientas |
Sitios y páginas |
|
Texto |
|
Multimedia |
|
Diseño y bloques |
|
Incrustar |
|
Google Drive |
|
Organizar |
|
Publicar |
|
Navegar |
|
Salidas de emergencia |
|
El contenido siempre se agrega al final de la página: tras cada inserción el servidor revisa el orden de las secciones y lo corrige si Sites colocó el bloque en otro sitio.
Requisitos
Node.js 18 o superior
Microsoft Edge (por defecto) o Google Chrome (
GSITES_CHANNEL=chrome)Una cuenta de Google que pueda usar Google Sites
Windows es la plataforma probada; macOS y Linux deberían funcionar pero no están probados
Instalación
git clone https://github.com/RXDG2908/google-sites-mcp.git
cd google-sites-mcp
npm install # también compila (script prepare)
npm run login # una sola vez: inicia sesión en Google en la ventana que se abre y ciérralaRegístralo en Claude Code:
claude mcp add google-sites -- node /ruta/absoluta/a/google-sites-mcp/dist/index.jsO en la configuración de cualquier cliente MCP (Claude Desktop, etc.):
{
"mcpServers": {
"google-sites": {
"command": "node",
"args": ["/ruta/absoluta/a/google-sites-mcp/dist/index.js"]
}
}
}Tu sesión de Google se guarda en ~/.google-sites-mcp-profile (cámbialo con GSITES_PROFILE_DIR). No sale de tu equipo.
Variables de entorno
Variable | Valor por defecto | Significado |
|
| Navegador a controlar: |
|
| Dónde está el perfil con tu sesión iniciada |
| desactivado |
|
| desactivado |
|
Cómo funciona
Usa etiquetas accesibles, roles ARIA y los atributos data-value de Google, no posiciones en pantalla, tanto en español como en inglés.
Las secciones se arrastran por su asa de una posición a la vez y lejos de los bordes del lienzo (arrastrar cerca de un borde hace que Sites desplace la página y se pase de largo).
Probado
Verificado contra el editor real con una corrida automática de punta a punta (31 comprobaciones, todas aprobadas): crear sitio, título de página, añadir página, texto (encabezado, negrita, viñetas, centrado), imagen, botón, divisor, diseño de 3 columnas, embed HTML, embed por URL, YouTube, mapa, documento de Drive, calendario, carrusel, iconos sociales, índice, grupo ocultable, separador, marcador, orden de inserción, duplicar, mover, borrar, publicar y despublicar.
Limitaciones — léelas
Automatiza una interfaz web. Google puede cambiar el editor en cualquier momento y algún selector puede romperse. Usa
gsites_snapshot/gsites_screenshot+gsites_click/gsites_typecomo respaldo y abre un issue.No puede cambiar temas, colores o fuentes; editar texto ya escrito; renombrar, reordenar o borrar páginas; gestionar permisos de uso compartido; editar la imagen de encabezado o el pie; listar o borrar tus sitios.
Los elementos de Drive insertan el primer resultado de la búsqueda: usa una consulta específica.
Las imágenes se suben desde archivos locales, no desde URL.
Los selectores de Presentaciones, Hojas, Formularios y Gráficos usan el mismo flujo que Documentos pero no se probaron uno a uno.
Un sitio y una acción a la vez; cada acción tarda unos segundos. Mover una sección lejos tarda unos 3 s por posición.
Solo el Google Sites nuevo. El clásico no está soportado.
No resuelve CAPTCHA ni verificación en dos pasos; inicia sesión manualmente una vez.
gsites_publish/gsites_unpublishcambian quién puede ver un sitio. Pregunta antes de usarlos en sitios reales.
Uso responsable
Es un proyecto no oficial, sin relación ni respaldo de Google. Maneja el sitio web en el que ya iniciaste sesión, en tu nombre y con tu cuenta. Revisa los Términos de Servicio de Google para tu tipo de cuenta antes de usar automatización, y no lo uses para crear sitios en masa ni para saltarte restricciones. Tú eres responsable de lo que haga con tu cuenta.
Contribuir
Los issues y PR son bienvenidos, sobre todo: arreglos de selectores cuando Google cambie la interfaz, otros idiomas de la interfaz,
reportes de macOS/Linux y los selectores sin probar. Ejecuta npm run build antes de enviar un PR.
Licencia
Related MCP server: Glance
English
Google Sites (the "new" Sites) has no public API. The old Sites API only works with classic Sites and is deprecated. This server fills the gap: it opens a real browser with your Google session and operates the editor for you, exposing everything as MCP tools that Claude (or any MCP client) can call.
Ask: "Create a portfolio site with a hero title, an About section, my skills as bullets, a photo, a map of my city and a contact button, then publish it." The server does the clicking.
What you can do
Area | Tools |
Sites & pages |
|
Text |
|
Media |
|
Layout & blocks |
|
Embeds |
|
Google Drive |
|
Organize |
|
Publish |
|
Navigate |
|
Escape hatches |
|
Content is always appended at the end of the page: after every insert the server checks the section order and fixes it if Sites put the block somewhere else.
Requirements
Node.js 18+
Microsoft Edge (default) or Google Chrome (
GSITES_CHANNEL=chrome)A Google account that can use Google Sites
Windows is the tested platform; macOS and Linux should work but are untested
Install
git clone https://github.com/RXDG2908/google-sites-mcp.git
cd google-sites-mcp
npm install # also builds (prepare script)
npm run login # one-time: sign in to Google in the window that opens, then close itRegister it with Claude Code:
claude mcp add google-sites -- node /absolute/path/to/google-sites-mcp/dist/index.jsOr in any MCP client config (Claude Desktop, etc.):
{
"mcpServers": {
"google-sites": {
"command": "node",
"args": ["/absolute/path/to/google-sites-mcp/dist/index.js"]
}
}
}Your Google session is stored in ~/.google-sites-mcp-profile (change with GSITES_PROFILE_DIR). It never leaves your machine.
Environment variables
Variable | Default | Meaning |
|
| Browser to drive: |
|
| Where the signed-in browser profile lives |
| off |
|
| off |
|
How it works
Claude ──MCP/stdio──▶ google-sites-mcp ──Playwright──▶ Edge/Chrome ──▶ sites.google.com editor
│ └─ persistent profile (your login)
└─ after each insert: list sections → detect new block → move to end if neededIt uses accessible labels, ARIA roles and Google's own data-value attributes rather than pixel positions, in Spanish and English UI.
Sections are dragged by their handle one step at a time, away from the canvas edges (dragging near an edge makes Sites auto-scroll and overshoot).
Tested
Verified against the live editor with an automated end-to-end run (31 checks, all passing): create site, page title, add page, text (heading, bold, bullets, centered), image, button, divider, 3-column layout, HTML embed, URL embed, YouTube, map, Drive doc, calendar, carousel, social icons, table of contents, collapsible group, spacer, placeholder, insertion order, duplicate, move, delete, publish and unpublish.
Limitations — please read
It automates a web UI. Google can change the editor at any time and a selector may break. Use
gsites_snapshot/gsites_screenshot+gsites_click/gsites_typeas a fallback, and open an issue.It cannot change themes, colors or fonts; edit text that is already written; rename, reorder or delete pages; manage sharing permissions; edit the header image or footer; list or delete your sites.
Drive items insert the first search result — use a specific query.
Images are uploaded from local files, not URLs.
Slides, Sheets, Forms and Charts pickers share the Docs flow but have not been individually tested.
One site at a time, one action at a time; each action takes a few seconds. Moving a section far away takes about 3 s per position.
Only the new Google Sites. Classic Sites are not supported.
It does not solve CAPTCHAs or two-step verification; sign in manually once.
gsites_publish/gsites_unpublishchange who can see a site. Ask before using them on real sites.
Responsible use
This is an unofficial project, not affiliated with or endorsed by Google. It drives the website you are already signed in to, on your behalf, with your account. Review Google's Terms of Service for your account type before using automation, and don't use it to mass-create sites or bypass any restriction. You are responsible for what it does with your account.
Contributing
Issues and PRs are welcome — especially: selector fixes after Google UI changes, other UI languages, macOS/Linux reports,
and the untested pickers. Run npm run build before sending a PR.
License
Available Tools
35 toolsgsites_add_blockAdd another Insert-panel blockA
Insert a simple block that needs no input: collapsible_group, table_of_contents, spacer, placeholder. For maps, Drive files, calendars, carousels and social icons use their own gsites_add_* tools. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: block (required).
gsites_add_buttonAdd a link buttonA
Insert a button with a label that links to a URL. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: url (required), label (required).
gsites_add_carouselAdd an image carouselA
Create an image carousel from local image files (2 or more recommended). New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: file_paths (required).
gsites_add_dividerAdd a divider lineA
Insert a horizontal divider line. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: no named parameters.
gsites_add_drive_fileEmbed any file from My Drive (video, PDF...)A
Insert any Drive file by name through the generic Insert > Drive picker (the typed variants only cover Docs/Slides/Sheets/Forms/Charts/Calendar). Sites then asks whether to share the file with the site's audience: by default this tool answers 'No compartir' (does not change sharing). Pass share='link_viewer' ONLY when the user explicitly agreed to make the file viewable by anyone with the link.
Inputs: query (required), share.
gsites_add_drive_itemEmbed a Google Drive file or calendarA
Embed a file from the user's Google Drive: kind = docs | slides | sheets | forms | charts | calendar. 'query' searches the Drive (for calendar it filters the user's calendars) and the FIRST result is inserted, so use a specific query. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: kind (required), query (required).
gsites_add_embedEmbed a web page or raw HTMLA
Embed external content: either a public 'url' (iframe) or 'html' code (e.g. a custom widget, , +). New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards. Provide exactly one of url / html.
Inputs: url, html.
gsites_add_imageUpload and add an imageA
Upload a local image file (png/jpg/gif/webp) and add it to the open page. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: file_path (required).
gsites_add_layoutAdd a content layout blockA
Insert a ready-made content block (image(s) + caption placeholders). New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards. Layouts: image_caption, two_columns, three_images, three_columns, two_columns_side_captions, four_columns.
Inputs: layout (required).
gsites_add_mapAdd a Google MapA
Embed a Google Map for a place or address, e.g. 'Plaza Mayor, Madrid'. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: place (required).
gsites_add_pageAdd a page to the open siteA
Workflow: in the open Sites editor, open the Pages panel and add a new page with the given name. Requires an editor tab open (gsites_create_site, or gsites_open with an /edit URL).
Inputs: name (required).
gsites_add_social_linksAdd social media icon linksA
Add a row of social icons. Each URL becomes one icon (Sites picks the icon from the domain: instagram.com, linkedin.com, github.com, youtube.com...). New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: urls (required).
gsites_add_textAdd a text boxB
Insert a text box with the given text at the end of the open page. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards. Style: normal | title | heading | subtitle | small. Use '\n' for new lines. 'list' turns the lines into bullets or a numbered list. 'bold' makes all text bold. Examples: {text:"Mis proyectos", style:"heading"}, {text:"HTML\nCSS\nJS", list:"bullets"}.
Inputs: text (required), bold, list, align, +1 more.
gsites_add_youtubeAdd a YouTube videoA
Embed a YouTube video from a URL or search words. New content goes after the currently selected section; by default the last section is selected first so content is appended at the end. Use gsites_move_section to reorder afterwards.
Inputs: query (required).
gsites_clickClick an element by visible textA
Click a button, tab, menu item or link by its visible text or aria-label (case-insensitive substring). Examples: 'Publish', 'Pages', 'Insert', 'Text box', 'Themes'. If several elements match, 'index' picks which one (0 = first). Clicking 'Publish' really publishes the site, so confirm with the user first.
Inputs: text (required), index.
gsites_close_browserClose the browserARead-onlyIdempotent
Close the controlled browser. The Google login stays saved in the profile for next time.
Inputs: no named parameters.
gsites_create_siteCreate a new blank Google SiteA
Workflow: open the new-site page, start a blank site and set its name. Returns the editor URL. Creates a new draft site in the user's Drive (not published). Requires being signed in (see gsites_open).
Inputs: title (required).
gsites_delete_sectionDelete a sectionADestructive
Delete section index (1-based) from the page. Destructive (undo with the editor's Ctrl+Z via gsites_press_key). Confirm with the user first.
Inputs: index (required).
gsites_duplicate_sectionDuplicate a sectionA
Duplicate section index (1-based). The copy appears right below it.
Inputs: index (required).
gsites_get_textRead visible text of the pageARead-onlyIdempotent
Return the visible text of the current page/editor (truncated at 25000 chars). Use to verify content after edits.
Inputs: no named parameters.
gsites_list_sectionsList page sectionsARead-onlyIdempotent
List the content sections of the open page, top to bottom, with a 1-based index and a preview (text, [image], [divider], [block]). Use these indexes in gsites_move_section / duplicate / delete.
Inputs: no named parameters.
gsites_move_sectionMove a sectionA
Reorder the page: drag section from so that it ends up at position to (1-based, see gsites_list_sections). Returns the new outline.
Inputs: to (required), from (required).
gsites_openOpen a Google Sites URLARead-onlyIdempotent
Open a URL in the controlled browser (a visible Chromium with a persistent Google login). Use 'https://sites.google.com/new' to start a new site, 'https://sites.google.com/' for the site list, or an edit URL like 'https://sites.google.com/u/0/d//edit'. First time only: if a Google login page appears, ask the user to sign in manually in the opened window (profile stored at /root/.google-sites-mcp-profile), then call this again. Returns the final URL and page title.
Inputs: url (required).
gsites_open_pageOpen a page of the open site by its nameA
In the open site's editor, use the Pages panel (expanding collapsed groups) and open the page named exactly name. Returns the editor URL of that page.
Inputs: name (required).
gsites_open_siteOpen one of your sites in the editor by its nameB
Go to the Sites home and open the site whose name contains name. Returns the editor URL. Avoids copying site ids by hand (they are easy to mistype).
Inputs: name (required).
gsites_press_keyPress a keyA
Press a keyboard key or combo in the browser (Playwright syntax): 'Enter', 'Escape', 'Tab', 'Control+Z', 'Control+B'.
Inputs: key (required).
gsites_publishPublish the open siteAIdempotent
Publish the site open in the editor. 'address' is the last part of the web address (letters, numbers, hyphens); omit it to accept Google's suggestion. Visibility is whatever the site is already set to (for a Workspace account the default is the whole organization, not the public internet). This makes the site visible to others, so ONLY call it after the user has confirmed.
Inputs: address.
gsites_resize_blockResize an image or embedA
Resize the image/embed section index by dragging its corner handle. Images inserted by gsites_add_image arrive small (about 283 px); pass width (px; the content column is about 898 px wide) and the height follows the image's own proportions. For embeds/videos pass aspect (width/height, e.g. 1.7778) or height. Never stretches: the height is always adjusted to the width that the editor actually accepted.
Inputs: index (required), width (required), aspect, height.
gsites_screenshotScreenshotARead-onlyIdempotent
Take a PNG screenshot of the current browser page so you can see the editor layout. Use when gsites_snapshot is not enough (e.g. to locate drop zones or verify visual results).
Inputs: no named parameters.
gsites_set_insert_pointChoose where the next blocks are insertedA
EXPERIMENTAL - in a live test, after=0 placed the first block in the wrong spot and was slow (every move hops one position at a time); verify with gsites_list_sections after use. By default every gsites_add_* tool appends at the END of the page. Call this with after=N to insert right after section N (0 = very top of the page); the point then advances by itself, so a sequence of add_* calls stays in order. after=-1 restores 'append at the end'. Use it to put a table of contents or an intro at the top without dragging blocks around (dragging is slow on long pages).
Inputs: after (required).
gsites_set_page_titleSet the big page titleA
Replace the large title shown in the page header (default 'Título de la página').
Inputs: title (required).
gsites_snapshotSnapshot editor stateARead-onlyIdempotent
Return a compact text snapshot of the current page: URL, title, and the visible buttons/links/textboxes/headings (role + accessible name). Use it to discover exact labels before gsites_click / gsites_type. Cheaper than a screenshot.
Inputs: no named parameters.
gsites_typeType textA
Type text into the currently focused field/box, or first click a field by label. Use 'target' (placeholder or aria-label, e.g. 'Site title', 'Page title') to focus a field; omit it to type into whatever is focused. 'press_enter' sends Enter afterwards.
Inputs: text (required), target, clear_first, press_enter.
gsites_unpublishUnpublish the open siteADestructiveIdempotent
Stop publishing the site open in the editor (menu next to Publish > Unpublish). The draft stays in Drive. Confirm with the user first.
Inputs: no named parameters.
gsites_upload_to_driveUpload a local file to Google DriveA
Upload a local file (video, PDF, zip...) to 'My Drive' through the Drive web UI, in a separate tab so the editor is untouched. It does NOT change sharing. Afterwards embed it with gsites_add_drive_file.
Inputs: file_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
Most tools have clearly distinct purposes, but add_drive_item vs add_drive_file both insert Drive content, and generic add_embed overlaps somewhat with specialized add_youtube/add_map. The descriptions mostly disambiguate these boundaries, but they require careful reading.
All tools use the gsites_ prefix and snake_case with predictable verb_noun or action names such as add_text, list_sections, and open_site. Generic browser actions like click, type, and open are minor deviations but remain stylistically consistent.
At 35 tools, the surface is well above the 25+ threshold and feels heavy for a Google Sites editor. Many add_* variants could likely be consolidated into parameterized tools, even if each currently has a distinct picker flow.
Core create, edit, and publish workflows are covered, and content/section operations are broad. However, page lifecycle management is incomplete: there is no list/rename/delete page tool, and editing or deleting individual existing elements relies on section deletion or low-level browser actions.
Maintenance
Related MCP Connectors
Create, edit, preview, publish, and manage web pages from MCP-capable AI clients.
Read, edit, publish, and preview your pepita websites from Claude.
Lets your AI build and edit websites in Xodia, a visual website builder for real code (Vite, React, Tailwind CSS or plain HTML in your own git repo): read and write site files, create pages and CMS collections, run typecheck, design and link checks, take screenshots, manage forms and translations, and pick up change requests the user sends from the visual editor. Sign in once with your Xodia account (OAuth). Free plan, no card needed. Setup: https://xodia.ai/ai/mcp
Build, edit, host, and publish websites from AI assistants. Setup: https://mcp.orivox.org/
Related MCP Servers
- AlicenseBqualityBmaintenanceUse your signed-in Chrome through a local MCP server and companion extension. Supports tabs, navigation, forms, screenshots, and page reading, with a deny-all domain allowlist. Install: npx -y mcp-browser-extension@latest.22177 npm6MIT
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to control a real browser for navigating, clicking, typing, taking screenshots, inspecting pages, and running multi-step automated tests. It also supports visual regression, session recording, and network/console monitoring through MCP tools.106 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to control a real browser for navigation, interaction, screenshots, accessibility snapshots, and automated end-to-end testing through MCP tools.106 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables Claude Code to control a real browser for navigation, interaction, screenshots, accessibility snapshots, network and console monitoring, and automated end-to-end testing through MCP tools.106 npmMIT