MCP Medium Server

MCP Medium Server

Enables AI assistants to publish posts to Medium with support for drafts, tags, canonical URLs, and follower notifications. Supports various publishing statuses and SEO optimization features.

Category
Visit Server

README

MCP Medium Server

NPM Version Static Badge NPM License

TypeScript Node.js Medium

A Model Context Protocol (MCP) server that enables AI assistants to publish posts to Medium.

Features

  • Publish Posts: Create and publish articles to Medium
  • Draft Support: Publish as draft, unlisted, or public
  • Tag Management: Add tags to your posts
  • Canonical URLs: Set canonical URLs for SEO
  • Follower Notifications: Optionally notify followers when publishing

Installation

Via npx (Recommended)

npx mcp-medium

Local Development

git clone <repository-url>
cd mcp-medium
pnpm install
pnpm build
pnpm start

Setup

1. Get Medium API Token

  1. Go to Medium Settings
  2. Scroll down to "Integration tokens"
  3. Generate a new token
  4. Copy the token for use in your environment

2. Set Environment Variable

export MEDIUM_TOKEN="your_medium_token_here"

3. Configure MCP Client

Add this server to your MCP client configuration:

Claude Desktop (config.json):

{
  "mcpServers": {
    "medium": {
      "command": "npx",
      "args": ["mcp-medium"],
      "env": {
        "MEDIUM_TOKEN": "your_medium_token_here"
      }
    }
  }
}

Other MCP Clients:

npx mcp-medium

Usage

Once configured, you can ask your AI assistant to publish posts to Medium:

"Please publish this article to Medium as a draft with the tags 'programming' and 'typescript'"

"Publish this post to Medium publicly and notify my followers"

Available Parameters

  • title (required): The post title
  • content (required): The post content (HTML format)
  • tags (optional): Array of tags for the post
  • canonicalUrl (optional): Canonical URL for SEO
  • publishStatus (optional): "draft", "unlisted", or "public" (default: "draft")

Example

// The AI assistant can call this tool:
publishPost({
  title: "My First MCP Post",
  content: "<h1>Hello World</h1><p>This is my first post via MCP!</p>",
  tags: ["mcp", "automation"],
  publishStatus: "draft"
})

Development

Build

pnpm build

Development Mode

pnpm dev

Lint

pnpm lint
pnpm fix

Requirements

  • Node.js 18+
  • Medium account with API access
  • Valid Medium integration token

License

MIT

Author

Jay Simons

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on the repository.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured