プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

medium-ops

作者:06ketanバージョン 0.1.2i★ 0iパソコンで動く
レジストリ名io.github.06ketan/medium-ops

インストール方法

What it does

Medium CLI + 23-tool MCP server. Your IDE drafts replies. No API keys.

  • Connects パソコンで動く
  • Account or key Needs MEDIUM_INTEGRATION_TOKEN, MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE
  • Category 開発者ツール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

  1. Python (uv) を入れる

    1 回だけ。Python (uv) が必要なすべてのサーバーで使えます

    Python (uv) のダウンロードページを開く ↗

  2. medium-ops に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    medium-ops のサイトを開く ↗

  3. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  4. この設定を貼り付けて保存

    {
      "mcpServers": {
        "medium-ops": {
          "command": "uvx",
          "args": [
            "medium-ops",
            "mcp",
            "serve"
          ],
          "env": {
            "MEDIUM_INTEGRATION_TOKEN": "your-value",
            "MEDIUM_SID": "your-value",
            "MEDIUM_UID": "your-value",
            "MEDIUM_XSRF": "your-value",
            "MEDIUM_CF_CLEARANCE": "your-value",
            "MEDIUM_USERNAME": "your-value",
            "MEDIUM_OPS_MCP_PATH": "your-value",
            "MEDIUM_OPS_LLM_CMD": "your-value"
          }
        }
      }
    }

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. Claude を終了してもう一度開く

  6. 試してみる

    medium-ops を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が medium-ops を使っていると言うか、回答に medium-ops のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ medium-ops につなげません

medium-ops はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · medium-ops につなげるアプリを使う

  • medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · 開発者ツール の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)

  1. Python (uv) を入れる

    1 回だけ。Python (uv) が必要なすべてのサーバーで使えます

    Python (uv) のダウンロードページを開く ↗

  2. medium-ops に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    medium-ops のサイトを開く ↗

  3. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  4. このコマンドを貼り付けて Enter

    claude mcp add --scope user medium-ops --env MEDIUM_INTEGRATION_TOKEN=your-value --env MEDIUM_SID=your-value --env MEDIUM_UID=your-value --env MEDIUM_XSRF=your-value --env MEDIUM_CF_CLEARANCE=your-value --env MEDIUM_USERNAME=your-value --env MEDIUM_OPS_MCP_PATH=your-value --env MEDIUM_OPS_LLM_CMD=your-value -- uvx medium-ops mcp serve

    Enter の前に「your-value」を自分のキーに書き換えてください

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. Claude Code で /mcp と入力

    medium-ops が一覧にあり、接続済みと表示されれば OK です

  6. 試してみる

    medium-ops を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が medium-ops を使っていると言うか、回答に medium-ops のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)

  1. Python (uv) を入れる

    1 回だけ。Python (uv) が必要なすべてのサーバーで使えます

    Python (uv) のダウンロードページを開く ↗

  2. medium-ops に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    medium-ops のサイトを開く ↗

  3. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  4. キーを入力

    medium-ops の設定で MEDIUM_INTEGRATION_TOKEN, MEDIUM_SID, MEDIUM_UID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_USERNAME, MEDIUM_OPS_MCP_PATH, MEDIUM_OPS_LLM_CMD が空です。自分のキーを入れて保存します

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. Cursor の AI チャットを Agent モードで開く

  6. 試してみる

    medium-ops を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が medium-ops を使っていると言うか、回答に medium-ops のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

medium-ops のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)

  1. Python (uv) を入れる

    1 回だけ。Python (uv) が必要なすべてのサーバーで使えます

    Python (uv) のダウンロードページを開く ↗

  2. medium-ops に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    medium-ops のサイトを開く ↗

  3. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  4. キーを入力

    medium-ops の設定で MEDIUM_INTEGRATION_TOKEN, MEDIUM_SID, MEDIUM_UID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_USERNAME, MEDIUM_OPS_MCP_PATH, MEDIUM_OPS_LLM_CMD が空です。自分のキーを入れて保存します

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. VS Code の AI チャットを Agent モードで開く

  6. 試してみる

    medium-ops を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が medium-ops を使っていると言うか、回答に medium-ops のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?medium-ops を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user medium-ops --env MEDIUM_INTEGRATION_TOKEN=your-value --env MEDIUM_SID=your-value --env MEDIUM_UID=your-value --env MEDIUM_XSRF=your-value --env MEDIUM_CF_CLEARANCE=your-value --env MEDIUM_USERNAME=your-value --env MEDIUM_OPS_MCP_PATH=your-value --env MEDIUM_OPS_LLM_CMD=your-value -- uvx medium-ops mcp serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "medium-ops": {
      "command": "uvx",
      "args": [
        "medium-ops",
        "mcp",
        "serve"
      ],
      "env": {
        "MEDIUM_INTEGRATION_TOKEN": "your-value",
        "MEDIUM_SID": "your-value",
        "MEDIUM_UID": "your-value",
        "MEDIUM_XSRF": "your-value",
        "MEDIUM_CF_CLEARANCE": "your-value",
        "MEDIUM_USERNAME": "your-value",
        "MEDIUM_OPS_MCP_PATH": "your-value",
        "MEDIUM_OPS_LLM_CMD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "medium-ops": {
      "command": "uvx",
      "args": [
        "medium-ops",
        "mcp",
        "serve"
      ],
      "env": {
        "MEDIUM_INTEGRATION_TOKEN": "your-value",
        "MEDIUM_SID": "your-value",
        "MEDIUM_UID": "your-value",
        "MEDIUM_XSRF": "your-value",
        "MEDIUM_CF_CLEARANCE": "your-value",
        "MEDIUM_USERNAME": "your-value",
        "MEDIUM_OPS_MCP_PATH": "your-value",
        "MEDIUM_OPS_LLM_CMD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "medium-ops": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "medium-ops",
        "mcp",
        "serve"
      ],
      "env": {
        "MEDIUM_INTEGRATION_TOKEN": "your-value",
        "MEDIUM_SID": "your-value",
        "MEDIUM_UID": "your-value",
        "MEDIUM_XSRF": "your-value",
        "MEDIUM_CF_CLEARANCE": "your-value",
        "MEDIUM_USERNAME": "your-value",
        "MEDIUM_OPS_MCP_PATH": "your-value",
        "MEDIUM_OPS_LLM_CMD": "your-value"
      }
    }
  }
}

自分で入力する値

  • MEDIUM_INTEGRATION_TOKEN 秘密 env
    Legacy Medium Integration Token (api.medium.com/v1/*). Optional. Generate at medium.com/me/settings → 'Integration tokens' (note: Medium stopped issuing new tokens in 2023).
  • MEDIUM_SID 秘密 env
    Medium 'sid' cookie value from medium.com (Application → Cookies). Used for authenticated reads + dashboard GraphQL.
  • MEDIUM_UID env
    Medium 'uid' cookie value. Required alongside sid for some authenticated endpoints.
  • MEDIUM_XSRF 秘密 env
    Medium 'xsrf' cookie value. Required for any dashboard write (post_response, publish_post, delete_post, draft updates).
  • MEDIUM_CF_CLEARANCE 秘密 env
    Cloudflare 'cf_clearance' cookie. Only required when Cloudflare challenges your IP for dashboard write calls.
  • MEDIUM_USERNAME env
    Your Medium handle (without the @). Required for the public RSS read path so the client knows whose feed to fetch.
  • MEDIUM_OPS_MCP_PATH env
    Override path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.
  • MEDIUM_OPS_LLM_CMD env
    Optional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
25/週
接続方法
パソコンで動く
最新バージョンi
0.1.2
レジストリ公開日i
2026年5月3日
コードの最終更新i
2026年5月24日
作者
06ketan
パッケージ
pypi: medium-ops
ウェブサイト
medium-ops.chavan.in
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月13日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント 06ketan で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:6 か月前

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

Google でログインして投稿

ユーザーレビュー

まだレビューはありません

Google でログインしてレビューを書く

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの5853件のうち0%よりスターが多い
  • このカテゴリのほかの5853件のうち10%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5853件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

medium-opsは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:MEDIUM_INTEGRATION_TOKEN, MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は6 か月前、最新バージョン(0.1.2)がレジストリに届いたのは6 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:REA, GitHub, Serena MCP: the IDE for your agent

同じカテゴリのほかの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

作者:morluto広く使われている↓ 38.9万/週★ 45.5万昨日更新

パソコンで動く

GitHub

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

作者:github広く使われている★ 3.4万10 日前更新

パソコンでもクラウドでも

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

medium-ops

Standalone Medium CLI + 22-tool MCP server for Cursor MCP, Claude MCP, OpenCode MCP, and any stdio MCP host. Your IDE drafts the replies. Zero AI API keys.

Stories, responses, claps, feed, profiles, stats, reply engine, MCP server. One Python install, one binary, MIT licensed. Sibling of substack-ops.

TL;DR — MCP-native (no API key, one command)

uvx medium-ops mcp install cursor          # or claude-desktop, claude-code, opencode, print

Restart your host. Then in chat:

"list unanswered responses on post abc123def456"

"draft a warm reply to response r1"

"post that draft"

Your host's LLM (Cursor's, Claude's) does the drafting via the propose_reply / confirm_reply tools. No ANTHROPIC_API_KEY / OPENAI_API_KEY needed.

Wrong install?

This project is `medium-ops` on [PyPI](https://pypi.org/project/medium-ops/) — install with `uv` / `uvx`, not unrelated `npx` packages from “Medium MCP” searches. Canonical listing: [Glama — 06ketan/medium-ops](https://glama.ai/mcp/servers/06ketan/medium-ops).

Works with (MCP)

These rows help discovery (search keywords); confirm each host’s current MCP docs before upgrading.

Open source–oriented hosts
HostDocumentationTypical wire-up
OpenCodeOpenCode MCP serversuvx medium-ops mcp install opencode
ContinueContinueuvx medium-ops mcp install print — paste the snippet into Continue’s MCP settings
ZedZedConfigure stdio MCP per Zed’s docs
ClineClineMCP setup per extension / marketplace docs
GooseGooseMCP extensions per Goose docs
Large commercial stacks
HostDocumentationTypical wire-up
CursorCursor MCPuvx medium-ops mcp install cursor
Claude (Desktop / Code)Claude Desktop, Claude Codemcp install claude-desktop / claude-code
GitHub CopilotCopilotMCP in VS Code where supported — use print + host docs
ChatGPTOpenAIConnector flows — often REST for tools without MCP
Google GeminiGeminiGemini CLI / IDE features per Google docs
OpenCode (copy-paste)

Auto-install:

uvx medium-ops mcp install opencode

Manual (~/.config/opencode/opencode.json):

{

"mcp": { "medium-ops": { "type": "local", "command": ["uvx", "medium-ops", "mcp", "serve"], "enabled": true } } }

Optional version pin: ["uvx", "medium-ops==0.1.2", "mcp", "serve"] (replace with current PyPI release).

Why a hybrid

Medium exposes three usable surfaces and we use all of them:

  1. Public RSS (reads, no auth). medium.com/feed/@{user} returns the author's ~10 most recent stories with body_html, pubDate, tags, hero image, and dc:creator. Zero credentials, faster than GraphQL, stable. Used by default for list_posts / get_post / get_post_content. Inspired by Portfolio_V2's blog page.
  2. Dashboard GraphQL (authenticated reads). medium.com/_/graphql + medium.com/_/api/* with the sid cookie. Used as a fallback when you ask for more than ~10 posts, when the post isn't in the RSS window, or for things RSS can't give you (responses, claps, feed, stats, search).
  3. Official REST (writes). api.medium.com/v1/* with an Integration Token. Supports createPost, createPostInPublication, getUser, getPublications. That's it.

Force a specific transport with --source rss|graphql|auto on posts list, posts show, and posts content. The dashboard + GraphQL endpoints are undocumented and Medium can change them at any time. See Known gaps.

Setup (dev / from source)

git clone https://github.com/06ketan/medium-ops && cd medium-ops

uv sync uv sync --extra mcp # mcp SDK for the MCP server (recommended) uv sync --extra tui # textual for the TUI

Auth is read from ~/.cursor/mcp.json's mcpServers.medium-ops.env (or medium-api / medium). Override with env or .env.

uv run medium-ops auth verify

uv run medium-ops quickstart

Command surface

Every write defaults to --dry-run. Flip with --no-dry-run. All writes land in .cache/audit.jsonl and are dedup-checked against .cache/actions.db.

Auth (3)
CommandWhat it does
auth verifyProbe both integration token (/me) and sid cookie (GraphQL Viewer).
auth testSame but exits non-zero on failure (CI-friendly).
auth setupInteractive: paste token / sid / uid / username to .env.
Read — Stories (5)
CommandWhat it does
posts list [--user] [--limit]Latest stories by a user (default: self).
posts show Story metadata (title, clap count, response count).
posts content [--md]Body HTML (or Markdown with --md).
posts search [--limit]Medium-side full-text search.
`posts publish -t "..." -f body.md [--pub] [--status draftpublicunlisted]`Publish via integration token.
Read + Write — Responses (3)
CommandWhat it does
responses list [--limit]Top-level responses table.
responses tree [--out file.json]Full response + reply tree JSON.
responses add "body" [--parent ] [--no-dry-run]Post a response or reply.
Read + Write — Claps (2)
CommandWhat it does
claps count Total claps.
claps give [--claps N] [--no-dry-run]Clap 1-50 times. Dedup-protected.
Read — Discovery + Profile (5)
CommandWhat it does
`feed list [--tab home\following\tag-{slug}] [--limit]`Reader feed.
profile meYour full profile (GraphQL).
profile get Any user's public profile.
profile stats [--days N]Per-post views / reads / fans (dashboard scrape).
profile publicationsPublications you can publish to (integration token).
Reply engine (3)
CommandWhat it does
reply template --template thanksRule-based replies (no LLM).
reply bulk --out drafts.jsonDraft every response to a file.
reply bulk-send drafts.json [--no-dry-run]Post only action=approved rows. Dedup-checked.
Operations + safety (2)
CommandWhat it does
audit search [--kind] [--target] [--status] [--since 7d]Query the JSONL audit log.
audit dedup-statusCounts in the dedup SQLite DB.
MCP server (3)
CommandWhat it does
mcp install [--dry-run]Auto-merge config into your host.
mcp servestdio MCP server (22 tools).
mcp list-toolsPrint the tool registry.
Other (1)
CommandWhat it does
quickstartPrint a quickstart checklist.

Reply modes

ModeWhat it doesSafety
templateYAML keyword rules under src/medium_ops/templates/*.yamldry-run default
bulkLLM drafts every response to drafts.json. Edit, set action: "approved"offline review, dedup-checked on send
bulk-sendPosts only items with action: "approved"dry-run default; dedup DB prevents dup replies
MCP propose_reply → confirm_replyHost LLM drafts, you approve per-item, token-gated5-min token TTL, idempotent, no API key

MCP server

medium-ops mcp install opencode          # ~/.config/opencode/opencode.json

medium-ops mcp install cursor # auto-add to ~/.cursor/mcp.json medium-ops mcp install claude-desktop # auto-add to claude_desktop_config.json medium-ops mcp install claude-code # uses claude mcp add medium-ops mcp install print # print the snippet only medium-ops mcp serve # stdio server medium-ops mcp list-tools # 22 tools

Manual config snippet:

{

"mcpServers": { "medium-ops": { "command": "medium-ops", "args": ["mcp", "serve"] } } }

If the mcp SDK is not installed, the server falls back to a minimal stdin/stdout JSON-line dispatcher:

echo '{"tool":"list_posts","args":{"limit":3}}' | medium-ops mcp serve
MCP-native draft loop (no API key)

The safety + drafting stack that makes the unattended mode safe:

ToolWhat it does
get_unanswered_responsesWorklist — responses where you haven't replied.
propose_replyDry-run only. Returns a token + payload preview.
confirm_replyPosts the staged reply by token. Idempotent via dedup DB. Token TTL 5 min.
bulk_draft_replies / send_approved_draftsFile-based offline review loop.
audit_search / dedup_statusRead the audit log + dedup counts.

LLM strategy

Two layers, both free:

  1. MCP-native (default). Host LLM drafts via propose_reply / confirm_reply. No env vars, no API key. Use this for interactive replies.
  2. Subprocess CLI (daemon path). For reply bulk when no human is in the loop. Auto-detects claude (Claude Code), cursor-agent, or codex on PATH. Override with MEDIUM_OPS_LLM_CMD.

There is no paid-API-key path.

Auth setup

Medium has two auth layers that map to different feature surfaces:

  1. Integration Token — Authorization: Bearer . Used against api.medium.com/v1/*. Gets you: publish_post, list_own_publications. Token generation at https://medium.com/me/settings → "Integration tokens". Note: Medium stopped issuing new tokens in 2023. If you never generated one, the write path will 401 and you'll have to use the sid-cookie response path for any writes.
  2. sid cookie — from medium.com (Application → Cookies → sid). Used against medium.com/_/graphql and medium.com/_/api/*. Gets you: all reads (stories, responses, claps, feed, stats, profile), plus clap_post and post_response (fragile — undocumented).
medium-ops auth verify

medium-ops auth test medium-ops auth setup medium-ops auth har ./medium.har # ingest a Chrome dev

冒頭だけを表示しています。続きはリポジトリで読めます