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.
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}"
}
}
}
}
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 connect
Or 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
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.
Also works with
Start free: https://cotlet.dev/signup?app=medium&utm_source=github&utm_medium=readme&utm_campaign=medium
Metadata
Release files for medium-cotlet-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medium_cotlet_mcp-1.0.0.tar.gz | 6.0 kB | With provenance | Details for medium_cotlet_mcp-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medium_cotlet_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for medium_cotlet_mcp-1.0.0-py3-none-any.whl |
Total release size: 12.4 kB
Release files / medium_cotlet_mcp-1.0.0.tar.gz
| Download URL | medium_cotlet_mcp-1.0.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56e3d8ec4f6f22cb5b1763813fb2bffb8776c006c28ccd730ea8490335f81a6d
|
|
BLAKE2b-256 checksum How to use checksums |
38802362d52ef19a71b50e05823669b3ae84dd43959b7d8ae9edfd592183b7c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / medium_cotlet_mcp-1.0.0-py3-none-any.whl
| Download URL | medium_cotlet_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f76b9cf6f072cd2df9ec98274dba7d6381d8b6a7923d94f010fc53801ce56086
|
|
BLAKE2b-256 checksum How to use checksums |
ab12eb66bbcce7f1d7b6d57362d81800b63de9315ecbd02778779c0b7d094729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for medium-cotlet-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for medium_cotlet_mcp-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.