Skip to main content
Glama

MCP Medium Server

by designly1

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

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.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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.

  1. Features
    1. Installation
      1. Via npx (Recommended)
      2. Local Development
    2. Setup
      1. 1. Get Medium API Token
      2. 2. Set Environment Variable
      3. 3. Configure MCP Client
    3. Usage
      1. Available Parameters
    4. Example
      1. Development
        1. Build
        2. Development Mode
        3. Lint
      2. Requirements
        1. License
          1. Author
            1. Contributing
              1. Support

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables AI assistants to interact with WordPress sites through the WordPress REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.
                  Last updated -
                  21
                  100
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.
                  Last updated -
                  21
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.
                  Last updated -
                  29
                  43
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/designly1/mcp-medium'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server