import { Button, Card, CardBody, CardHeader, TextControl } from '@wordpress/components'; import { useState } from '@wordpress/element'; export default function Instructions( { navigate } ) { const endpointUrl = window.wlconduitData?.mcpEndpoint || ''; const profileUrl = window.wlconduitData?.profileUrl || ''; const siteName = window.wlconduitData?.siteName || 'my-site'; const currentUser = window.wlconduitData?.currentUser || 'your_username'; const [ copied, setCopied ] = useState( false ); const [ appPassword, setAppPassword ] = useState( '' ); function copyEndpoint() { navigator.clipboard.writeText( endpointUrl ); setCopied( true ); setTimeout( () => setCopied( false ), 2000 ); } const siteSlug = siteName.toLowerCase().replace( /[^a-z0-9]+/g, '-' ); const base64Creds = appPassword ? btoa( currentUser + ':' + appPassword ) : 'YOUR_BASE64_CREDENTIALS'; return (
This is the URL your AI client needs to connect to your site:
{ endpointUrl }
AI Conduit lets you create MCP (Model Context Protocol) tools that expose your WordPress content to AI assistants like Claude, Cursor, and other MCP-compatible clients.
Think of it as building a bridge between your WordPress site and AI. You decide exactly what data the AI can access — which posts, which fields, which filters — using a simple drag-and-drop builder.
Your Base64 credentials (auto-generated):
{ base64Creds }
The configs below are pre-filled with your credentials. Just copy and paste.
Run this in your terminal:
{ `claude mcp add ${ siteSlug } --transport http ${ endpointUrl } --header "Authorization: Basic ${ base64Creds }"` }
Requires{ ' ' }
Node.js{ ' ' }
installed on your machine. Add this to your claude_desktop_config.json:
Windows users: If npx fails with "C:\Program is not recognized",
replace "npx" with "C:\\PROGRA~1\\nodejs\\npx.cmd" (short path avoids spaces).
{ JSON.stringify( {
mcpServers: {
[ siteSlug ]: {
command: 'npx',
args: [
'-y',
'mcp-remote',
endpointUrl,
'--header',
'Authorization: Basic ' + base64Creds,
],
},
},
}, null, 2 ) }
AI Conduit works with any AI client that supports the Model Context Protocol (MCP) over Streamable HTTP with Basic Auth. Use the MCP endpoint URL and credentials above to configure your preferred client.
| Block | What it does |
|---|---|
| Posts | Fetch posts, pages, or any custom post type. Supports filtering by category, tag, author, date, custom fields, and custom taxonomies. |
| Users | Retrieve user information — names, roles, and registration details. |
| Site Info | Get site-level information like title, tagline, URL, language, and active theme. |
| Comments | Fetch comments on posts — content, author, date, and approval status. |