>_ DevTrendsen

Language

Home

Languages

Sections

Frontend Backend Mobile DevOps AI / ML GameDev Blockchain Embedded Security
PHP

Full AI Access to WordPress: Breaking Down Novamira's MCP Server

Language model interaction with WordPress is typically limited to REST API boundaries. A model can create a post, update meta fields, generate text, or return a user list. However, attempts to entrust a neural network with debugging a theme crash, writing complex plugin business logic, or finding a conflicting hook quickly hit the API walls. The neural network simply cannot see the site's files and cannot execute arbitrary code on the server.

A project called Novamira (from the use-novamira organization) recently appeared on GitHub. The developers took a straightforward approach: they built an MCP server that gives AI agents direct rights to execute PHP code and work with the engine's filesystem.

Novamira

What is Model Context Protocol and What Does It Have to Do with WordPress

Model Context Protocol (MCP) is an open standard designed to connect external tools to LLM clients like Claude Desktop, Cursor, or Windsurf. Instead of writing unique integrations for each IDE or neural network, a developer spins up an MCP server. The agent sees available tools, their parameters, and callable results.

Novamira acts as a bridge between this protocol and the WordPress context. The project is written entirely in PHP, which is natural for the WP ecosystem.

The main idea behind the service is to remove intermediaries. Instead of emulating actions through the command line or REST API limitations, the agent gets a tool for direct code injection and file manipulation.

+------------------+         MCP Protocol         +-------------------+
|  AI Agent / IDE  |  <------------------------>  |  Novamira Server  |
| (Cursor, Claude) |                              |    (PHP / WP)     |
+------------------+                              +---------+---------+
                                                            |
                                        Direct Code & Files | Access
                                                            v
                                                  +-------------------+
                                                  |  WordPress Core   |
                                                  |  Plugins & Themes |
                                                  +-------------------+

What an Agent with PHP and Filesystem Access Can Do

The combination of directory access and PHP execution opens up scenarios for agents that were previously available only to a developer with an SSH key and an open IDE.

Locating and Fixing Errors in Real Time

Imagine situations where a site returns the white screen of death due to a fatal error in a custom plugin. An agent with access to Novamira can independently scan logs, open the problematic file, read the call context, create a test PHP script to verify the hypothesis, and apply a fix.

Writing and Automatically Testing Plugins

A developer can ask the model to add a new post type with specific metaboxes. The agent creates the plugin code in the wp-content/plugins/ directory, triggers WordPress internal functions for activation, and immediately checks whether the post type registered without PHP notices.

Deep Refactoring and Database Operations

Through PHP execution, the model gains access to the global $wpdb object. This enables complex data queries, cleaning outdated option entries in wp_options, or updating table structures without forcing a person to manually copy SQL queries.

The Security Problem

Giving a language model the right to execute arbitrary PHP code and modify files on the server is a risky idea. In case of a hallucination or an incorrectly generated while loop, the model can easily crash the process or corrupt files.

For this reason, using Novamira on a production server is not allowed. The tool is designed to work in a local environment or on isolated staging environments in Docker.

The documentation on novamira.ai and in the repository itself is still brief. The README contains only a brief annotation, a link to the AGPL-3.0 license, and a guide for contributors. Therefore, understanding the nuances of server configuration currently requires studying the source code.

Practical Applications

The project will be useful to several categories of specialists:

  • WordPress plugin and theme developers who use AI assistants in code editors.
  • Authors of complex agents who need an environment for autonomous hypothesis testing within PHP.
  • Support teams building local environments for rapid client problem diagnosis.

To get started, you'll need a configured PHP environment with a working WordPress installation and an MCP client that supports connecting to external servers.

Conclusion

Novamira looks like a bold experiment at the intersection of a classic PHP monolith and modern autonomous AI agents. The project is only a few months old, has about 550 stars on GitHub, and its documentation is still taking shape.

Nevertheless, the approach of providing direct PHP context instead of narrow API endpoints shows where development tools are heading. If you frequently write for WordPress and use editors like Cursor, deploying Novamira in a test Docker container is a great way to look at routine automation from a new angle.

Related projects