MCP Medium Server
Enables AI assistants to publish articles to Medium with support for drafts, tags, canonical URLs, and follower notifications
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Medium Serverpublish this article as a draft with tags 'ai' and 'automation'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Medium Server
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
Related MCP server: Hashnode MCP Server v2.0
Installation
Via npx (Recommended)
npx mcp-mediumLocal Development
git clone <repository-url>
cd mcp-medium
pnpm install
pnpm build
pnpm startSetup
1. Get Medium API Token
Go to Medium Settings
Scroll down to "Integration tokens"
Generate a new token
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-mediumUsage
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 buildDevelopment Mode
pnpm devLint
pnpm lint
pnpm fixRequirements
Node.js 18+
Medium account with API access
Valid Medium integration token
License
MIT
Author
Jay Simons
Website: https://yaa.bz
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.
Maintenance
Related MCP Connectors
Publish to self-hosted WordPress from AI agents: markdown, images, SEO, and Notion sync.
Draft, schedule and publish social posts to nine platforms from any AI agent.
Publish Markdown or HTML to a shareable link from your AI assistant. OAuth, no API keys.
- AntworkOAuthio.antwork
Draft, schedule, and publish social posts for your workspace straight from your AI.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to interact with Medium's platform for publishing, updating, and managing articles and drafts through OAuth 2.0 authentication with automatic retry logic and rate limit handling.8 npm1MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to publish, update, and manage Hashnode blog articles, with support for tags, cover images, and publication management.-
- AlicenseAqualityDmaintenanceEnables AI assistants to read and analyze Medium blog posts, including member-only content with login support, and search articles by author or keyword.118 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to create, update, delete, and query posts on any Micropub-compatible blog with IndieAuth authentication.1-