Skip to content

LeonidMew: A Personal Website You Can Work on with AI

An overview of LeonidMew, a personal website built with Django, featuring Markdown publishing, SEO settings, moderated comments, and soft deletion. Learn how it works securely with AI agents through MCP and handles image uploads.

Cover image for the LeonidMew article about a personal Django website with Markdown publishing and AI agent support via MCP
Contents

LeonidMew: A Personal Website You Can Work on with AI

At first glance, a personal website has a simple job: give authors a place to publish their writing on their own terms. No recommendation feed, no third-party design rules, and no dependence on yet another social network. But familiar questions soon emerge behind this simplicity: How do you make articles easy to edit, avoid losing accidentally deleted material, manage comments, prepare images, and make pages understandable to search engines?

LeonidMew answers these questions as a complete personal website rather than a collection of disconnected experiments. It offers posts with cover images, Markdown, comments, a feedback form, and search engine settings. It also has a less conventional feature: content can be managed not only by a person in a browser but also by an AI agent through a dedicated MCP interface.

A Home for Your Writing

The LeonidMew homepage is a grid of publication cards. Cover images help distinguish one post from another, short descriptions give readers a reason to open an article, and the responsive layout remains convenient on both large screens and phones. The site does not try to look like a complex administrative system: to readers, it is simply a tidy website filled with writing.

For authors, publishing starts with a title, a cover image, and text. A page URL can be generated automatically from the title, giving each post a human-readable link instead of an anonymous string of numbers. If that address is already taken, the system selects a variant with a numeric suffix rather than making the author fix everything manually.

Posts are written in Markdown, a simple format in which familiar characters become formatting elements. Hash marks denote headings, while other straightforward markup adds links, tables, or code snippets. This is especially convenient for technical notes: the source text remains readable without the website and is easy to store, move, and edit in any preferred editor. A ready-made .md file can be uploaded through the publishing form, and the article text can be downloaded again later.

LeonidMew can build a table of contents from the headings in a long article. Not every post needs one, so the author decides whether it will help readers. It is a small detail, but details like this create a sound editorial workflow in which the tool adapts to the material rather than the other way around.

The Invisible Work Around an Article

A good publication is more than its text. Before readers open the page, its content may be seen by a search engine or displayed in a messaging app where someone has shared the link.

That is why LeonidMew lets authors specify a post description, a preview image, and other information that helps external services present the page correctly. The homepage has separate settings. A sitemap tells search crawlers which posts are available, while utility pages such as account sign-in and the feedback form are deliberately excluded from indexing.

All of this is usually summed up by the short acronym SEO, or search engine optimization. In practice, it is not a trick for gaming search rankings but basic housekeeping: a page has a clear title and description, a shared link does not turn into an empty rectangle, and search engines do not direct visitors to internal utility pages.

Reader Conversations Without Turning the Site into a Chat

Comments appear on LeonidMew only after the author reviews them. This pre-moderation slows conversations down slightly, but it lets authors control what is published on their own site.

When a reader submits a comment, the moderator receives an email. After approval, the site can email the commenter a notification. A separate feedback form handles messages that are not tied to a particular article. In both cases, the address supplied by the visitor is placed in the email's reply-to field, so the conversation can continue as usual from an email client.

There is deliberately no public registration. LeonidMew is not building a social network or gathering a user base for its own sake. The site owner manages publications, while readers only need to leave their name, email address, and message to join a discussion.

Deletion That Still Leaves Room to Fix Mistakes

One of the project's most useful decisions becomes apparent only at an unfortunate moment: when a post is deleted by mistake or its author changes their mind about displaying it.

Ordinary post deletion in LeonidMew is reversible. The article disappears for visitors, but its record and files remain in place. The owner can still see the post and restore it. This is called soft deletion: the site changes the publication's state instead of immediately destroying it.

This approach suits the nature of a personal archive. Sometimes a text needs to be hidden temporarily, revised, or simply revisited later. A useful intermediate state remains between “published” and “lost forever.”

Images follow a different rule: deleting them is irreversible. This is an honest reminder that a file may be linked to several articles at once, so published references should be checked before deletion.

A Website That Understands AI Agents

The most unusual part of LeonidMew is its support for MCP, the Model Context Protocol. Without delving into protocol details, MCP is a standard way to give an AI agent access to an external application's tools. Instead of merely showing the agent text and asking for advice, it allows a limited set of well-defined actions.

Importantly, LeonidMew does not contain its own neural network or pretend to be a content generator. It provides a carefully designed bridge between the website and a compatible agent. Through the agent, users can ask it to find a particular post, prepare new material, update existing text, or organize a collection of articles. Through MCP, the site returns structured data to the agent and performs permitted operations on publications.

This changes the familiar workflow. Instead of generating text in one window, copying it, opening a form, pasting it, and checking the result, authors can discuss the task with an agent and hand over the technical steps. The author still decides exactly what should appear on the site.

Image handling has also been thought through. An agent can prepare a single-use upload link, after which the owner selects a file in a regular browser form. The image is validated, rotated according to camera metadata when necessary, resized to sensible dimensions, and saved in the modern WebP format. Its catalog entry includes a title, alternative text for accessibility, and ready-made markup for insertion into Markdown.

People remain part of the process: the owner uploads the file through a protected page. Automation handles the routine work without gaining uncontrolled access to the author's computer.

Automation Does Not Remove Boundaries

Giving an AI agent access to a website is convenient but sensitive, so the project includes several clear restrictions.

An MCP key is issued personally to a superuser—the owner with elevated privileges. The full key is displayed only once, and only its cryptographic hash is stored in the database; the original string cannot be recovered from that hash. A compromised key can be reissued. Image upload links are single-use, time-limited, and tied to a specific owner.

Regular pages are protected as well. Only a superuser can manage posts, forms use Django's standard protection against request forgery, and visitor comments are rendered as text rather than trusted HTML.

This does not magically make the system invulnerable—no such system exists. But it demonstrates the right approach: agent convenience does not come at the cost of abandoning access controls.

Technology Without Unnecessary Noise

The project is built on Django, a proven Python framework for server-rendered websites. The server assembles complete pages itself, so there is no separate frontend application or mandatory JavaScript build step. Bootstrap supports the responsive interface, and the required libraries are stored locally with the project.

FastAPI runs alongside Django and handles MCP. Django and FastAPI are combined into one application: externally, it is a single website rather than two services that must be launched and coordinated separately. Data is stored in SQLite, a compact database contained in one file. This is a simple, practical choice for a personal project, although a growing number of simultaneous authors and intensive write activity would require closer consideration.

Docker and Dokku support are included for deployment. Their purpose can be explained without deployment instructions: the project environment is reproduced from the repository, and site updates do not depend on whatever software happens to be installed on a particular server. The database and uploaded files must live in persistent storage—a container must not become the only home for your archive.

The Bottom Line

LeonidMew is interesting not because of the number of fashionable terms in its technology list. Its central idea is to preserve the independence of a small author's website without giving up modern tools.

Authors can publish in a regular browser, keep source text in Markdown, correct mistakes without anxiety, communicate with readers, and control how links appear elsewhere. And when a task would benefit from an AI agent, the site can already communicate with it through MCP, with explicit permissions and restrictions.

The result is neither an all-purpose behemoth nor another social platform. It is a personal space with a thoughtful boundary between people and automation: software handles routine work, but the website remains the author's own.

25.11.2026 14:52

Comments

No comments yet.