Directorist MCP lets you connect an AI assistant to your directory and manage supported tasks through conversation. You can ask the assistant to configure a directory, update listings, organise categories, review orders, or explain your dashboard activity.
MCP stands for Model Context Protocol. Your AI client interprets your request, and Directorist checks the connected WordPress account’s permissions before reading or changing data.
This guide covers enabling MCP, connecting a client, checking the connection, and using the available tools.
Before you start #
Make sure the following are in place:
| Requirement | Details |
| Directorist | Active, with the MCP feature available. This guide follows the inline Set up a connection interface shown in the updated MCP settings. |
| WordPress | Version 6.9 or later, with the WordPress Abilities API available. |
| MCP Adapter | WordPress MCP Adapter 0.6.1 or later, installed and active. If required, use the installation or activation option offered during MCP setup. |
| Administrator access | Required to enable MCP and open its connection settings. Plugin installation or activation also requires the relevant WordPress permissions. |
| HTTPS | A trusted HTTPS connection for the website. |
| Application passwords | Available for the WordPress account that will connect. |
| AI client | Supports HTTP MCP connections with a custom Authorization header, or a compatible local bridge. |
The Set up a connection section provides options for Claude Code, Claude Desktop, Cursor, Codex, and Other. The supplied setup requires a client that supports the provided configuration; clients that accept only OAuth connections are not supported by this setup.
Step 1 Open MCP settings #
Path: WP Admin → Directorist → Settings → Other Features → MCP

Find MCP for AI Agents.
If the page shows Setup required, resolve the dependency message first:
Click Install & Activate MCP Adapter if the adapter is not installed.
Click Activate MCP Adapter if it is installed but inactive.
If the active adapter is incompatible, update it from WordPress Plugins, then follow the setup check shown on the MCP settings page.
If the installation or activation button is unavailable, ask an administrator with the required plugin permissions to complete that step.
Step 2 Enable Directorist MCP #
Turn on the switch beside MCP for AI Agents.

Wait for the saving indicator to finish.
Locate the inline Set up a connection section below the switch. When expanded, the control beside the switch reads Hide setup.
This switch saves immediately. You do not need a separate Save changes action for the MCP switch.
Enabling MCP makes the server available for authorised connections. Continue below to connect your AI client.
Step 3 Choose your AI app #
In Set up a connection, follow the numbered setup sections on the MCP settings page.
Under Choose your AI app, you can select Claude Code, Claude Desktop, Cursor, Codex, or Other. For the Codex walkthrough below, select Codex.

The connection instructions change to match your selected app. The available tool count can vary by account, permissions, dependencies, and active integrations.
Step 4 Create an application password #

- Under Add your WordPress credentials, check the account shown beside Connecting as. Select Use a different account if you need to connect with another WordPress account.
- Click Create one to open the application-password section of your WordPress profile.
- Give the connection a name you will recognise, such as “Directory assistant,” and generate an application password.
- Copy the generated application password. This is different from your WordPress login password.
- Return from your WordPress profile to Directorist → Settings → Other Features → MCP.
- Paste the copied password into Application password. The connection configuration below is prepared for the selected AI app.

Use an application password belonging to the account whose permissions you want the assistant to have. For a listing owner, use that owner’s account; for directory administration, use an account with the required administration capabilities.
Step 5 Configure your AI client #
Use the instructions under the third setup section, which is labelled for your selected AI app. Copy the configuration with the copy icon beside it.
Entering the application password prepares a ready-to-use configuration. A template with placeholders is not ready to authenticate until you supply your own account credentials. For clients that require separate fields, expand Advanced connection details to find Endpoint URL, Header Key, and Header Value.
| Client option | How to use the generated configuration |
| Claude Code | Use the generated HTTP connection command in the client terminal. |
| Claude Desktop | Add the generated local bridge configuration. Node.js is required for this path; restart the client after saving its configuration. |
| Cursor | Add the generated entry to the client’s MCP server configuration. |
| Codex | Follow the Codex desktop walkthrough below to add a Streamable HTTP server with the endpoint URL and Authorization header. |
| Other | Use the HTTP configuration in a client that supports the required custom header, or a compatible bridge. |
Connect using Codex desktop #
Follow these steps in Codex desktop:
- Open Settings → Plugins and select MCPs.
- Click Add, then choose Add MCP server.
- In Connect to a custom MCP, enter a name such as Outfield MCP.
- Select Streamable HTTP as the Type.
- In Directorist, expand Advanced connection details and copy Endpoint URL. Paste it into Codex’s URL field.
- Under Headers, enter Authorization as the key, matching the Directorist’s Header Key.
- Copy Directorist’s complete Header Value into the header value field. Include Basic, the following space, and all of the encoded text. Use the value generated after entering your application password; do not copy a placeholder.
- Leave Bearer token env var empty.
- Save the connection and restart Codex if prompted. Open a new conversation, then continue to Step 6 to verify the connected account and tools.
The endpoint shown by your own site accounts for your WordPress URL configuration. With a standard REST URL, it looks like https://your-site.example/wp-json/directorist/mcp.
Keep the complete Header Value private. Do not include a real credential in a public guide, screenshot, or video.
Follow your client’s supported workflow to save and activate the connection. Depending on the client, you may need to reload or restart it before the tools appear.
A filled configuration or Header Value contains an encoded credential. Keep it and the application password private, and mask them in screenshots or recordings. Collapsing the setup section does not remove a configuration already saved in your AI client. To disconnect that client, remove its saved connection or revoke its application password as described below.
Step 6 Verify the connection #
The MCP settings page also includes an expandable Test your connection section. To verify access from your AI client before making changes, ask your assistant:
Check my Directorist connection and show the connected account and available tools.
The assistant should initialise the connection, discover the tools, and call directorist-get-context. Its response identifies the connected account and available Directorist tools.
Check that the account is the one you intended to connect. Then try a read-only request, such as:
List the directories I can manage.
An administrator should receive the directory list. An account without directory-administration permission may not have that tool; a listing owner can instead ask to see the listings they are permitted to manage.
What you can do after connecting
The assistant can combine supported tools to carry out a task. For example:
| Task | Example request |
| Set up a directory | “Create a restaurant directory with submission fields, a single listing layout, listing cards, and search filters.” |
| Maintain listings | “Update this listing’s description using the details I provide.” |
| Organise the catalogue | “Create the approved cuisine categories and assign these listings to them.” |
| Prepare several updates | “Preview changes to the phone numbers for these ten listings.” |
| Work with images | “Attach these authorised images to their matching listings and include the source credits.” |
| Change supported settings | “Enable guest listing submission.” |
| Review purchases | “Show orders from the past six months, with their values, customer IDs, and statuses.” |
| Review directory activity | “Show published and pending listings, upcoming expiries, and available order summaries.” |
| Prepare diagnostics | “Generate a Directorist support report with WordPress, runtime, and MCP information.” |
Tool availability follows the account’s WordPress permissions and the site’s configuration. Directory builders and site-wide settings require administration access. Listing owners can work with their permitted records. Customers can inspect their own orders and cancel an eligible pending purchase.
Guest submissions remain a website submission setting. An MCP connection still requires an authenticated account with appropriate access.
Disconnecting a client
To disconnect one client, open your WordPress profile and revoke the application password you created for that connection. The client will need a valid credential before it can authenticate again.
To stop Directorist MCP access site-wide:
Go to Directorist → Settings → Other Features → MCP.
Turn off MCP for AI Agents.
Wait for the change to finish saving and confirm that the MCP for AI Agents switch remains off.
Disabling MCP stops the Directorist tools. It does not revoke application passwords that may also be usable with other WordPress APIs.