DM

dishant27/medium-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

28 stars 9 forks 品質 82 トレンド 25MIT

AI アシスタントが中型プロファイルと出版物を読み取り、(legacy) 中型 API 経由でドラフトを公開できるようにする MCP サーバー.

概要

MCP クライアント (Claude Desktop, Cursor など) を MCP クライアント (Claude Desktop や Cursor など) が、中型のドラフトを作成し、中型のプロファイルと出版物を読み込みます。 ミディアムは API をサポートしなくなり、新しいインテグレーショントークンの発行を停止しました。 このサーバーは、Medium の統合トークンのみで動作します。 そうでない場合は、まだ公式な方法はありませんし、このプロジェクトは修正できません。 思考から出版まで:MediumMCP AI-to-Mediumプラットフォームワークフローを合理化 ツールのマップ1:1は、Mediumのv1 APIを実際に持っているエンドポイントにマップします。 何をするか: 検索記事, 投稿を読みます, 統計を読みます, または編集/削除投稿. 正式な API は、これらのエンドポイントがなかった。 要件: Node.js 18+ および既存の中型の統合トークン。 .env.example を .env にコピーし、トークンを設定します。 その後、「このマークダウンからミディアムドラフトを作成」というようなことを尋ね、出版前にミディアムのドラフトをレビューしてください.

概要(AI 翻訳)

MCP クライアント (Claude Desktop, Cursor など) を MCP クライアント (Claude Desktop や Cursor など) が、中型のドラフトを作成し、中型のプロファイルと出版物を読み込みます。

[!警告] Mediumの公式APIは非推奨です。 ミディアムは API をサポートしなくなり、新しいインテグレーショントークンの発行を停止しました。 このサーバーは、already がの中型の統合トークンを持っている場合にのみ動作します。 そうでない場合は、まだ公式な方法はありませんし、このプロジェクトは修正できません。

447 背景

思考から出版まで:MediumMCP AI-to-Mediumプラットフォームワークフローを合理化

できること

ツールのマップ1:1は、Mediumのv1 APIを実際に持っているエンドポイントにマップします。

| ツール | お問い合わせ | 中エンドポイント | |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | [get-profile | ユーザーID・ユーザー名・名前・プロフィールURL | [[[T1] | | [get-publications | 保有する出版物 | [[T3] | | [publish-article | 投稿(マークダウンまたはHTML)を作成します。 [draft、[public]]、または[unlisted]にデフォルトで、必要に応じて出版物内の[[[POST /users/{userId}/posts]]]、[POST /publications/{id}/posts]にすることができます

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

Medium MCP Server

A small Model Context Protocol server that lets an MCP client (Claude Desktop, Cursor, etc.) create Medium drafts and read your Medium profile and publications.

[!WARNING] Medium’s official API is deprecated. Medium no longer supports its API and has stopped issuing new integration tokens. This server only works if you already have a Medium integration token. If you don’t, there is currently no official way to get one, and this project can’t fix that.

📖 Background

From Thought to Published: How MediumMCP Streamlines the AI-to-Medium Platform Workflow

What it can do

The tools map 1:1 to the endpoints Medium’s v1 API actually has:

Tool What it does Medium endpoint
get-profile Your user id, username, name, profile URL GET /me
get-publications Publications you own, edit or write for GET /users/{userId}/publications
publish-article Creates a post (markdown or HTML). Defaults to draft, can be public or unlisted, optionally inside a publication POST /users/{userId}/posts, POST /publications/{id}/posts

What it can’t do: search articles, read posts, read stats, or edit/delete posts. The official API never had those endpoints.

Setup

Requirements: Node.js 18+ and an existing Medium integration token.

git clone https://github.com/Dishant27/medium-mcp-server.git
cd medium-mcp-server
npm install
npm run build

Copy .env.example to .env and set your token:

MEDIUM_INTEGRATION_TOKEN=your_existing_integration_token

Use with Claude Desktop (or any MCP client)

{
  "mcpServers": {
    "medium": {
      "command": "node",
      "args": ["/absolute/path/to/medium-mcp-server/dist/index.js"],
      "env": {
        "MEDIUM_INTEGRATION_TOKEN": "your_existing_integration_token"
      }
    }
  }
}

Then ask things like “Create a Medium draft titled … from this markdown” and review the draft on Medium before publishing.

No token? Alternatives

  • Write to markdown files and import them with Medium’s import tool, which also sets the canonical link.
  • Publish on a platform with a working API (e.g. dev.to, Hashnode) and cross-post to Medium with a canonical URL.
  • Browser automation against medium.com works but is fragile and may break Medium’s terms, so it isn’t included here.

License

MIT

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "medium": { "command": "node", "args": ["/absolute/path/to/medium-mcp-server/dist/index.js"], "env": { "MEDIUM_INTEGRATION_TOKEN": "your_existing_integration_token" } } } }