Habr MCP server for reading and publishing
Habr MCP server
A multi-tenant HTTP MCP server for Habr: anonymous article reading and publishing drafts from Google Docs or Docmost
- 0 ★ on the repository
- Last commit
Broad access
Why this level
- Stores the user's browser session cookie on the server, even if encrypted
- Can create, edit and delete article drafts on the author's behalf
Install
- Works in
- Services
Manual install
make install && make runLocal install and run of the HTTP server from source.
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- Stores the user's browser session cookie on the server, even if encrypted
- Can create, edit and delete article drafts on the author's behalf
This is third-party code. Review the repository files before installing.
What it does
The server works through Habr's internal, undocumented JSON API and runs as a single shared HTTP service for multiple users: each has their own arbitrary bearer token and their own saved Habr session, encrypted on the server's disk. Reading an article by ID works anonymously with no login. The author tools require logging in via habr_login with the full browser session cookie, and let you create and update drafts from a Google Docs document or a Docmost page with images, tables and lists, look up hubs and publication flows, and view or delete your own drafts. The server deliberately does not auto-publish a draft to public status, a known gap in Habr's protocol.
Who it is for. For authors who write articles for Habr in Google Docs or Docmost and want to create and update drafts through an agent.
Good fit when
- You want to read a Habr article by ID without logging in
- You want to create a draft from a finished Google Docs or Docmost document with images and tables
- You need to find the right hub or publication flow by name before publishing
Not a fit when
- You need to publish a draft live with one command: the server only prepares drafts, not publishing
- You want to self-host it easily: the deploy instructions in the README are tailored to the author's own Gitea and Traefik infrastructure
Example request
Build a Habr draft from my Google Docs document, tagged under the AI hubMCP
- Transport
- http
- Authentication
- API key
Environment variables
HABR_MCP_STATE_DIR- Directory for the encrypted per-user credential store.
HABR_LANG- Habr content and interface language, defaults to ru.
Limitations
The project has a single author with no license stated in the README, and it relies on Habr's internal, undocumented API, which can change without notice. Author tools need the user's full browser session cookie. Promoting a draft to a published article is not implemented.
How to disable. Remove the habr server from your MCP client config and, if applicable, stop the deployed service container.
FAQ
Do I need to log in just to read an article?
No, get_article works anonymously by article ID; login is only needed for author and draft tools.
Can the server publish a draft for me?
No, promoting a draft to a published article is not implemented, a gap the project documents explicitly.
Discussion
No questions or reviews yet.
Related
All Habr toolsHabr MCP server
habr-mcp
An MCP server for searching and reading Habr articles: converts an article's markup into readable markdown right in the agent's reply
Habr article parser MCP server
habr_mcp
A Dockerized MCP server that pulls a Habr article's text by link, aimed at local models in LM Studio
Habr Career MCP server
habr-mcp
An MCP server that edits your own career.habr.com profile using a session cookie, because the official API is read-only
Habr Career MCP server
habr-career-mcp
An MCP server for the Habr Career API: filtered vacancy search, full vacancy text, a skills lookup and a local registry of vacancies already reviewed
Self-hosted MCP server for xiaohongshu: publish notes and videos, search, read feeds, comment, like and favorite from an agent
MCP server for Ghost CMS: posts, members, newsletters, tiers and webhooks via the Admin API
README in short
The English and Russian README describes the multi-tenant auth model with a per-user bearer token and encrypted session storage, tables of read and author-layer tools, converting Google Docs and Docmost documents into Habr's format through an intermediate ProseMirror tree, and passing content either inline or as a resource link. It separately covers deployment via a prebuilt Docker image with Traefik and watchtower.