SLB User Guide

Connecting the MCP

The MCP is a small helper program on your computer. It lets Claude Code read and change your SLB site through the WordPress admin API. This page gets you connected.

What you need

Set up

  1. Turn on Developer Mode. SLB Editor > Settings > Developer Mode, tick the box and Save (see enable safely).
  2. Copy the MCP folder. Take the mcp folder from the plugin (wp-content/plugins/slb/mcp on the server, or from the zip) to a folder on your computer.
  3. Install it once. Open a terminal in that folder and run npm install.
  4. Generate the credential. On SLB Editor > Settings > MCP Connection click Generate MCP credential. The page shows the connection details once. Copy them immediately.
  5. Save the settings. Create a file named .env inside the mcp folder with what the page showed:
    WP_URL=https://your-site.com
    WP_USER=your-admin-username
    WP_APP_PASSWORD=abcd efgh ijkl mnop qrst uvwx
  6. Register it with Claude Code. In a terminal run the command shown on the page:
    claude mcp add slb -- node "/full/path/to/mcp/src/index.js"
    Or add a .mcp.json file to your project:
    {
      "mcpServers": {
        "slb": {
          "command": "node",
          "args": ["/full/path/to/mcp/src/index.js"]
        }
      }
    }
  7. Restart Claude Code so it loads the new server.

Keep the .env private. The Application Password works like a key to the SLB tools. Never email it, never commit it to a public repository. If it leaks, regenerate it. It only works for SLB routes, and you can also revoke it at Users > Profile > Application Passwords.

Settings reference

SettingMeaning
WP_URLYour site address.
WP_USERThe WordPress username.
WP_APP_PASSWORDThe Application Password. Spaces are ignored. It must be at least 20 characters.
ALLOW_INSECURE_HTTP=trueOnly for a local http:// test site.
FIGMA_TOKENOptional, for Figma imports (Figma page).
SLB_BROWSER_PATHOptional. Path to Chrome or Edge if the audit cannot find it.
DEBUG=trueOptional. More detailed messages when troubleshooting.

Test the connection

Ask Claude:

List the SLB sections available on my site.

Success looks like a list of section names. If you see an error, see Troubleshooting.

First prompts

List all pages on my site that use SLB, with their status.
Show me the sections on the Home page and summarise what each one says.
Create a draft theme from the live one, then tell me when it is ready.

What the MCP can and cannot do

Next: Developer Mode.