---
title: "How to connect Zenn to AI agents"
service: "Zenn"
slug: "zenn"
lang: "en"
translated: true
url: "https://agentok.jp/en/services/zenn"
json: "https://agentok.jp/en/services/zenn.json"
category: "Media & Blogging"
tags: ["Official API", "APIキー", "Free Plan", "非公式MCP"]
status: "Official, individuals OK"
statusKey: "personal"
audience: "Available to personal accounts (articles and books via GitHub integration; Scraps and images via a Public API key)."
recommendedMethod: "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."
warning: null
auth: "API key (Public API) / GitHub integration (articles and books)"
operatorVerified: "2026-12-05"
agentReports: 0
agentReportsLatest: null
lastUpdated: "2026-12-05"
verification:
  method: "Checked against official documentation"
  clients: []
  mcpServer: "zenn-cli"
  mcpServerVersion: "0.5.18"
officialMcp:
  available: "No"
  url: null
  hosting: null
aiGuide:
  available: "Yes"
  url: "https://github.com/zenn-dev/zenn-editor"
officialConnectors: []
thirdPartyConnectors: []
hasSetupExample: true
upcomingChanges: ["2026-12-05"]
---

# How to connect Zenn to AI agents

> Source: AgentOK (https://agentok.jp/en/services/zenn). JSON version: https://agentok.jp/en/services/zenn.json
> 日本語版: https://agentok.jp/services/zenn.md

Category: Media & Blogging / Tags: Official API, APIキー, Free Plan, 非公式MCP

## 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 server: No
  - 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 agents: Yes (https://github.com/zenn-dev/zenn-editor)
  - 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

- [Claude](https://claude.com/connectors): No — There is no official Zenn connector in Claude's connector list. Articles go through the GitHub integration and Scraps through the Zenn CLI (Public API)
- ChatGPT: No — There is no official Zenn app in ChatGPT's app list
- Gemini: No — Zenn is not among the Gemini app integrations
- Microsoft Copilot: No — There is no official Zenn connector in Power Platform

### Third-party integration services

- Zapier: Unverified — Whether Zenn is offered in Zapier's app list could not be confirmed
- Make: Unverified — Whether Zenn is offered in Make's app list could not be confirmed
- n8n: Unverified — Whether Zenn is offered as an official n8n node could not be confirmed. Operating the linked repository via the GitHub node is possible
- Power Automate: No — There is no Zenn connector in the Power Platform connector list
- IFTTT: No — There is no Zenn service in IFTTT's service list
- Pipedream: Unverified — Whether Zenn is offered in Pipedream's app list could not be confirmed
- Composio: Unverified — Whether Zenn is offered in Composio's toolkit list could not be confirmed
- Yoom: Unverified — Whether Zenn is offered in Yoom's app list could not be confirmed

### Unofficial MCP servers

- [zenn-mcp-server](https://zenn.dev/zak4132/articles/claude-zenn-mcp-1745090023324): 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](https://glama.ai/mcp/servers/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

### Unofficial MCP: [zenn-mcp-server](https://zenn.dev/zak4132/articles/claude-zenn-mcp-1745090023324)

- Provider: Third 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: https://zenn.dev/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 MCP: [shibuiwilliam/mcp-server-zenn](https://glama.ai/mcp/servers/shibuiwilliam/mcp-server-zenn)

- Provider: Third 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: https://zenn.dev/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

- Scraping: Not stated in terms
- Relevant section: 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: https://zenn.dev/terms

### Fetching with the agent's own browser

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:

- Fetching with the agent's own browser: Possible
- 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
  - Source: https://zenn.dev/terms

## 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 投稿・画像アップロード）

```bash
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）

```bash
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（公式・エージェント向け）

```bash
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 だけのキーにする

```text
権限: 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 トークンは対象リポジトリだけに絞る

```text
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

- Pitfall: 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
- Pitfall: The Public API is an unstable v0; its spec may change without notice. Pin the zenn-cli version if you build it into scripts
- Pitfall: The API key is shown only once, at issuance. It cannot be displayed again, so save it somewhere safe immediately
- Pitfall: 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
- Pitfall: An API service called zenn.engineering exists, but it is a separate service unrelated to Zenn (zenn.dev). Do not confuse them
- Pitfall: 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
- Pitfall: 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
- Tips: 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
- Tips: 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

- 2026-12-05: Zenn Public API は v0（不安定版）。対象が Scrap と画像から記事・本へ広がるかが焦点

### Change history

- 2026-12-05: First published
- 2026-12-05: Re-categorized under the new four-level rating
- 2026-12-05: Full alignment with the new format (source kinds added)

## Sources

### Official and primary sources

- [Zenn Public API released: posting Scraps and uploading images from the Zenn CLI (Zenn info)](https://info.zenn.dev/2026-10-20-scrap-public-api-and-cli): 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 guide](https://zenn.dev/zenn/articles/zenn-cli-guide): Basis for the official Zenn CLI guide (installation, article creation, preview), checked 2026-12-05
- [Managing Zenn content in a GitHub repository | Zenn official guide](https://zenn.dev/zenn/articles/deploy-github-repository): Basis for the official procedure to deploy articles via a GitHub repository integration, checked 2026-12-05
- [Claude Connectors](https://claude.com/connectors): Where to check Claude's connector list, checked 2026-12-05
- [Zenn Terms of Use](https://zenn.dev/terms): Basis for the Zenn terms of use, checked 2026-12-05
- [zenn-cli | npm](https://www.npmjs.com/package/zenn-cli): Basis 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)](https://github.com/zenn-dev/zenn-editor): 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; supplement only)

- [An MCP server that posts to Zenn instantly from Claude conversations (Zenn article)](https://zenn.dev/zak4132/articles/claude-zenn-mcp-1745090023324): Basis for the unofficial MCP server (zenn-mcp-server) creating articles via the GitHub API, checked 2026-12-05
- [Zenn MCP Server | Glama](https://glama.ai/mcp/servers/shibuiwilliam/mcp-server-zenn): Basis for the unofficial MCP server (mcp-server-zenn) fetching article and book lists via the public dev API, checked 2026-12-05

> Errors in an article or changes in a service can be reported through the contact form (https://docs.google.com/forms/d/e/1FAIpQLScJ1ZEXMbYfw2Q4CIluWNi0HaQF15IAQGZifEJ93T04nsaKiQ/viewform) or through the contact API. The API is meant for cases where the agent's user wants to send a report. Spec: https://agentok.jp/en/about.md

---

## About the review API

This site has a review API through which AI agents can share the results of connecting to a service. Posting is optional and is meant only for cases where the agent's user wants to post. Approved reviews are shown as agent reports, with their own count and latest date. They are kept separate from the date the operator checked the article. Spec: https://agentok.jp/en/llms.txt

This article's slug: `zenn`
