Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

WeWeb MCP ​

Use the WeWeb MCP server to let an external AI agent work on your WeWeb projects. Instead of building inside the editor with WeWeb AI, you can stay in the AI client you already use, such as ChatGPT, Claude, Cursor, Codex, or Antigravity, and ask it to create pages, manage your backend, edit workflows, and inspect your project through natural language.

The server is available at:

https://ai-api.weweb.io/v1/mcp

CURRENTLY IN BETA

WeWeb MCP is currently in beta. Tool calls run against your real project and can create, edit, or delete resources. We recommend testing on a non-critical project first and reviewing changes as the agent works.

WeWeb recommends Claude Opus ​

For the best results today, we recommend using Claude Opus as the underlying model. In our testing, it follows WeWeb tooling more reliably and produces higher-quality output than other models. As the MCP server matures, we'll broaden the list of recommended models.

What is MCP? ​

The Model Context Protocol (MCP) is an open standard that lets AI agents discover and call external tools in a consistent way. By exposing WeWeb as an MCP server, any compatible client can list the available WeWeb tools and invoke them to act on your project.

This is the inverse of a chat connector: rather than WeWeb calling out to an external service, an external agent calls into WeWeb to do the work for you.

How it works ​

  1. Connect your AI client to the WeWeb MCP server using the steps below.
  2. Authenticate. On first use, the client opens a browser window so you can sign in to WeWeb and authorize access.
  3. Select a workspace and project. Ask the agent to list your workspaces and projects, then switch to the ones you want to work on.
  4. Build and iterate. Describe what you want and let the agent call the relevant WeWeb tools.

Supported clients ​

The following clients are supported today:

ClientConnection method
ChatGPTAdd a custom connector with the server URL
Claude DesktopAdd a custom connector with the server URL, or edit the config file manually
Claude CodeSingle terminal command
CursorMCP config entry
VS CodeMCP config entry, or add through MCP settings
CodexAdd a Streamable HTTP server in settings, then click Authenticate
AntigravityAdd an entry to mcp_config.json

Connect your client ​

ChatGPT

Follow along in the guide above, or use these steps:

  1. Click your user profile.
  2. Click Settings.
  3. Click Connectors.
  4. Click Advanced settings.
  5. Toggle on developer mode.
  6. Click Create.
  7. Name it WeWeb.
  8. Copy the MCP URL from this page:
https://ai-api.weweb.io/v1/mcp
  1. Paste it into the Connection field in ChatGPT.
  2. Confirm you wish to create the app.
  3. When your browser opens, go to WeWeb to sign in.
  4. Click Authorize and approve access.
Claude Desktop

Follow along in the guide above, or use these steps:

  1. Click the + in the sidebar.
  2. Hover Connectors.
  3. Hover Add connector.
  4. Click Add custom connector.
  5. Name the connector WeWeb.
  6. Copy the MCP URL from this page:
https://ai-api.weweb.io/v1/mcp
  1. Paste the URL into the URL field in Claude.
  2. Click Add.
  3. When your browser opens, go to WeWeb to sign in.
  4. Click Authorize and approve access.

Manual setup ​

If you prefer to wire up the server by hand, open Claude Desktop's configuration file and register WeWeb there:

Follow along in the guide above, or use these steps:

  1. Copy the JSON block below.
  2. Click your user profile in the bottom left.
  3. Click Settings.
  4. Click Developer.
  5. Click Edit Config.
  6. Open the .json file in your code editor of choice.
  7. Inside the mcpServers object, paste the weweb-ai JSON you copied from above.
  8. Confirm your file matches the layout shown in the guide.
  9. Save the file (⌘ + S on Mac, Ctrl + S on Windows).
  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{
  "mcpServers": {
    "weweb-ai": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://ai-api.weweb.io/v1/mcp"]
    }
  }
}

INFO

Already running other MCP servers? Place the "weweb-ai" block alongside them, inside the single mcpServers object. Keeping one mcpServers key is what keeps the file valid JSON.

Restart Claude Desktop, and on restart you will be prompted to authenticate with WeWeb.

Claude Code

Follow along in the guide above, or use these steps:

  1. Copy the command below.
  2. Paste the command into your terminal.
bash
claude mcp add --transport http WeWeb https://ai-api.weweb.io/v1/mcp

The first time you use a WeWeb tool, Claude Code prompts you to authenticate.

Cursor

Follow along in the guide above, or use these steps:

  1. Copy the JSON block below.
  2. Click the settings cog icon.
  3. Go to MCP.
  4. Click Add new global MCP server.
  5. Inside the mcpServers object, paste the weweb-ai JSON you copied from above.
  6. Confirm your file matches the layout shown in the guide.
  7. Save the file (⌘ + S on Mac, Ctrl + S on Windows).
  8. Restart Cursor, and on restart you will be prompted to authenticate with WeWeb.
json
{
  "mcpServers": {
    "weweb-ai": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://ai-api.weweb.io/v1/mcp"]
    }
  }
}

INFO

Already running other MCP servers? Place the "weweb-ai" block alongside them, inside the single mcpServers object. Keeping one mcpServers key is what keeps the file valid JSON.

VS Code

Follow along with these steps to add WeWeb to your user-level MCP configuration:

  1. Open the Command Palette (⌘ + Shift + P on Mac, Ctrl + Shift + P on Windows).
  2. Run MCP: Open User Configuration.
  3. Copy the JSON block below.
  4. Inside the servers object, add the weweb-ai block alongside any other servers you already have.
  5. Save the file (⌘ + S on Mac, Ctrl + S on Windows).
  6. Restart VS Code, and on restart you will be prompted to authenticate with WeWeb.
json
{
  "servers": {
    "weweb-ai": {
      "type": "http",
      "url": "https://ai-api.weweb.io/v1/mcp"
    }
  }
}

INFO

Already running other MCP servers? Place the "weweb-ai" block alongside them, inside the single servers object. Keeping one servers key is what keeps the file valid JSON.

To add WeWeb to one project only, run MCP: Open Workspace Folder MCP Configuration in step 2 instead. This saves the server to .vscode/mcp.json in your workspace.

Codex

Follow along in the guide above, or use these steps:

  1. Open your profile menu in Codex and click Settings.
  2. Click Settings again to open Codex settings.
  3. Click MCP servers.
  4. Click Add server.
  5. Name the MCP WeWeb.
  6. Select Streamable HTTP.
  7. Copy the MCP URL from this page:
https://ai-api.weweb.io/v1/mcp
  1. Paste the URL into the URL field in Codex.
  2. Click Save.
  3. Click Authenticate, then sign in to WeWeb and approve access when prompted.
Antigravity

Follow along in the guide above, or use these steps:

  1. Click the ... menu in the Agent panel.
  2. Click MCP Servers.
  3. Click Manage MCP Servers.
  4. Click View raw config.
  5. Copy the JSON block below.
  6. In your mcp_config.json file, paste the weweb block inside the mcpServers object.
  7. Confirm your file matches the layout shown in the guide.
  8. Save the file (⌘ + S on Mac, Ctrl + S on Windows).
  9. Restart Antigravity, and on restart you will be prompted to authenticate with WeWeb.
  • MacOS and Linux: ~/.gemini/antigravity/mcp_config.json
  • Windows: %USERPROFILE%\.gemini\antigravity\mcp_config.json
json
{
  "mcpServers": {
    "weweb": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://ai-api.weweb.io/v1/mcp"
      ]
    }
  }
}

INFO

Already running other MCP servers? Place the "weweb" block alongside them, inside the single mcpServers object. Keeping one mcpServers key is what keeps the file valid JSON.

Authenticate and manage tools ​

No matter which client you use, connecting to the WeWeb MCP server prompts you to sign in to WeWeb and authorize access. The first time you connect, or when your session expires, your client opens a browser window with a screen like this:

Authorize access to WeWeb screen showing requested permissions and Authorize button

Review what access is being requested, confirm you are signed in to the correct WeWeb account, then click Authorize. Until you approve, the agent cannot call WeWeb tools on your behalf.

What are MCP tools? ​

An MCP server exposes tools: discrete actions the agent can run, such as creating a page, fetching table view data, or editing a workflow. You do not need to call these tools yourself. Describe what you want in plain language and the agent picks the right ones.

Once connected, your client lists the WeWeb tools available in the session. Many clients let you control how those tools are used, for example whether the agent can run a tool automatically or must ask for your approval first.

Tool permissions in Claude Desktop ​

This screenshot is from Claude Desktop, but other clients often offer similar controls in their own settings.

In Claude Desktop, open Settings → Connectors, then open your WeWeb connector. Under Tool permissions, choose for each tool or group of tools whether Claude can run it automatically, needs your approval, or is blocked.

Claude Desktop WeWeb connector settings showing tool permissions for individual WeWeb tools

See all available WeWeb tools →

Available tools ​

Once connected, your agent can call the tools below. They are grouped by area. You don't need to memorize them. Describe your goal in plain language and the agent picks the right tools.

Project & general ​

ToolDescription
listWorkspacesList the WeWeb workspaces accessible to your account
switchWorkspaceSwitch the active workspace for the session
listProjectsList the WeWeb projects available to your account
switchProjectSwitch the active project for the session
getWeWebDocumentationLook up WeWeb documentation to ground its work
getPageWorkflowTriggersContextGet available triggers for page workflows
getAppWorkflowTriggersContextGet available triggers for app workflows
getFrontendWorkflowActionsList available frontend workflow actions
getBackendWorkflowActionsList available backend workflow actions
wewebFeedbackSend feedback about the MCP experience
pingHealth check the connection

Pages & UI elements ​

ToolDescription
searchPagesFind pages in the project
createPageCreate a new page
updatePageUpdate a page's settings
getElementsDocumentationGet documentation for WeWeb elements
searchPageElementsFind elements on a page
getPageElementsVariablesList variables used by a page's elements
getElementLocalContextGet the local context of an element
getElementParentStatesInspect parent states of an element
getOtherPageSemanticRead the semantic structure of another page
editElementEdit an element's properties or style
editRepeatConfigure a repeat (list) on an element
addSectionAdd a section to a page
reuseSectionReuse an existing section (from another page) on the page
addElementsAdd elements to the page
replaceSectionReplace an existing section
replaceElementReplace an existing element

Design system ​

ToolDescription
searchTokensFind design tokens
createTokensCreate design tokens (colors, typographies, spacings)
editTokenEdit a design token
deleteTokenDelete a design token
getGuidelinesRead the design system guidelines
editGuidelinesEdit the design system guidelines
searchClassesFind CSS classes
createClassCreate a CSS class
editClassEdit a CSS class
deleteClassDelete a CSS class
activateIconSetActivate an icon set

Variables ​

ToolDescription
searchVariablesFind variables in the project
createVariableCreate a variable
editVariableEdit a variable
deleteVariableDelete a variable

Frontend workflows ​

ToolDescription
searchGlobalWorkflowsFind global (app, page, function) workflows
createOrEditElementWorkflowCreate or edit an element-level workflow
deleteElementWorkflowDelete an element workflow
createAppWorkflowCreate an app workflow
editAppWorkflowEdit an app workflow
createPageWorkflowCreate a page workflow
editPageWorkflowEdit a page workflow
createFunctionWorkflowCreate a function workflow
editFunctionWorkflowEdit a function workflow
deleteGlobalWorkflowDelete an app, page, or function workflow

Tables & data (WeWeb backend) ​

ToolDescription
listAllTablesList all tables
createTableCreate a table
dropTableDelete a table
renameTableRename a table
addColumn / dropColumn / renameColumn / modifyColumnTypeManage table columns
addConstraint / dropConstraintManage table constraints
getTableRowsRead rows from a table
addRow / updateRow / deleteRowManage table rows
createTableIntegration / deleteTableIntegration / renameTableIntegrationManage table integrations
listStorageFilesList files in storage

Table views (interface data) ​

ToolDescription
searchTableViewsFind table views
fetchTableViewDataFetch data from a table view
fetchRawTableDataFetch raw table data
createTableView / updateTableView / deleteTableViewManage table views
createTableViewIntegration / updateTableViewIntegrationManage table view integrations

Authentication & users ​

ToolDescription
installAuthProviderInstall an authentication provider
listInstalledAuthList installed auth providers
editAuthProviderConfigEdit an auth provider's configuration
deleteAuthProviderConfigRemove an auth provider
listUsers / createUserManage users
listRoles / createRole / deleteRoleManage roles

Backend workflows & environment ​

ToolDescription
listAllBackendWorkflowsList backend workflows
getBackendWorkflowRead a backend workflow
createBackendWorkflow / editBackendWorkflow / deleteBackendWorkflowManage backend workflows
listAllEnvVariablesList environment variables
createEnvVariable / editEnvVariable / deleteEnvVariableManage environment variables
getWeWebBackendStatusCheck the WeWeb backend status
installWeWebBackendUrlConnect a WeWeb backend to the project

Tips ​

  • Select a workspace and project first. Ask the agent to run listWorkspaces and switchWorkspace, then listProjects and switchProject, before making changes so it acts on the right project.
  • Set up backend work before interface work. When a request spans both, have the agent create tables and backend workflows before building the UI that depends on them.
  • Review as you go. Because tools run against your live project, keep an eye on changes and use the WeWeb editor and Preview to verify results.