In the last post, I explained why I stuck to a “boring” architecture (Node.js, PostgreSQL, EC2) for my blog revival. I did it to create a stable environment for my new “AI Engineering Team.”
But there is a missing link.
I have Cursor and Anti-gravity (my Junior Devs) helping me write code. And I have the LLMs (Claude/Gemini) ready to manage my content. But the LLMs are usually trapped in a chat window.
They are smart, but they are blind. They can’t see my database. They can’t check my previous posts. They can’t do anything unless I copy-paste data to them.
To fix this, I needed to give them hands. I needed to bridge the gap between the “Brain” (the AI) and the “Memory” (my Database).
That bridge is the Model Context Protocol (MCP).
The Problem: The Copy-Paste Bottleneck
Writing the code was one thing, but the bigger problem was ongoing blog management. I was drowning in tasks like SEO management, linking related content, and trying to turn scattered notes into stories.
Before implementing MCP, my workflow was painful:
I ask ChatGPT: “Draft a post about Japan.”
It writes a generic travel guide (“Visit the Golden Pavilion!”) because it doesn’t know what I actually did.
I have to dig through my phone notes, find the specific restaurant name, and copy-paste it into the chat to give it context.
It writes a draft.
I manually copy that text, log into my CMS, paste it into the editor, and then manually configure the SEO tags.
I copy-paste 10 rows from my PostgreSQL database to show what I actually wrote in 2019 so it can link to them.
It writes a draft.
I manually copy that text, log into my CMS, paste it into the editor, and then manually configure the SEO tags.
I wasn’t an “Architect”; I was a glorified clipboard manager.
The Solution: cms-mcp (The Backend Specialist)
I realized I needed to treat my AI agent or even ChatGPT not as a “super-user,” but as a standard client — just like my frontend UI.
I used the Model Context Protocol (MCP) to build a bridge. My custom tool effectively acts as a “headless browser.” It talks to my backend (cms-be) using the exact same API endpoints that my Admin Dashboard (cms-ui) uses. Think of an MCP Server as an API specifically designed for AI agents. It tells the LLM: “Here are the tools you are allowed to use, and here is how you use them.”
But to solve the “Generic Content” problem, I introduced a new concept to the API: Journals.
The Secret Weapon: The “Journals”
I added a Journal entity to my CMS. These are small, raw memoirs—quick notes, a location, maybe a photo—that I jot down while traveling. They aren’t blog posts; they are just data points of memory.
By exposing these via the API to the Agents, I gave the AI a memory bank.
Now, back to the MCP Server
Initially, I thought about giving my AI agent direct access to my PostgreSQL database. It seemed fast. It seemed easy.
But as a Product Manager, I know that “fast and easy” usually leads to “broken and messy.” Giving an LLM direct database access bypasses all the business logic, validation, and safety checks I built into my backend.
So, I pivoted. I decided to treat my AI agent not as a “super-user” with root access, but as a standard client — just like my frontend UI. My custom tool effectively acts as a “headless browser.” It talks to my backend (cms-be) exactly the way my Admin Dashboard (cms-ui) does.
It Mimics the Human (Me): When I write a post, I use the UI, which calls the API. The API handles the messy stuff — generating slugs, sanitizing HTML, and setting default timestamps. By forcing the Agent to use the API, it follows the exact same rules I do.
Scalability & Maintenance: If I change my database schema, I don’t have to rewrite the Agent. As long as the API contract stays the same, the Agent keeps working.
Security & Logic: My backend already knows how to validate a user. I don’t need to rebuild authentication logic inside the AI agent.
The “Job Description” (Tools I Built)
I didn’t give the AI root access (I’m a Product Manager, not a maniac). Through the MCP server, I exposed specific API endpoints as “Tools” for the AI:
search_journals (The Context Engine):
Action: Calls
GET /api/journals?location=...Use Case: “Find my raw notes from Tokyo so I can write a story that actually sounds like me.”
search_content:
Action: Calls
GET /api/posts?search=...Result: The backend runs the search logic and returns JSON. The AI reads this just like a frontend would to understand what I’ve written before.
create_draft:
Action: Calls
POST /api/postswith a JSON body.Result: The backend validates the title, creates the slug, checks for duplicates, and then saves to the DB. The AI doesn’t have to worry about SQL syntax.
audit_seo:
Action: Calls
GET /api/posts/:id/seo-checkCapability: Connected to a Google Search Console MCP, it can analyze traffic and suggest title tweaks.
The Workflow: From Chat to Production
Here is what it looks like when I “collaborate” in ChatGPT or my custom agent now:
Me: “I want to write a new Anchor Article about ‘Hiking in the Himalayas’. Check if I have any existing notes on this, and draft an outline.”
The Agent (using cms-mcp):
Context Gathering (
search_journals): It queriesGET /api/journals?location=Kyoto. It finds: A raw note about a specific coffee shop, a photo I took of a shrine, and a note about the rain.Calls
db_search: Scans my database for tags like “Japan,” “Mt Fuji”.Returns Context: “You have 3 existing short posts from 2022 and 5 journal entries.”
Synthesizes: Creates an outline that references those specific memories.
Me: “Looks good. Create the draft.”
The Agent:
Calls
create_draft: It hits my database and creates the actual record.Result: I open my Admin Dashboard (
cms-ui), and the post is there, waiting for me to polish. It’s not generic AI slop. It mentions the coffee shop I actually visited, because it had access to my digital memory.
Why This Changes Everything
This setup shifts my role from “Writer/Coder” to “Editor/Manager.”
This architecture turns the AI into a true Virtual Employee. It doesn’t have magical backdoor access. It has to use the tools provided, just like everyone else. This makes the system robust, predictable, and surprisingly easy to debug.
If the Agent fails, I just check the standard API logs.
I don’t have to remember every article I wrote 5 years ago — my “Intern” does that for me. I don’t have to deal with the friction of setting up a new draft — my “Backend Specialist” handles it.
This is the power of Agentic Workflows. It’s not about the AI writing the whole blog for you; it’s about removing the friction so you can focus on the story.
In the next and final post, I’ll share the Content Vision: How I’m using this machinery to move away from chronological blogging toward “Anchor Articles” and visual storytelling.


