How to connect Zenn to AI agents
checked by the operator
TL;DR
| Verdict | Official, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review |
|---|---|
| Who can use it | Available to personal accounts (articles and books via GitHub integration; Scraps and images via a Public API key). |
| Method | Official API (Public API, Scraps/images only) + GitHub integration (articles/books) |
| Pricing | Free (no extra charge for posting on Zenn or using the Public API) |
| Risk | Article 4 of Zenn's terms prohibits spam-like conduct including posting machine-generated text, so agent posting should stay in draft with human review before publishing. |
Articles and books are not posted via an official API; the GitHub integration is the official route, and pushing to the linked repository publishes and updates them. In October 2026 the Zenn Public API (v0) was released, making Scrap posting and image uploads operable with an API key plus the Zenn CLI. There is no official MCP server or official connector.
| Authentication | API key (Public API) / GitHub integration (articles and books) |
|---|---|
| Checked by the operator | 2026.12.05 |
| How the operator checked | Checked against official documentation |
Official MCP and AI guides
- Official MCP serverNo
Zenn provides no official MCP server. MCP servers are unofficial community implementations that operate the linked GitHub repository or fetch public information
- Official guide for AI agentsYes
There is no llms.txt (confirmed that https://zenn.dev/llms.txt does not exist). On the other hand, an official agent-facing asset exists: the Zenn CLI Skill published in the zenn-dev/zenn-editor repository
Connectors
Official connectors from AI services
Not supported: Claude, ChatGPT, Gemini, Microsoft Copilot
Third-party integration services
Not supported: Power Automate, IFTTT
Unverified: Zapier, Make, n8n, Pipedream, Composio, Yoom
Unofficial MCP servers
Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.
An unofficial MCP server that operates the linked GitHub repository through the GitHub API to create and fetch articles (npm package zenn-mcp-server). It takes a GitHub Personal Access Token (repo scope), username, and repository name as environment variables
A read-only unofficial MCP server using Zenn's unofficial internal endpoints (the public dev API). It only fetches article and book lists; no authentication is required
Security assessment
For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.
- Unofficial MCPzenn-mcp-serverThird party (unofficial)
Permissions required Read and write A GitHub Personal Access Token. A classic PAT's repo scope is a powerful grant covering read/write access to all repositories under the account, including private ones. A fine-grained PAT limited to the target repository is preferable
Terms of service Conditional Implemented on the official GitHub integration, but automated posting can conflict with Article 4 of the terms of use (posting machine-generated text as spam). Draft workflows with human review are a condition
Source: relevant section of the terms
Data path From the AI client, through a locally run third-party npm package (which holds the GitHub token; supply-chain risk applies), to the GitHub API — and the push leads to automatic deployment to Zenn - Unofficial MCPshibuiwilliam/mcp-server-zennThird party (unofficial)
Permissions required Read only No authentication (public information only)
Terms of service Conditional It only fetches public information, but excessive automated access to unofficial internal endpoints can conflict with Article 4's ban on interfering with servers and networks. Care with fetch frequency is a condition
Source: relevant section of the terms
Data path Runs locally and connects directly to Zenn's unofficial internal endpoints. Fetched content is passed to the AI service using the MCP server
Data you can fetch within the terms of service
Articles and books can be posted and updated via the GitHub integration (deletion requires the dashboard). Scrap creation and comment posting, and image uploads, can be operated via the Public API (API key). Public articles and books can be fetched without authentication, and new posts are also available via the official RSS feed
- ScrapingNot stated in terms
There is no explicit use of the word "scraping", but Article 4 (prohibited acts) of the terms of use contains provisions directly relevant to agent use: a ban on spam-like acts including posting machine-generated text and repeatedly posting identical content, a ban on destroying or interfering with server and network functions, and a ban on collecting or accumulating other people's personal information. Automated posting is premised on draft workflows with human review
- Fetching with the agent's own browserPossible
There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.
For data the official route does not cover:
Automation under the terms Not stated in terms Bot detection / CAPTCHA Unverified Public articles can be read without signing in. Posting and publishing articles goes through pushing to the linked GitHub repository, which is the official automation route, and Scraps and images can be operated via the Public API (Zenn CLI). There is no need to automate the web editor in a browser
Usage
How to connect
- 記事・本を扱う場合は、先に Zenn と GitHub リポジトリを連携する(ダッシュボードの「GitHubからのデプロイ」)。連携リポジトリの articles/ に Markdown を置き、published の値で下書き/公開を切り替えて push する
- Scrap と画像は Public API を使う。API キー設定ページで必要な権限だけのキーを発行し、環境変数 ZENN_API_KEY に設定して Zenn CLI(zenn scrap/zenn image)から操作する
- 公開記事の取得は認証なしでできる。新着は公式の RSS フィード(https://zenn.dev/<ユーザー名>/feed)でも取得できる
- Public API は v0 のため、CLI の版を固定し、更新時はヘルプと告知を確認する
Setup examples
Paste these as they are. Replace the API key, domain and similar values with your own.
export ZENN_API_KEY="your-api-key"
npx zenn-cli@0.5.18 scrap create --title "開発中の調査メモ" --file ./memo.md --unlisted
npx zenn-cli@0.5.18 image upload ./diagram.png --confirm-publicAPI キーは Zenn の API キー設定ページで、必要な権限(scrap:read/scrap:write/image:read/image:write)を選んで発行する。キーは発行時に一度だけ表示される。scrap/image コマンドには zenn-cli 0.5.7 以上が必要。Public API は v0 のため版を固定する。CLI は投稿前にシークレット検査を行う
Official page checked: https://info.zenn.dev/2026-10-20-scrap-public-api-and-cli
npm install zenn-cli
npx zenn init
npx zenn new:article --slug my-article --title "タイトル" --emoji "📝"記事・本の公開は GitHub 連携経由。連携済みリポジトリの articles/ に Markdown を置き、front matter の published: true で登録ブランチに push すると公開される。CLI 自体に記事のアップロード機能はない
Official page checked: https://zenn.dev/zenn/articles/deploy-github-repository
npx skills add zenn-dev/zenn-editor --skill zenn-cliZenn 公式が zenn-dev/zenn-editor リポジトリで公開しているエージェント向け Skill。Zenn CLI の使い方をエージェントに取り込める
Official page checked: https://info.zenn.dev/2026-10-20-scrap-public-api-and-cli
Limiting the features
権限: scrap:read のみScrap の読み取りだけなら scrap:read のみのキーにする。投稿には scrap:write、画像には image:read/image:write と、操作ごとにキーを分ける
Official page checked: https://info.zenn.dev/2026-10-20-scrap-public-api-and-cli
Fine-grained PAT: 対象リポジトリのみ / Contents: Read and writeGitHub 連携リポジトリを MCP 等で操作する場合、Classic PAT の repo スコープは全リポジトリに及ぶ。対象リポジトリだけに絞った Fine-grained PAT を使う
Official page checked: https://zenn.dev/zenn/articles/deploy-github-repository
Post to a Scrap
Post this research memo to a Zenn Scrap as unlisted
Uses the Zenn CLI scrap commands with an API key holding the scrap:write permission of the Public API
Prepare an article as a draft
Create a Zenn article file from this content and push it to the linked repository as a draft (published: false)
Place the Markdown in articles/ of the linked GitHub repository and push with published: false to prepare it as a draft (pushing with published: true publishes it)
Get new articles
Show me this user's latest Zenn articles
New articles can be fetched via the official RSS feed (https://zenn.dev/<username>/feed). Keyword search stays within the site's own search, and the unofficial read-only MCP server is limited to listing articles by user or topic
Pitfalls and tips
Pitfalls
- There is no Public API for articles and books. The API key only covers Scraps and images. Posting and updating articles requires pushing to the linked GitHub repository
- The Public API is an unstable v0; its spec may change without notice. Pin the zenn-cli version if you build it into scripts
- The API key is shown only once, at issuance. It cannot be displayed again, so save it somewhere safe immediately
- With the GitHub integration, deleting an article file from the repository does not remove the article on Zenn (a safety design). Full deletion requires removing it from both the dashboard and the repository
- An API service called zenn.engineering exists, but it is a separate service unrelated to Zenn (zenn.dev). Do not confuse them
- The Zenn CLI's AI scan is disabled by default. Only when ZENN_CLI_AI_SCAN=true and provider settings are provided are the post content and images sent to the configured AI service, and posts judged highly sensitive are rejected. Do not post memos containing secrets to Zenn, whether or not AI scan is enabled
- Images uploaded with zenn image are served at public URLs. Even when pasted into an unlisted Scrap, the images themselves are not protected by authentication
Tips
- When having an agent write articles, the safe flow is: draft in the linked GitHub repository (published: false), human review, then publish. The PR draft deploy lets you check the rendering too
- Scraps suit learning logs and research memos. Keeping an agent's work log in a Scrap is close to the Public API's intended use
- Issue separate API keys per operation (reading vs posting). The Zenn CLI's secret scan is only an aid; eyeball content before posting separately
Test environment and change history
| How it was checked | Checked against official documentation |
|---|---|
| Clients tried | Not yet tried with a real client |
| MCP server version | zenn-cli 0.5.18 (latest at the time of writing) |
ドキュメント確認: Zenn Public API のリリース告知(info.zenn.dev、2026-10-20)、Zenn CLI と GitHub 連携の公式ガイド、利用規約第4条(禁止事項)、非公式 MCP サーバーの仕組み(各配布ページ・解説記事)。実機確認はしていない。
Upcoming changes
Dated changes that affect this article. After each date we review the article and record it in the change history.
- Zenn Public API は v0(不安定版)。対象が Scrap と画像から記事・本へ広がるかが焦点
Change history
- First published
- Re-categorized under the new four-level rating
- Full alignment with the new format (source kinds added)
Sources
Official and primary sources
Pages published by the service provider, the integration provider or the MCP author about their own product.
- Zenn Public API released: posting Scraps and uploading images from the Zenn CLI (Zenn info)Basis for the Zenn Public API release (October 20, 2026), the API key permissions, and the Zenn CLI scrap/image commands, checked 2026.12.05
- How to use the Zenn CLI | Zenn official guideBasis for the official Zenn CLI guide (installation, article creation, preview), checked 2026.12.05
- Managing Zenn content in a GitHub repository | Zenn official guideBasis for the official procedure to deploy articles via a GitHub repository integration, checked 2026.12.05
- Claude ConnectorsWhere to check Claude's connector list, checked 2026.12.05
- Zenn Terms of UseBasis for the Zenn terms of use, checked 2026.12.05
- zenn-cli | npmBasis for the latest version (0.5.18, zenn-dev/zenn-editor) of the Zenn CLI (zenn-cli), checked 2026.12.05
- zenn-dev/zenn-editor (GitHub)The development repository of the Zenn CLI (zenn-cli). It also publishes the official agent-facing Zenn CLI Skill, checked 2026.12.05
References (third-party write-ups)
Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.
- An MCP server that posts to Zenn instantly from Claude conversations (Zenn article)Basis for the unofficial MCP server (zenn-mcp-server) creating articles via the GitHub API, checked 2026.12.05
- Zenn MCP Server | GlamaBasis for the unofficial MCP server (mcp-server-zenn) fetching article and book lists via the public dev API, checked 2026.12.05
