KosmoKrator

productivity

WP Engine MCP Integration for LangChain

Connect WP Engine to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write Bearer token auth

Connect WP Engine to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

WP Engine MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-wp_engine": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=wp_engine",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=wp_engine --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only WP Engine instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

WP Engine Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the WP Engine integration catalog.

MCP toolSource functionTypeDescription
integration__wp_engine__wp_engine_list_sites wp_engine.wp_engine_list_sites Read List WP Engine sites. Supports pagination with limit and page parameters.
integration__wp_engine__wp_engine_get_site wp_engine.wp_engine_get_site Read Get details for a specific WP Engine site by ID.
integration__wp_engine__wp_engine_list_installs wp_engine.wp_engine_list_installs Read List WP Engine installs. Supports pagination with limit and page parameters.
integration__wp_engine__wp_engine_get_install wp_engine.wp_engine_get_install Read Get details for a specific WP Engine install by ID.
integration__wp_engine__wp_engine_list_domains wp_engine.wp_engine_list_domains Read List domains across WP Engine installs. Supports pagination with limit and page parameters.
integration__wp_engine__wp_engine_list_users wp_engine.wp_engine_list_users Read List WP Engine users. Supports pagination with limit and page parameters.
integration__wp_engine__wp_engine_get_current_user wp_engine.wp_engine_get_current_user Read Get the profile of the currently authenticated WP Engine user. Useful for verifying credentials and displaying account information.

Related WP Engine Pages