MCP is an MCP server for connecting coding agents running on the local machine to Swebsy Studio to build and edit real websites. It is aimed at agents supporting Model Context Protocol, such as Claude Code, Codex, Cursor, Windsurf, Cline, and GitHub Copilot.
Purpose: let users use their own already-paid coding agents to drive the Swebsy visual website builder, avoiding extra AI fees paid per token. Swebsy itself is a visual website builder that emphasizes real ownership: build visually, export real HTML/CSS/JS files, and publish anywhere, with no lock-in and no proprietary hosting requirements. The free plan runs entirely locally and requires no account.
Main capabilities: agents can refresh and list installed templates, create a standard blank site or import a template as-is, list metadata of saved sites, open a site by ID, and rename a site's internal Swebsy name. After creating or opening a site, agents can poll status until the expected siteId appears and editorReady is true, then read the page tree, add and edit blocks, create and link pages, insert blocks, manage reusable symbols (including repeating different content for each instance while styles stay in sync), take screenshots at any viewport, and export the project. Agents can also set various site settings, including SEO, favicon, fonts, analytics, robots.txt, and deployment targets.
Usage: register Swebsy with all detected supported agents (Claude Code, Codex, Cursor, Windsurf, VS Code, Cline) via a single command; this command does not change existing swebsy entries, does not rewrite config files that cannot be parsed, and reports the result for each agent. Manual registration is also possible, for example adding configuration in Cursor's ~/.cursor/mcp.json or the project's .cursor/mcp.json; Windsurf adds it to ~/.codeium/windsurf/mcp_config.json; Cline adds it to cline_mcp_settings.json or uses the extension's MCP Servers → Configure button. Run npx -y @swebsyAfter /mcp setup, restart the agent and prompt "Build me a landing page with Swebsy." The first request opens Studio and connects. Each browser only needs to connect once; when no Studio tab is connected, the next tool call automatically opens Studio and reconnects, waiting up to 20 seconds. The session is saved in ~/.swebsy/agent-<port>.session and survives bridge restarts.
Manual pairing: have the agent run the swebsy_start_pairing tool, which automatically opens the pairing link in the default browser and returns the link, the raw code, and the relay port. If the browser does not open or Swebsy is running in a different browser, manually open the returned link, or paste the raw code under Global settings → Coding agents → Didn't connect? Pair by hand, keep the port at 37373 (unless SWEBSY_AGENT_PORT was changed), and click Connect.
Multiple agents: multiple coding agents can share one paired Studio tab. Register @swebsy/mcp in each agent and use the same SWEBSY_AGENT_PORT (default 37373). The first MCP process starts the local broker, and subsequent processes join automatically, so Studio only needs to be paired once. Studio shows the list of connected agents and activity; the broker serializes commands across agents so the editor handles one command at a time, and routes each result, screenshot, and export back to the agent that requested it. A Studio tab can only be paired with one broker at a time; pairing another tab revokes the previous one.
Use cases: users who want to build and edit websites with their existing coding agent, avoid extra per-token billing, need to export portable real files and self-host them, or have multiple agents collaborate on the same visual editor. Limitations and notes: the Studio tab must stay open; if the browser puts it to sleep, tools return tab_unresponsive until the tab is clicked. Try pinning the tab, or add Studio under Chrome settings → Performance → "Always keep these sites active".swebsy_list_sites returns only metadata, not page content, thumbnails, assets, revisions, or settings. Agent-driven create/rename analysis includes only the source/template/site ID, not internal names or site content. This package is not needed when using the ChatGPT or Claude app; you can add https://mcp.swebsy.com/mcp as a custom app or connector. This repository is a generated mirror, snapshotted from the mcp/ directory of the Swebsy main repository on each release; files will be overwritten on the next sync, so file an issue rather than a pull request.