Cotlet MCP Server
Connects AI agents to a signed-in Medium account via Cotlet.dev, enabling guided browser automation for Medium tasks.
Get Medium guidance, screens, and sign-in link (
medium_guide).Check Cotlet.dev account, credits, and Medium connection (
medium_status).Open Medium pages in a signed-in Cloud Browser (
medium_open).Read page text and numbered buttons, links, and fields (
medium_read).Click elements, type into fields, and close the browser session (
medium_click,medium_type,medium_close).Use these tools to draft, format, publish stories, inspect stats, manage tags, and work with responses.
Connects to a user's Medium account, enabling AI agents to draft, format, and publish stories, read stats, submit drafts to publications, add tags, and reply to responses.
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., "@Cotlet MCP Server Turn this Google Doc into a Medium draft with headings and a cover image"
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.
How to connect Medium to Claude Code, ChatGPT and any AI agent
Yes, Claude, ChatGPT and other AI agents can work in your Medium account. Medium no longer gives API access to new integrations. Cotlet.dev connects your own Medium account to any AI agent, so the AI can draft, format and publish your stories and read your stats.
What you can ask
Turn this Google Doc into a Medium draft with headings and the cover image.
Which of my stories got the most reads this month?
Submit my latest draft to the publication I write for.
Add these 5 tags to my last three stories.
Reply to new responses on my most read story. Show me the drafts first.
Related MCP server: MCP Server Medium
Connect in 2 minutes
Get your API key at https://cotlet.dev/app and export it as COTLET_API_KEY.
Claude Code
claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"ChatGPT
Settings → Apps → add connector URL https://cotlet.dev/mcp/v1, then sign in with Cotlet.dev. No API key needed.
Cursor
Copy .cursor/mcp.json from this repo into your project:
{
"mcpServers": {
"cotlet": {
"url": "https://cotlet.dev/mcp/v1",
"headers": {
"Authorization": "Bearer ${COTLET_API_KEY}"
}
}
}
}Run it locally (stdio)
This repo is a real MCP server. It speaks MCP over stdio, lists its Medium tools without any key, and forwards every tool call to the hosted Cotlet.dev server. The hosted URL above stays the recommended way. Use this when your client only starts local servers.
{"mcpServers":{"medium":{"command":"uvx","args":["medium-cotlet-mcp"],"env":{"COTLET_API_KEY":"your-key"}}}}Or with Docker:
docker build -t medium-mcp .
docker run -i --rm -e COTLET_API_KEY medium-mcpTools: medium_guide, medium_status, medium_open, medium_read, medium_click, medium_type, medium_close. Without COTLET_API_KEY a tool call answers: "Set COTLET_API_KEY. Get a key at https://cotlet.dev/app".
Command line
Python 3.10+, nothing else to install. From PyPI:
pip install medium-cotlet-mcp # or run it once: uvx medium-cotlet-mcp connect
medium-cotlet-mcp connectOr straight from this repo:
export COTLET_API_KEY="your-key"
python3 medium_agent.py connect # ready config for Claude Code, Cursor, ChatGPT
python3 medium_agent.py status # is Medium ready in your Cotlet.dev account
python3 medium_agent.py guide # Medium screens and sign-in link
python3 medium_agent.py read # open Medium, read the page, close the browser
python3 medium_agent.py tools # list Cotlet.dev tools
python3 medium_agent.py serve # start the stdio MCP server (same as no argument)Questions from Medium users
Does Medium have an API?
Medium has an old REST API, but it no longer supports new integrations. Cotlet.dev works in your own Medium account, so your AI agent can publish without it.
How do I connect Medium to ChatGPT?
Add Cotlet.dev as an app in ChatGPT (Settings → Apps, connector URL https://cotlet.dev/mcp/v1), sign in to Medium once in your Cotlet.dev Cloud Browser, and ask ChatGPT in plain words. No code and no Medium API key.
Is there a way to use Claude with Medium?
Yes. In Claude Code run the one-line claude mcp add command above; in the Claude app add https://cotlet.dev/mcp/v1 as a custom connector. Claude then works in your own Medium account.
Is there a Medium MCP server?
Medium has no official MCP server. Cotlet.dev is a hosted MCP server that works in Medium for you, 24/7, with Claude, ChatGPT, Cursor, Codex, n8n, Make and Zapier.
Find it on
Also works with
Start free: https://cotlet.dev/signup?app=medium&utm_source=github&utm_medium=readme&utm_campaign=medium
Available Tools
7 toolsmedium_clickBInspect
Click a numbered element on the current Medium page.
Inputs: element (required).
medium_closeAInspect
Close the Medium browser session when the work is done, so credits stop running.
Inputs: no named parameters.
medium_guideAInspect
How to work in Medium (writing and publishing articles): its screens and the sign-in link. Call this first.
Inputs: task.
medium_openBInspect
Open a Medium page in your signed-in Cloud Browser (default https://medium.com) to work with writing and publishing articles.
Inputs: url.
medium_readBInspect
Read the current Medium page: its text and numbered buttons, links and fields.
Inputs: element.
medium_statusAInspect
Check that your Cotlet.dev account and Medium are ready: account, credits and Medium connection.
Inputs: no named parameters.
medium_typeBInspect
Type text into a numbered field on the current Medium page.
Inputs: text (required), element (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct role in the workflow: guidance, account/status check, opening a session, reading the page, clicking, typing, and closing. The browser primitives (open/read/click/type/close) are especially well separated, and the supporting tools (guide/status) do not overlap with them.
All tools use a consistent medium_ prefix followed by a concise action-oriented verb or noun: medium_guide, medium_status, medium_open, medium_read, medium_click, medium_type, medium_close. The convention is predictable throughout the set.
Seven tools is well-scoped for a browser-automation workflow focused on Medium. Each tool corresponds to a necessary step or primitive, with no obvious redundancy or missing lifecycle stage.
The set covers the core interaction loop: open, read, click, type, and close, plus guidance and readiness checks. Minor gaps exist around navigation and scrolling or keyboard actions, but most workflows can be handled through clicking and typing on visible numbered elements.
Related MCP Connectors
Blog MCP server for AI agents. One signup call returns a blog, an API key and a live URL; then your agent publishes markdown posts and gets public URLs back. Your agent does the writing; you get a dashboard for stats.
Hosted MCP server for AI agents to post to LinkedIn profiles and X and upload to YouTube.
Hosted MCP server for marketing agencies: connect Google Ads, GA4, Search Console, Meta, LinkedIn and more to Claude or ChatGPT. Pull reports and make changes via OAuth login, no setup.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceMCP server that connects AI agents to your Paragraph publication, enabling post management, subscriber analytics, and search across posts and publications.1MIT- FlicenseAqualityDmaintenanceMCP server for interacting with the Medium API. Allows AI agents to publish posts, manage publications, upload images, and parse RSS feeds to JSON.7-
- AlicenseAqualityCmaintenanceLocal MCP server giving AI coding agents (Claude Code, Cursor, VS Code/JetBrains Copilot) a shared, persistent memory of your projects and every bug/issue faced during development. Stateless, plain-file storage (AGENTS.md + issues.jsonl) — no database.16103 npm1MIT
- AlicenseNot gradedqualityBmaintenanceA hosted MCP server that lets AI agents generate content, upload media, create drafts, schedule posts, and publish to TikTok, Instagram, Facebook, and YouTube.MIT