Botailor ModelContext Integrator for AI is a powerful WordPress plugin that exposes selected posts and pages as AI-readable endpoints via the Model Context Protocol (MCP). This plugin provides a clean, secure way to make your WordPress content available to AI systems, external applications, and other services that need structured access to your content.
The plugin features granular permission control, allowing you to set specific permissions (Read, Write, Update, Delete) for each piece of content, ensuring your data remains secure while providing flexible access for authorized applications.
/wp-json/mcia/v1//wp-json/mcia/v1/endpoints/wp-json/mcia/v1/manifest and /.well-known/mcp-manifest.jsonRead Operations:
* GET /wp-json/mcia/v1/manifest – Get manifest (all exposed content)
* GET /wp-json/mcia/v1/endpoints – List all available endpoints
* GET /wp-json/mcia/v1/{slug} – Get individual content by slug
CRUD Operations (Require Authentication):
* POST /wp-json/mcia/v1/posts – Create new post
* PUT /wp-json/mcia/v1/posts/{id} – Update existing post
* DELETE /wp-json/mcia/v1/posts/{id} – Delete post
* POST /wp-json/mcia/v1/pages – Create new page
* PUT /wp-json/mcia/v1/pages/{id} – Update existing page
* DELETE /wp-json/mcia/v1/pages/{id} – Delete page
Well-known Endpoint:
* GET /.well-known/mcp-manifest.json – Public manifest (no authentication required)
Each content endpoint returns:
`json
{
“title”: “Page/Post title”,
“content”: “Page/Post content”,
“content_html”: “HTML formatted content”,
“description”: “Short description”,
“slug”: “content-slug”,
“type”: “post|page”,
“status”: “publish”,
“date”: “2024-01-01 00:00:00”,
“modified”: “2024-01-01 00:00:00”,
“author”: “Author Name”,
“featured_image”: “image-url”,
“meta”: {},
“url”: “permalink”
}
`
Configure Authentication:
Enable Content:
Test Read Operations:
`bash
Test manifest (no auth required)
curl “http://yoursite.com/.well-known/mcp-manifest.json”
Test authenticated manifest
curl -u “username:password” “http://yoursite.com/wp-json/mcia/v1/manifest”
Test individual content
curl -u “username:password” “http://yoursite.com/wp-json/mcia/v1/your-post-slug”
`
Test CRUD Operations:
`bash
Create a new post
curl -u “username:password” -X POST “http://yoursite.com/wp-json/mcia/v1/posts” \
-H “Content-Type: application/json” \
-d ‘{“title”: “Test Post”, “content”: “Test content”, “status”: “publish”}’
Update a post (replace {id} with actual post ID)
curl -u “username:password” -X PUT “http://yoursite.com/wp-json/mcia/v1/posts/{id}” \
-H “Content-Type: application/json” \
-d ‘{“title”: “Updated Title”, “content”: “Updated content”}’
Delete a post (replace {id} with actual post ID)
curl -u “username:password” -X DELETE “http://yoursite.com/wp-json/mcia/v1/posts/{id}”
`
Test Permission System:
This plugin follows WordPress coding standards and best practices:
Author: Hamid Azad
GitHub: https://github.com/hamidhosenazad
Email: hamidxazad@gmail.com
For support, feature requests, or bug reports, please visit the plugin’s GitHub repository or contact the author directly.