Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect Zenn to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/zenn.md
Media & Blogging

How to connect Zenn to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itAvailable to personal accounts (articles and books via GitHub integration; Scraps and images via a Public API key).
MethodOfficial API (Public API, Scraps/images only) + GitHub integration (articles/books)
PricingFree (no extra charge for posting on Zenn or using the Public API)
RiskArticle 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.

AuthenticationAPI key (Public API) / GitHub integration (articles and books)
Checked by the operator2026.12.05
How the operator checkedChecked against official documentation

For AI agents: Markdown ・ JSON

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

https://github.com/zenn-dev/zenn-editor

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.

  • zenn-mcp-server

    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

  • shibuiwilliam/mcp-server-zenn

    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 requiredRead 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 serviceConditional

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 pathFrom 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 requiredRead only

No authentication (public information only)

Terms of serviceConditional

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 pathRuns 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

Source: relevant section of the terms of service

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 termsNot stated in terms
Bot detection / CAPTCHAUnverified

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

Source: relevant section of the terms of service

Usage

How to connect

  1. 記事・本を扱う場合は、先に Zenn と GitHub リポジトリを連携する(ダッシュボードの「GitHubからのデプロイ」)。連携リポジトリの articles/ に Markdown を置き、published の値で下書き/公開を切り替えて push する
  2. Scrap と画像は Public API を使う。API キー設定ページで必要な権限だけのキーを発行し、環境変数 ZENN_API_KEY に設定して Zenn CLI(zenn scrap/zenn image)から操作する
  3. 公開記事の取得は認証なしでできる。新着は公式の RSS フィード(https://zenn.dev/<ユーザー名>/feed)でも取得できる
  4. Public API は v0 のため、CLI の版を固定し、更新時はヘルプと告知を確認する

Setup examples

Paste these as they are. Replace the API key, domain and similar values with your own.

Zenn CLI(Public API で Scrap 投稿・画像アップロード)
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-public

API キーは 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

Zenn CLI(記事ファイルの作成。公開は GitHub 連携で push)
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

Zenn CLI Skill(公式・エージェント向け)
npx skills add zenn-dev/zenn-editor --skill zenn-cli

Zenn 公式が 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: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

GitHub トークンは対象リポジトリだけに絞る
Fine-grained PAT: 対象リポジトリのみ / Contents: Read and write

GitHub 連携リポジトリを MCP 等で操作する場合、Classic PAT の repo スコープは全リポジトリに及ぶ。対象リポジトリだけに絞った Fine-grained PAT を使う

Official page checked: https://zenn.dev/zenn/articles/deploy-github-repository

Post to a Scrap

Instruction to the agent

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

Instruction to the agent

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

Instruction to the agent

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 checkedChecked against official documentation
Clients triedNot yet tried with a real client
MCP server versionzenn-cli 0.5.18 (latest at the time of writing)

https://www.npmjs.com/package/zenn-cli

ドキュメント確認: 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.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect Yahoo! Shopping to AI agents

Official, individuals OK

How to connect YouTube to AI agents

Official, individuals OK

How to connect connpass to AI agents

Official, individuals OK

How to connect Hot Pepper Gourmet to AI agents

Official, individuals OK