Wix Site MCP

website·Indexed 32 days ago

https://songbookplus.com/

Documentation regarding the Wix Site Model Context Protocol (MCP), providing details on how to use and integrate the Wix Site MCP for website development.

Tokens
722
Snippets
4
Records
9
Agent score
16%

What's inside Wix

  1. Make API calls to Wix Site MCPs

    Wix site MCPs use the Model Context Protocol architecture. Requests are made as POST calls. Authentication is not required for site MCPs.
    curl -X POST "https://example.wixsite.com/example-store/_api/mcp" \
      -H "Content-Type: application/json" \
      -d '{
        "jsonrpc": "2.0",
        "method": "tools/call",
        "id": 1,
        "params": {
          "name": "SearchInSite",
          "arguments": { "searchTerm": "list available products" }
        }
      }'
  2. Connect an AI agent to a Wix Site MCP server

    Every Wix site has a built-in MCP (Model Context Protocol) server that allows compatible AI agents to interact with the site via natural language. The MCP server endpoint follows a standard format based on the site's domain.
    # Format: <wix-site.com>/_api/mcp
    # Example for https://andream.wixsite.com/andreas-kitchen
    https://andream.wixsite.com/andreas-kitchen/_api/mcp
  3. Use CallWixSiteAPI to perform site actions

    The CallWixSiteAPI tool executes API methods on a site to perform actions on a visitor's behalf (e.g., querying data or booking appointments).

    Parameters:

    • visitorToken: Visitor access token. Use an existing one if available, otherwise use the GenerateVisitorToken tool.
    • url: Absolute URI of the API method to call (typically starts with https://www.wixapis.com...). Use SearchSiteApiDocs to find this.
    • method: The HTTP method to use.
    • body: Request body as a valid JSON string.
  4. Retrieve Wix developer documentation via MCP

    Two tools allow AI agents to fetch technical documentation from the Wix developer portal:

    • ReadFullDocsArticle: Fetches a complete article. Requires articleUrl (URI format).
    • ReadFullDocsMethodSchema: Fetches the full schema for a specific Wix API method. Requires articleUrl (URI format). This should be called before calling the actual API method.
  5. Discover available tools on a Wix Site MCP server

    You can retrieve a list of all available tools, including their names, descriptions, and input schemas, by calling the tools/list method. The MCP server notifies clients when tools are updated; clients should call tools/list upon receiving such a notification.
    curl -X POST "https://example.wixsite.com/example-store/_api/mcp" \
      -H "Content-Type: application/json" \
      -d '{
        "jsonrpc": "2.0",
        "id": 4,
        "method": "tools/list"
      }'
  6. Use SearchInSite and SearchSiteApiDocs for discovery

    Wix provides two distinct search tools depending on the target information:

    • SearchInSite: General search for information within the site content. Takes a searchTerm parameter.
    • SearchSiteApiDocs: Specifically for querying products and services via the business solutions installed on the site. Takes a searchTerm parameter.