Tistory MCP (Unofficial)
v0.2.0Unofficial MCP server for Tistory blogs: publish, edit, drafts, images.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tistory_session_init Log in to Tistory (로그인)
Open a browser for the Kakao login (카카오 로그인 + 카카오톡 승인) and save the cookies. Blocks until the user finishes or timeout_sec passes — tell the user to look for the browser window and approve the KakaoTalk push before calling. The KakaoTalk 2-factor approval cannot be automated. Once saved, other tools work without a browser until the session expires (it can be as short as an hour or so); call again when a tool reports an expired session.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
cdp_url | CDP address of a browser that is already running with --remote-debugging-port, e.g. http://127.0.0.1:9222. Use when no browser window can be shown (WSL, SSH, containers) | |
timeout_sec | integer | How long to wait for the login (seconds) |
tistory_session_status Session status (세션 상태)
Report whether a saved session exists, when it was saved and when it expires. Also makes one admin API call to tell whether it is live right now (valid/expired).
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
tistory_get_categories List categories (카테고리)
Return the category tree flattened to id / name / parent id. Use the integer id here as `category` when publishing or updating (names are not accepted).
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
tistory_list_posts List posts (글 목록)
List posts from the admin side (includes private and protected posts), one page at a time. Bodies are not included — use tistory_get_post for the body.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
category | integer | Category id filter; -3 = all categories |
keyword | string | Server-side search keyword; empty string = all posts |
page | integer | Page number, 1-based |
search_type | string | Where to search the keyword: post title, body, or tag |
visibility | string | Visibility filter |
tistory_get_post Get a post (글 조회)
Return one post's metadata (from the admin list) and its body HTML (from the post page). Works for private posts with the saved session. The body is the skin-rendered HTML, not the original markdown (Tistory keeps no markdown). To edit, write the new body yourself and send it with tistory_update_post rather than echoing content_html back.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
post_id * | string | Post number (글 번호), digits only |
tistory_fetch_public_posts Fetch public posts via RSS (공개 글 RSS)
Fetch the latest public posts of any Tistory blog from its RSS feed. No login needed.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
include_content | boolean | Include each item's RSS description (body HTML) |
limit | integer | Max items to return |
tistory_publish_post Publish a new post (새 글 발행)
Create a NEW post. Every call creates a new post — this is not a draft and not an update. Do not retry after an error or timeout without checking tistory_list_posts first, or the post may be duplicated. Defaults to private so the user can review it before switching to public with tistory_update_post. Rate-limited (default 60 s apart, 20 per day).
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Target blog host or URL — required to prevent mis-publishing |
content * | string | Post body. Markdown by default (converted to HTML by the tool). For images, paste the `substitution` from tistory_upload_image verbatim |
title * | string | Post title (제목) |
attachments | attachment_ref of every image used in content (from tistory_upload_image) | |
category | integer | Category id from tistory_get_categories; 0 = none |
content_format | string | 'markdown' (default) or 'html' |
password | Password for visibility='protected' | |
post_type | string | 'post' (default) or a static 'page' |
slogan | string | URL slug; empty = generated from the title by the server |
tags | Tags (태그), one per item, without '#' and without commas | |
visibility | string | Default 'private' (비공개). Use 'public' only when the user explicitly asks; 'protected' needs password |
tistory_update_post Update a post (글 수정)
Update an existing post. The body must be sent in full (the server does not merge). Title, category, visibility and slug keep their current values when omitted; tags are kept by reading them from the post page (pass [] to clear). Rate-limited together with publish.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL of the post to update |
content * | string | The complete new body — the server overwrites the whole post. Do not echo content_html from tistory_get_post; write the new body yourself |
post_id * | string | Post number (글 번호) |
attachments | attachment_ref of images used in the new content | |
category | New category id; omit to keep the current one | |
content_format | string | Default 'html'. Set 'markdown' when sending markdown, or it is posted as raw text |
password | Password for visibility='protected' | |
slogan | New URL slug; omit to keep | |
tags | New tags; omit to keep the current tags (read from the post page), pass [] to clear | |
title | New title; omit to keep the current one | |
visibility | New visibility; omit to keep the current one. 'public' makes it live |
tistory_delete_post Delete a post (글 삭제)
Permanently delete a post. Cannot be undone. Ask the user to confirm in chat, then call with confirm=true.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL of the post to delete |
post_id * | string | Post number (글 번호) |
confirm | boolean | Must be true to actually delete. Ask the user in chat first |
tistory_upload_image Upload an image (이미지 업로드)
Upload an image and return `substitution` (paste into the body) and `attachment_ref`. Put `substitution` verbatim where the image goes, and pass `attachment_ref` in `attachments` when publishing/updating — otherwise the image is garbage-collected after about 15 days. Do not put the returned URL into the body directly.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
file_path * | string | Local image path (png/jpg/jpeg/gif/webp, up to 20MB) |
height | Pixel height; read from the file header if omitted | |
style | string | Alignment: alignCenter (default), alignLeft, alignRight, widthOrigin |
width | Pixel width; read from the file header if omitted |
tistory_save_draft Save autosave draft (자동저장 초안)
Write a draft into the editor's single autosave slot. No post is created. The next time the user opens the editor it offers to restore this draft. There is only one slot, so saving again overwrites the previous draft. For several reviewable drafts, publish with visibility='private' instead.
| Parameter | Type | Description |
|---|---|---|
blog_url * | string | Blog host or URL (블로그 주소). e.g. myblog.tistory.com |
content * | string | Draft body (markdown by default) |
title * | string | Draft title |
attachments | attachment_ref of images used in content | |
category | integer | Category id; 0 = none |
content_format | string | 'markdown' (default) or 'html' |
tags | Tags, one per item |