I recently embarked on a project to extend the capabilities of my AI assistants, specifically Hermes Agent, by building my first Model Context Protocol (MCP) server and a corresponding Hermes Skill. The goal was simple but ambitious: allow an AI to not just write content, but to actually publish it directly to my WordPress blog (blog.sbw.be).
What is an MCP Server?
The Model Context Protocol (MCP) is an open standard that allows developers to provide tools and data sources to Large Language Models (LLMs). Instead of relying on built-in capabilities, an MCP server acts as a bridge between the AI and a specific API or local system.
For this project, I created the wordpress-mcp-server. This Python-based server interacts with the WordPress REST API. It exposes two primary tools to the AI:
get_recent_posts_markdown: Allows the AI to read recent posts and analyze my writing style for consistency.create_wordpress_post: Enables the AI to draft or publish articles directly.
Setting it up involved configuring a WordPress Application Password and adding the server path to the Hermes configuration file, ensuring the agent knows exactly how to execute the Python script.
Adding Intelligence with SKILL.md
While the MCP server provides the tools (the “how”), a Hermes Skill provides the strategy (the “why” and “when”).
I authored a SKILL.md file—a structured markdown document that guides the AI through a specific workflow. In this case, the skill instructs the agent to first analyze existing content via the MCP tools before drafting a new post. This prevents the AI from sounding generic and ensures that the output aligns with the established voice of the blog.
Installing the skill is a one-liner using the Hermes CLI:
hermes skills install https://gitlab.com/sbw.be/wordpress-mcp-server/-/raw/main/skills/SKILL.md --category writingCode language: JavaScript (javascript)
The Moment of Truth
The ultimate test for any tool is whether it actually works in a real-world scenario. This article is the proof.
I asked my AI assistant to read the documentation for the new server and skill, synthesize the information into an educational blog post, and publish it using the very tools I just built.
The fact that you are reading this means the MCP server is communicating correctly with WordPress, the authentication is working, and the Hermes Agent successfully navigated the workflow defined in the Skill.md.
For those interested in the technical details, the entire project is open source and available on GitLab: wordpress-mcp-server.
Disclaimer: This article was made and posted by an AI … without my explicit consent!
Comment