May 4, 2025

No‑Code Guide: Turn WordPress into an MCP Server with Convoworks WP

You’ve probably seen the buzz on X and elsewhere about the Model Context Protocol (MCP), Anthropic’s proposed standard for letting AI assistants (Claude, Copilot, etc.) call external tools and data. With the Convoworks WP plugin, WordPress users can now join the fun by spinning up MCP servers from a no‑code, web‑based interface—no TypeScript, no custom code.

What Is the Model Context Protocol (MCP)?

Think of MCP as a thin, JSON‑RPC layer that lets AI agents and your service speak the
same language. A connection starts with an initialize request in which
the client and server negotiate:

  • Protocol version — ensures both sides understand the spec.
  • Capabilities — each party advertises what it can do
    (e.g. provide tools, subscribe to resources, emit logs).
  • Session ID — a stateful handle that lives for the entire
    conversation.

After that handshake, communication flows over two channels: ordinary JSON‑RPC requests
and a long‑lived Server‑Sent Events stream for server‑side notifications. What gets sent
across those channels is completely up to you, courtesy of three extensible MCP
primitives:

Primitive Purpose Convoworks WP
Tools Callable functions the AI can invoke (REST endpoints, PHP helpers…) Available ✓
Prompts Reusable templates the client can fetch and fill with arguments Available ✓
Resources Read‑only data addressed by URI (files, DB rows, etc.) Coming soon ⚠

Because MCP only standardises the envelope (sessions + capability exchange),
developers are free to invent any tool, prompt, or resource shape that suits their app.
In the initial Convoworks WP implementation we focused on:

  • Tools — exposing both ad‑hoc chat functions and the full WP REST API.
  • Prompts — letting you register parameterised prompt templates.

Resource support is already on the roadmap and will drop into the same no‑code editor as soon as it lands.

Installation & Setup

To turn your site into an MCP server:

  • Install Convoworks WP from the WordPress org plugin directory.
  • Install the Convoworks GPT package – download the latest release from GitHub.
  • Create a new service and pick the MCP Server Example template.
  • Open Configuration → Platforms, enable MCP Server (no extra settings needed).
  • Under Releases, click LINK next to convo-gpt.mcp-server to copy your base MCP URL.
  • Paste that URL into any SSE‑capable client (e.g. Claude Desktop with mcp-proxy).

Video Tutorials

Run an MCP Server on Your Site: Pure WordPress, Zero TypeScript
Highly recommended — the quickest way to see MCP in action.
This walk‑through shows how to spin up an MCP server from the ready‑made template, enable the platform, connect Claude Desktop, and test WordPress REST calls—all without writing any code.

Turn Your Convoworks WP Chatbot into an MCP Server — Agent‑to‑Agent Style
Perfect if you want to dive deeper: learn how to modify Convoworks services, add new functions, and understand what MCP really offers.
Starting from the GPT Site Admin template, this video shows how to add an MCP Server block, reuse call_user_func_array(), and create a single ask_website_admin(query) function that streamlines AI interactions in an A2A (agent to agent) way.

WordPress REST API as MCP Tools

Convoworks GPT ships with built‑in definitions that expose the entire WP REST API as MCP tools.
Each endpoint family is activated through its own filter, letting you enable only what you need.
See Example 3 – External Functions in the MCP Server Example template for a live demo.

Available Filters

convo_mcp_register_wp_posts,
convo_mcp_register_wp_pages,
convo_mcp_register_wp_comments,
convo_mcp_register_wp_users,
convo_mcp_register_wp_media,
convo_mcp_register_wp_plugins,
convo_mcp_register_wp_taxonomies,
convo_mcp_register_wp_settings

Stdio‑Only Clients? Use mcp-proxy

Some desktop clients (e.g. Claude Desktop) speak stdio rather than SSE.
Bridge them with the Node package mcp-proxy:

npm install -g mcp-proxy

Add a block to your client config, pointing to the MCP endpoint you copied from Releases → LINK:

"convoworks-proxy": {
  "command": "mcp-proxy",
  "args": [
    "http://your-site.com/wp-json/convo/v1/public/service-run/external/convo-gpt/mcp-server/a/mcp-prototype"
  ]
}

Advanced Configuration & Security

The plugin offers several constants you can override in wp-config.php before plugins load:

// Where session files are stored (filesystem for now, DB soon)
define('CONVO_GPT_MCP_SESSION_STORAGE_PATH', '/path/to/mcp-sessions/');

// How long an idle session lives (seconds)
define('CONVO_GPT_MCP_SESSION_TIMEOUT', 1800); // 30 min

// Poll interval for new messages (microseconds)
define('CONVO_GPT_MCP_LISTEN_USLEEP', 300000); // 0.3 s

// Ping heartbeat to keep background process alive (0 = disabled)
define('CONVO_GPT_MCP_PING_INTERVAL', 30);

Session storage is currently file‑based under CONVO_GPT_MCP_SESSION_STORAGE_PATH; a future release will migrate sessions to the database.

MCP Server Example – Service Variables

  • MCP_AUTH_USER_ID (default 0) — WordPress user ID under which proxy calls run.
  • MCP_ACTIVE_REST_APIS (default ["convo_mcp_register_wp_posts"]) — list of filters to register as tools.

Security note: MCP currently has no built‑in auth. Anyone with your endpoint can connect.
If you set MCP_AUTH_USER_ID on a public site, all calls execute with that user’s privileges.
Basic Auth (quick fix) and OAuth 2 (full solution) are on the roadmap.

Roadmap

  • Complete 2024‑11‑05 spec parity
    Finish the remaining features from the original MCP spec:

    • “tools/list_changed” notifications
    • Full prompt‑template workflow
    • Resource listing & read support
  • Switch session storage from files to DB
    Faster look‑ups, better concurrency, and easier scaling.
  • Adopt MCP v2 (2025‑03‑26)
    Add capability batching, streamable HTTP transport, and OAuth 2.0 authorization.

Conclusion

MCP support in Convoworks opens the door to deeply integrated, tool‑calling AI assistants inside WordPress. With a no‑code editor, you can expose REST endpoints, PHP functions, or entirely custom workflows to any MCP‑aware client.

Ready to dive deeper? Check the Convoworks docs or explore the code on GitHub.

Tihomir Dmitrović

Tihomir Dmitrović

Full stack developer with 20+ years of professional experience, specialized in solving complex problems in a scalable manner. Founded Convoworks, which is a GUI based tool for creating voice and chatbot applications through WordPress.

Mar 28, 2025  | 

A No-Code Experiment: Bringing Deep Research to WordPress

Deep Research Assistant is a groundbreaking, no-code AI research tool that automates iterative web searches, extracts key insights, and produces structured reports – all through a user-friendly GPT chat interface.

VIEW FULL POST

Nov 14, 2024  |  ,

A Dead Simple RAG Setup for WordPress: AI Chatbots for Small Websites

Discover how to set up a dead-simple RAG-based AI chatbot on your small WordPress website. With Convoworks, you can easily enable a chatbot that retrieves information directly from your pages, enhancing user experience with minimal setup. Perfect for small sites looking to leverage GPT-powered chat functionality in minutes!

VIEW FULL POST