PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversbrowser-automationmedium-mcp-server
返回「browser-automation」

medium-mcp-server

modelscope·@jackyckma/medium-mcp-server

browser-automation0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

<img src="https://cdn-static-1.medium.com/_/fp/icons/Medium-Avatar-500x500.svg" alt="Medium Logo" width="32" height="32"> Medium MCP Server (Browser-Based)

Overview

Medium MCP (Model Context Protocol) is a browser-based solution for programmatically interacting with Medium's content ecosystem. Since Medium discontinued their public API for new users, this server uses browser automation to provide intelligent and context-aware content management.

Why Browser-Based?

Medium stopped issuing new API tokens in 2023, making traditional API integration impossible for new developers. This implementation uses Playwright browser automation to:

  • Work without API tokens - Uses your existing Medium login session
  • Full functionality - Publish, search, and manage your Medium content
  • Secure - Saves your login session locally for reuse
  • Interactive - Opens browser for initial login, then runs headlessly

Deep Dive Article

Want to understand the full story behind Medium MCP? Check out the comprehensive article:

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

Key Features

  • Browser automation for Medium interaction
  • Article publishing with title, content, and tags
  • Retrieve your articles from your Medium profile
  • Search Medium articles by keywords
  • Session persistence - login once, use everywhere
  • Claude integration via Model Context Protocol

Technology Stack

  • TypeScript
  • Model Context Protocol (MCP)
  • Playwright Browser Automation
  • Advanced Content Parsing

Getting Started

Prerequisites

  • Node.js (v16 or later)
  • npm or yarn
  • A Medium account (no API credentials needed!)

Installation

# Clone the repository
git clone https://github.com/jackyckma/medium-mcp-server.git

# Navigate to the project directory
cd medium-mcp-server

# Install dependencies
npm install

# Install browser for automation
npx playwright install chromium

# Build the project
npm run build

Configuration

No API keys needed! The server will prompt you to login to Medium in your browser on first use.

Usage

Test the Browser Client

# Test the browser automation (optional)
node test-browser.js

Start the MCP Server

npm start

Add to Claude Configuration

Add this to your Claude MCP configuration:

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

Available MCP Tools

1. publish-article

Publish a new article to Medium

{
  title: string,      // Article title
  content: string,    // Article content (markdown supported)
  tags?: string[],    // Optional tags
  isDraft?: boolean   // Save as draft (default: false)
}

2. get-my-articles

Retrieve your published Medium articles

// No parameters needed
// Returns: Array of your articles with titles, URLs, and dates

3. get-article-content

Get full content of any Medium article

{
  url: string  // Medium article URL
}

4. search-medium

Search Medium for articles by keywords

{
  keywords: string[]  // Array of search terms
}

5. login-to-medium

Manually trigger login process

// No parameters needed
// Opens browser for login if not already authenticated

How It Works

First Time Setup

  1. Run the server - It will open a Chrome browser window
  2. Login to Medium - Complete login in the opened browser
  3. Session saved - Your login session is saved locally
  4. Future runs - No login required, runs headlessly

Browser Automation Flow

User Request  MCP Server  Playwright Browser  Medium Website  Response

Session Management

  • Login session stored in medium-session.json
  • Automatically reused on subsequent runs
  • Re-login only if session expires

Example Usage with Claude

User: "Publish an article titled 'AI in 2025' with content about recent developments"

Claude: Uses publish-article tool 
- Opens Medium editor
- Fills in title and content
- Publishes article
- Returns success with article URL

Troubleshooting

Browser Issues

  • Browser won't open: Check if Chromium is installed (npx playwright install chromium)
  • Login fails: Clear medium-session.json and try again
  • Slow performance: Browser automation takes 10-30 seconds per operation

Medium Changes

  • Selectors outdated: Medium occasionally changes their website structure
  • Login blocked: Use your regular browser to login first, then try again

Common Errors

  • Browser not initialized: Restart the server
  • Login timeout: Increase timeout in browser-client.ts
  • Element not found: Medium may have changed their UI

Development

Project Structure

src/
 index.ts           # Main MCP server
 browser-client.ts  # Playwright automation
 auth.ts           # Legacy auth (unused)
 client.ts         # Legacy API client (unused)

Testing

# Test browser automation
node test-browser.js

# Run MCP server
npm start

# Build project
npm run build

Security Notes

  • Local only - No data sent to external servers
  • Session encryption - Browser handles all security
  • No API keys - Uses your existing Medium login
  • Browser storage - Session saved locally in JSON file

Limitations

  • Speed: Browser automation is slower than API calls (10-30s vs 1-2s)
  • Reliability: Dependent on Medium's website structure
  • Headless: Requires display for initial login (can run headless after)
  • Rate limits: Subject to Medium's normal usage limits

Contributing

Contributions welcome! Please read CONTRIBUTING.md for guidelines.

License

MI…

相关 MCP Servers(来自「browser-automation」)

快递100 MCP Server

快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。

kuaidi100/kuaidi100-mcp

网页截图

暂无描述。

bingal/webshot-mcp

网页开发MCP

一个提供网页开发工具的MCP服务器,例如屏幕捕捉功能,可以让AI代理获取并处理用户屏幕的截图。

@ZukAi-MCP/webdev-mcp

网页内容提取器

一个从网站提取有意义内容并将HTML转换为高质量Markdown的MCP服务器,使用Mozilla的Readability引擎。

@tolik-unicornrider/mcp_scraper

微软Playwright

一种模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页交互,而无需使用视觉模型或截图。

@microsoft/playwright-mcp

消息通知(MCP&Agent挑战赛)

桌面通知、个性化声音、ntfy 手机应用通知、邮件通知和 API 推送,减少 AI 任务等待焦虑,舒适地享用一杯咖啡。​

gimjin/message_mcp-MCP_Agent_Challenge

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/jackyckma-medium-mcp-server/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

# Clone the repository git clone https://github.com/jackyckma/medium-mcp-server.git # Navigate to the project directory cd medium-mcp-server # Install dependencies npm install # Install browser for automation npx playwright install chromium # Build the project npm run build

基本信息

分类
browser-automation / content-management-systems / app-automation
运行方式
No
许可证
MIT License
详情文件
jackyckma-medium-mcp-server.md