simpli-wordpress-mcp

simpli-wordpress-mcp

A remote MCP gateway that securely exposes WordPress site abilities through the Abilities API, enabling natural-language control of posts, WooCommerce, Elementor, ACF, Rank Math, and more.

Category
访问服务器

README

Simpli WordPress MCP

A Railway-hosted, OAuth-protected remote MCP gateway for the WordPress Abilities API. It dynamically mirrors the existing Novamira and Novamira Pro abilities on one configured WordPress site instead of duplicating privileged WordPress code.

Verified scope

The Simpli Cosmetics production site was inspected on 12 August 2026. It currently exposes 187 REST abilities:

Namespace Live abilities
novamira/* 157
rank-math/* 13
wpforms/* 8
woocommerce/* 7
core/* 2
Total 187

The mirrored surface includes:

  • PHP execution in the loaded WordPress runtime;
  • file read, write, edit, delete, enable/disable, and directory traversal;
  • temporary upload links and one-time administrator access links;
  • synchronous and background WP-CLI jobs;
  • Gutenberg read/write and pending-change batches;
  • WordPress posts, memory, and Markdown skills;
  • WooCommerce products, variations, orders, categories, tags, attributes, stock, and store settings;
  • Elementor documents, elements, styles, variables, classes, dynamic tags, and interactions;
  • ACF field groups, values, post types, taxonomies, and options pages;
  • Rank Math metadata, schema, audits, scores, links, keywords, and AI visibility;
  • WPForms forms, fields, notifications, confirmations, settings, duplication, and statistics.

The gateway refreshes the catalog from WordPress every five minutes by default. New REST-exposed abilities installed later are automatically added to MCP with their original JSON input schema and safety annotations.

Architecture

flowchart LR
    C["ChatGPT / Codex"] -->|"OAuth 2.1 + MCP"| R["Railway gateway"]
    R -->|"Dedicated Application Password"| W["WordPress Abilities API"]
    W --> N["Novamira + Pro"]

Only the gateway is deployed to Railway. WordPress already contains Novamira, Novamira Pro, the MCP Adapter, and WP-CLI; no second control plugin is required.

Security model

  • OAuth 2.1 Authorization Code flow with PKCE, dynamic client registration, protected-resource discovery, short-lived access tokens, and refresh tokens.
  • A separate owner authorization password protects OAuth consent.
  • A dedicated, revocable WordPress Application Password is stored only as a Railway secret.
  • The target WordPress origin is fixed in server configuration; tools cannot redirect the gateway to an arbitrary host.
  • WordPress remains the authority for each ability's permission callback and schema validation.
  • Read, write, and dangerous scopes are enforced server-side.
  • Novamira's PHP, WP-CLI, admin-link, and destructive abilities always require wordpress:dangerous and an exact _confirm value.
  • MCP safety annotations are generated from the live WordPress annotations so clients can apply approval controls.
  • Tool output is capped, request timeouts are enforced, redirects are rejected, credentials are never logged, and OAuth/MCP endpoints are rate-limited.
  • Railway's /health endpoint is liveness only. /ready verifies that the WordPress ability catalog is available.

Local verification

Requirements: Node.js 22 or later.

npm ci
npm run check
npm test
npm run build

Copy .env.example to .env, fill the required values, then run:

npm run dev

Inspect http://localhost:3000/mcp with MCP Inspector using the optional MCP_STATIC_TOKEN as a Bearer token. Leave MCP_STATIC_TOKEN unset in the public production deployment unless a separate API integration specifically needs it.

Railway deployment

  1. Create a dedicated WordPress administrator account for the gateway. Generate one Application Password named Railway Simpli MCP. Do not reuse a human password.

  2. Create a Railway service from this repository or run railway up from this directory.

  3. Add the variables shown in .env.example. Generate secrets locally:

    openssl rand -base64 48
    openssl rand -base64 48
    
  4. Set PUBLIC_BASE_URL to the final HTTPS origin. If using a Railway-generated domain first, use that origin. If using mcp.simplicosmetics.co.ke, add it as a Railway custom domain and point the Cloudflare DNS record to the Railway target before changing this variable.

  5. Confirm Railway reports /health as HTTP 200.

  6. Open /ready; it must report ready: true and the expected ability count.

  7. Add the complete /mcp URL as a remote MCP connection. The client will discover OAuth, dynamically register, and open the owner authorization page.

  8. Run the acceptance checks in docs/ACCEPTANCE.md before enabling live write tools.

Railway injects PORT; the service listens on it automatically. The included railway.json configures Docker builds, /health, and restart-on-failure.

Operational rollback

Rollback is immediate and does not change WordPress code:

  1. revoke the Railway Simpli MCP Application Password in WordPress;
  2. pause or remove the Railway service;
  3. remove its custom DNS record if one was created.

Existing Novamira functionality inside WordPress remains untouched.

Primary technical references

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选