{"id":30855506,"url":"https://github.com/miniorangedev/wordpress-ai-assistant","last_synced_at":"2025-09-07T11:07:25.758Z","repository":{"id":310499964,"uuid":"1037765594","full_name":"miniOrangeDev/WordPress-AI-Assistant","owner":"miniOrangeDev","description":"WordPress AI Assistant","archived":false,"fork":false,"pushed_at":"2025-08-18T13:00:15.000Z","size":7098,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-18T15:04:50.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miniOrangeDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-14T05:00:11.000Z","updated_at":"2025-08-18T13:00:21.000Z","dependencies_parsed_at":"2025-08-18T15:14:59.393Z","dependency_job_id":null,"html_url":"https://github.com/miniOrangeDev/WordPress-AI-Assistant","commit_stats":null,"previous_names":["miniorangedev/wordpress-ai-assistant"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/miniOrangeDev/WordPress-AI-Assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2FWordPress-AI-Assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2FWordPress-AI-Assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2FWordPress-AI-Assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2FWordPress-AI-Assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniOrangeDev","download_url":"https://codeload.github.com/miniOrangeDev/WordPress-AI-Assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2FWordPress-AI-Assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274026718,"owners_count":25209740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-07T11:07:22.863Z","updated_at":"2025-09-07T11:07:25.735Z","avatar_url":"https://github.com/miniOrangeDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## WordPress AI Assistant\n\nModel Context Protocol (MCP) server to let AI assistants safely create, read, update, and delete WordPress content and WooCommerce products via the official REST APIs.\n\n### Features\n- WordPress Pages and Posts: create/read/update/delete, list\n- Custom fields (meta): set/get/delete\n- Media: upload and attach to posts/pages\n- Taxonomies: create category/tag and assign to posts\n- Users: create/update/delete, list/get\n- WooCommerce Products: create/read/update/delete, list\n\n### Requirements\n- Node.js 18.17+ and npm\n- WordPress 5.6+ reachable at `https://your-site.com/wp-json/`\n- Authentication\n  - WordPress: Application Passwords or Basic Auth plugin\n  - WooCommerce: REST API keys (consumer key/secret) with read/write\n\n### 1) Clone and install\n```bash\ngit clone https://github.com/miniOrangeDev/WordPress-AI-Assistant.git\ncd WordPress-AI-Assistant\nnpm install\n```\n\n### 2) Configure environment\nCreate `.env` in project root with your credentials:\n```env\n# WordPress\nWP_SITE_URL=https://your-wordpress-site.com\nWP_USERNAME=your-username\nWP_PASSWORD=your-application-password-or-password\nWP_API_VERSION=v2\n\n# WooCommerce\nWC_CONSUMER_KEY=ck_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nWC_CONSUMER_SECRET=cs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\nNotes\n- You can also provide credentials per-call via tool params if you prefer not to use env.\n- Application Passwords are recommended for WordPress.\n\n### 3) Build\n```bash\nnpm run build\n```\n\n### 4) Use with an MCP client\nConfigure your MCP-enabled client (e.g., Claude Desktop) to launch this server. Example config:\n```json\n{\n  \"mcpServers\": {\n    \"wordpress\": {\n      \"command\": \"node\",\n      \"args\": [\"path/to/dist/index.js\"],\n      \"env\": {\n        \"WP_SITE_URL\": \"https://your-wordpress-site.com\",\n        \"WP_USERNAME\": \"your-username\",\n        \"WP_PASSWORD\": \"your-app-password\",\n        \"WC_CONSUMER_KEY\": \"ck_xxx\",\n        \"WC_CONSUMER_SECRET\": \"cs_xxx\"\n      }\n    }\n  }\n}\n```\nRestart the client. It should detect a server called `wordpress-mcp` with tools below.\n\n### 5) Quick test flows\n- Pages\n  - create_page: title=\"MCP Test Page\", status=\"draft\"\n  - get_page: pageId from previous response\n  - update_page: pageId, title/content\n  - delete_page: pageId, force true/false\n\n- Posts\n  - create_post: title, content, status\n  - get_post / get_posts\n  - update_post / delete_post\n\n- Custom fields\n  - set_custom_field: type=\"page\"|\"post\", id, key, value\n  - get_custom_fields / delete_custom_field\n\n- Media\n  - upload_media: fileName, mimeType, fileDataBase64\n  - attach_media: mediaId, id, type=\"page\"|\"post\"\n\n- Taxonomies\n  - create_category / create_tag\n  - assign_terms: id (post), categories? [], tags? []\n\n- Users\n  - create_user: newUsername, email, newPassword, name?, roles?\n  - update_user: userId, email?, newPassword?, name?, first_name?, last_name?, url?, description?, roles?\n  - delete_user: userId, reassign?, force?\n  - get_user / get_users\n\n- WooCommerce Products\n  - create_product: name, type?, status?, sku?, regular_price?, sale_price?, description?, images?, stock fields, categories?/tags? (IDs)\n  - update_product: productId plus any fields (null arrays clear terms)\n  - delete_product: productId, force?\n  - get_product / get_products: search?, status?, sku?, pagination\n\nTip (Windows, PowerShell) to base64 an image for upload:\n```powershell\n[Convert]::ToBase64String([IO.File]::ReadAllBytes('C:\\path\\to\\image.jpg'))\n```\n\n### 6) Troubleshooting\n- 401 Authentication failed: verify credentials or Application Password\n- 403/404: ensure IDs exist and your user has required capabilities\n- Media upload: use raw base64 (no data URI prefix), correct mime type\n- WooCommerce: ensure keys are Read/Write and REST v3 is enabled\n\n### Scripts\n- build: `npm run build` — compile TypeScript to `dist/`\n- start: `npm start` — run compiled server (requires an MCP client over stdio)\n- typecheck: `npm run typecheck` — run TS without emitting\n\n### Project layout\n- `src/index.ts`: entry\n- `src/server.ts`: MCP server and tool registration\n- `src/services/*`: API clients (WordPress, WooCommerce, auth)\n- `src/types/*`: shared type definitions\n- `src/utils/*`: helpers (errors, validation, NLP)\n\n### Security\n- Do not commit `.env`\n- Prefer Application Passwords over plain passwords\n- Avoid logging secrets; rotate keys regularly\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiorangedev%2Fwordpress-ai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiorangedev%2Fwordpress-ai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiorangedev%2Fwordpress-ai-assistant/lists"}