Tistory MCP (Unofficial)

v0.2.0
io.github.jangsejong/tistory-mcp Checked 1 day ago Published 1 month ago

Unofficial 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.

ParameterTypeDescription
blog_url *stringBlog host or URL (블로그 주소). e.g. myblog.tistory.com
cdp_urlCDP 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_secintegerHow 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).

ParameterTypeDescription
blog_url *stringBlog 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).

ParameterTypeDescription
blog_url *stringBlog 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.

ParameterTypeDescription
blog_url *stringBlog host or URL (블로그 주소). e.g. myblog.tistory.com
categoryintegerCategory id filter; -3 = all categories
keywordstringServer-side search keyword; empty string = all posts
pageintegerPage number, 1-based
search_typestringWhere to search the keyword: post title, body, or tag
visibilitystringVisibility 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.

ParameterTypeDescription
blog_url *stringBlog host or URL (블로그 주소). e.g. myblog.tistory.com
post_id *stringPost 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.

ParameterTypeDescription
blog_url *stringBlog host or URL (블로그 주소). e.g. myblog.tistory.com
include_contentbooleanInclude each item's RSS description (body HTML)
limitintegerMax 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).

ParameterTypeDescription
blog_url *stringTarget blog host or URL — required to prevent mis-publishing
content *stringPost body. Markdown by default (converted to HTML by the tool). For images, paste the `substitution` from tistory_upload_image verbatim
title *stringPost title (제목)
attachmentsattachment_ref of every image used in content (from tistory_upload_image)
categoryintegerCategory id from tistory_get_categories; 0 = none
content_formatstring'markdown' (default) or 'html'
passwordPassword for visibility='protected'
post_typestring'post' (default) or a static 'page'
sloganstringURL slug; empty = generated from the title by the server
tagsTags (태그), one per item, without '#' and without commas
visibilitystringDefault '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.

ParameterTypeDescription
blog_url *stringBlog host or URL of the post to update
content *stringThe 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 *stringPost number (글 번호)
attachmentsattachment_ref of images used in the new content
categoryNew category id; omit to keep the current one
content_formatstringDefault 'html'. Set 'markdown' when sending markdown, or it is posted as raw text
passwordPassword for visibility='protected'
sloganNew URL slug; omit to keep
tagsNew tags; omit to keep the current tags (read from the post page), pass [] to clear
titleNew title; omit to keep the current one
visibilityNew 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.

ParameterTypeDescription
blog_url *stringBlog host or URL of the post to delete
post_id *stringPost number (글 번호)
confirmbooleanMust 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.

ParameterTypeDescription
blog_url *stringBlog host or URL (블로그 주소). e.g. myblog.tistory.com
file_path *stringLocal image path (png/jpg/jpeg/gif/webp, up to 20MB)
heightPixel height; read from the file header if omitted
stylestringAlignment: alignCenter (default), alignLeft, alignRight, widthOrigin
widthPixel 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.

ParameterTypeDescription
blog_url *stringBlog host or URL (블로그 주소). e.g. myblog.tistory.com
content *stringDraft body (markdown by default)
title *stringDraft title
attachmentsattachment_ref of images used in content
categoryintegerCategory id; 0 = none
content_formatstring'markdown' (default) or 'html'
tagsTags, one per item