# Medium API and MCP server

> Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Accounts that still hold a token can only create posts, list publications and upload images, with no editing, stats or responses.

Open publishing platform where writers post stories, join publications and earn from member reads through the Partner Program.

## What is the Medium API?

Cotlet's Medium API exposes 13 endpoints for your own Medium account: list stories, get story, get story stats, get account stats, list responses, list publications, create draft, import story, update story, publish story, schedule story, submit to publication and reply to response. The list_stories endpoint returns your stories, newest first, with status, publication, tags and URL. Each endpoint takes simple JSON inputs like story_id, cursor or status and works both as an MCP tool for agents and as a REST call for scripts.

- **Category:** [Creators & communities](https://cotlet.dev/integrations/category/creators-communities)
- **Endpoints:** 13 (6 read, 7 write)
- **Updated:** 2026-10-11

Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Cotlet is a hosted MCP server and REST API for Medium with 13 endpoints (6 read, 7 write): your AI agent signs in as you and does the work.

## Does Medium have an official API?

Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Accounts that still hold a token can only create posts, list publications and upload images, with no editing, stats or responses.

| Task | Medium official | Cotlet |
|---|---|---|
| Create a draft from Markdown | Partly: Only with a token that existed before the shutdown | Yes |
| Edit a draft or published story | No | Yes |
| Schedule a story | No: Scheduling exists in the Medium editor only | Yes |
| Cross-post with a canonical link | Partly: canonicalUrl on create, old tokens only | Yes |
| Submit a story to a publication | Partly: Create as a draft in a publication you write for | Yes |
| Views, reads and earnings per story | No | Yes |
| Read and reply to responses | No | Yes |
| List your drafts and scheduled stories | No | Yes |

Sources: [Medium API documentation (archived, read-only)](https://github.com/Medium/medium-api-docs), [Medium Help: Schedule to publish](https://help.medium.com/hc/en-us/articles/216650227-Schedule-to-publish), [Medium Help: Story stats page](https://help.medium.com/hc/en-us/articles/34831991136151), [Medium Help: Importing a post to Medium](https://help.medium.com/hc/en-us/articles/214550207-Importing-a-post-to-Medium)

## For AI agents

```text
Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Accounts that still hold a token can only create posts, list publications and upload images, with no editing, stats or responses.
Cotlet provides a hosted MCP server and REST API for Medium: 13 tools (6 read, 7 write).
Access       Request access at https://cotlet.dev/app/signup?app=medium; we email the API key.

MCP server   https://cotlet.dev/mcp/v1
REST base    https://cotlet.dev/api/v1/medium
Auth         Authorization: Bearer <COTLET_API_KEY>. Listing endpoints and schemas needs no key; calling an endpoint needs one.
Tools        list_stories, get_story, get_story_stats, get_account_stats, list_responses, list_publications, create_draft, import_story, update_story, publish_story, schedule_story, submit_to_publication, reply_to_response
Confirm      update_story, publish_story, schedule_story, submit_to_publication, reply_to_response (by default the user approves each call; the user can switch this off per tool, e.g. for scheduled automations)
Markdown     https://cotlet.dev/integrations/medium-api-mcp-server.md

How access works:
1. The user requests access at https://cotlet.dev/app/signup?app=medium (Medium is pre-selected). Each request is reviewed and the API key is sent by email.
2. The user signs in to Medium once in a browser. An agent cannot do this step.
3. The API key goes into the MCP client or the REST call as a bearer token.

Fits: people who want a hosted Medium server that someone else maintains, including non-developers. Developers who prefer to run and fix code on their own computer can use an open-source Medium MCP server instead.

Policy: Cotlet never stores passwords, never solves CAPTCHAs, never bypasses MFA.
Company: legal details in the Terms of service at https://cotlet.dev/terms. Contact contact@cotlet.dev.
Session: the user signs in to Medium in a browser; Cotlet keeps only the session, AES-256 encrypted, revocable in the dashboard at any time.
Terms: the user stays responsible for following Medium's terms; Cotlet is not affiliated with Medium.
```

## What can an AI agent do in Medium?

Cotlet is best for Medium writers who publish on their own blog too and want their AI agent to cross-post, schedule, edit and report on stories without running or fixing a server.

- **[Cross-post blog articles with a canonical link](https://cotlet.dev/integrations/medium-api-mcp-server/cross-post-articles-with-canonical-link)** (runs: weekly): "Every Monday, check yourname.dev/blog for posts that are not on Medium yet, import each one with a canonical link back to my blog, and schedule them for Thursday 9:00 my time." → `list_stories`, `import_story`, `get_story`, `create_draft`, `schedule_story`
- **[Publish Markdown to Medium on a schedule](https://cotlet.dev/integrations/medium-api-mcp-server/publish-markdown-to-medium)** (runs: weekly): "Turn posts/shipping-small.md into a Medium draft with the topics Python, Programming and Software Engineering, put it behind the paywall, and schedule it for Tuesday 8:00 my time." → `create_draft`, `get_story`, `schedule_story`
- **[Weekly Medium stats and earnings report](https://cotlet.dev/integrations/medium-api-mcp-server/weekly-stats-report)** (runs: weekly): "Every Monday, send me last month's views and reads against the month before, my top 5 stories by reads, and any paywalled story whose member read ratio dropped." → `get_account_stats`, `list_stories`, `get_story_stats`
- **[Update old Medium stories in bulk](https://cotlet.dev/integrations/medium-api-mcp-server/edit-published-stories)**: "Find every published story that still links to oldblog.example.com, swap the links for yourname.dev, and show me the list before you save anything." → `list_stories`, `get_story`, `update_story`
- **Submit drafts to a Medium publication**: "Submit my newest draft to the publication I write for." → `list_publications`, `submit_to_publication`
- **Reply to responses on your stories** (runs: daily): "List yesterday's unanswered responses on my stories and draft a reply to each for me to approve." → `list_stories`, `list_responses`, `reply_to_response`

## Can Medium automations run on a schedule in n8n, Make or Zapier?

Yes. Cotlet does not replace your automation platform: it gives it a Medium connection it does not have, with the same API key as your agent. Write actions ask for your OK by default; switch that off in your dashboard for the tools you choose, for example to cross-post blog articles with a canonical link, and the schedule runs on its own. Cotlet runs in the cloud, so it keeps going while your computer is off.

| Where | How to connect | How to schedule |
|---|---|---|
| Your AI agent | Add https://cotlet.dev/mcp/v1 with your API key. | A scheduled agent run, for example a Claude Code routine. |
| n8n | MCP Client node with https://cotlet.dev/mcp/v1, or an HTTP Request node to https://cotlet.dev/api/v1/medium/{tool}. | Schedule Trigger node. |
| Make | HTTP module: POST https://cotlet.dev/api/v1/medium/{tool} with an Authorization: Bearer header and a JSON body. | Scenario schedule. |
| Zapier | Webhooks by Zapier: POST https://cotlet.dev/api/v1/medium/{tool} with the same header and body. | Schedule by Zapier trigger. |
| Your own script | POST https://cotlet.dev/api/v1/medium/{tool} with your API key. | cron or GitHub Actions. |

## Tools

**For AI agents:** Every endpoint and its schema is public. The 13 endpoints on this page, with parameters and example responses, can be listed without an account. Calling one returns 403 until the account has an API key with access to Medium.

### list_stories

Your stories, newest first, with status, publication, tags and URL. Access: read. REST: `POST /api/v1/medium/list_stories`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `status` | enum | no | published, draft or scheduled. Default: published. |
| `limit` | integer | no | 1 to 50. Default: 20. |
| `cursor` | string | no | Next page cursor from the previous call. |

Lists your own stories, newest first. Filter by status to find drafts or scheduled stories. Each item has the story_id used by the other tools. Pages hold up to 50 stories; pass next_cursor back as cursor for the next page.

Example response:

```json
{
  "stories": [
    {
      "story_id": "3f9a1c27b84e",
      "title": "Shipping small",
      "status": "published",
      "publication": null,
      "tags": [
        "Python",
        "Programming"
      ],
      "published_at": "2026-10-02T09:00:00-04:00",
      "url": "https://medium.com/@yourname/shipping-small-3f9a1c27b84e"
    }
  ],
  "next_cursor": null
}
```

### get_story

Full story: title, subtitle, body as Markdown, tags, canonical link, paywall and dates. Access: read. REST: `POST /api/v1/medium/get_story`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |

Returns one story with its body as Markdown. Use it before update_story so your agent changes only the part you asked for. Works for drafts, scheduled and published stories.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "title": "Shipping small",
  "subtitle": "Why small releases win",
  "body_markdown": "Small releases beat big ones.\n\nHere is why.",
  "tags": [
    "Python",
    "Programming"
  ],
  "canonical_url": "https://yourname.dev/blog/shipping-small",
  "paywalled": false,
  "status": "published"
}
```

### get_story_stats

Views, reads, member read ratio, claps, responses and earnings for paywalled stories. Access: read. REST: `POST /api/v1/medium/get_story_stats`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |

Returns the numbers from the story's detailed stats page. Member read ratio is member reads divided by member views, the figure Medium uses to adjust earnings. Earnings appear only for stories behind the paywall.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "views": 1840,
  "reads": 912,
  "member_read_ratio": 0.42,
  "claps": 143,
  "responses": 6,
  "earnings": {
    "amount": 18.4,
    "currency": "USD"
  }
}
```

### get_account_stats

The account-level figures Medium shows on your stats page, for one month. Access: read. REST: `POST /api/v1/medium/get_account_stats`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `month` | string | no | YYYY-MM. Default: current month. |

Returns the account-level figures Medium shows on your stats page for one month. Use list_stories and get_story_stats to find which stories drove them.

Example response:

```json
{
  "month": "2026-09",
  "views": 9420,
  "reads": 4310
}
```

### list_responses

Responses to a story, with author, text and whether you replied. Access: read. REST: `POST /api/v1/medium/list_responses`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |
| `unanswered_only` | boolean | no | Skip responses you already replied to. |
| `cursor` | string | no | Next page cursor from the previous call. |

Lists the responses under one story, with the author, text and whether you already replied. Hidden responses are not returned. Pass response_id to reply_to_response.

Example response:

```json
{
  "responses": [
    {
      "response_id": "r_41b9c2",
      "author": "Dana Whitfield",
      "body": "The third example has a typo.",
      "created_at": "2026-10-03T11:20:00Z",
      "replied": false
    }
  ],
  "next_cursor": null
}
```

### list_publications

Publications you own, edit or write for, with your role. Access: read. REST: `POST /api/v1/medium/list_publications`.

No parameters.

Returns every publication you belong to with your role. Use the publication_id with submit_to_publication. Each publication sets its own rules for what it accepts.

Example response:

```json
{
  "publications": [
    {
      "publication_id": "pub_7d21",
      "name": "Better Programming",
      "role": "writer"
    }
  ]
}
```

### create_draft

New draft from Markdown. Nothing is public until you publish or schedule it. Access: write. REST: `POST /api/v1/medium/create_draft`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `title` | string | yes | Story title. |
| `body_markdown` | string | yes | Story body. Images by URL. |
| `subtitle` | string | no | Shown under the title and in previews. |
| `tags` | string[] | no | Up to 5 tags. |
| `canonical_url` | string | no | Original URL if the story was first published elsewhere. |
| `paywalled` | boolean | no | Member-only story (Partner Program). Default: false. |

Creates a draft from Markdown and returns its story_id. The draft is private. It reaches no one and is deleted or edited in one call, so it asks for no confirmation.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "status": "draft",
  "url": "https://medium.com/p/3f9a1c27b84e/edit"
}
```

### import_story

Medium's "Import a story": copies a post from a URL into a draft, backdated, with a canonical link. Access: write. REST: `POST /api/v1/medium/import_story`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Public URL of the original post. |

Runs Medium's importer on a public URL. The draft keeps the original date and gets a canonical link to the source. If Medium cannot read the page, the call fails and create_draft is the fallback. The draft is private, so no confirmation.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "status": "draft",
  "canonical_url": "https://yourname.dev/blog/shipping-small"
}
```

### update_story

Change the title, subtitle, body, tags, canonical link or paywall of a draft or a published story. Access: write, asks the user first. REST: `POST /api/v1/medium/update_story`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |
| `fields` | object | yes | Any of title, subtitle, body_markdown, tags, canonical_url, paywalled. |

Changes only the fields you send. On a published story the change is visible to readers at once. By default you confirm each call; you can switch that off for this tool.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "status": "published",
  "updated_fields": [
    "tags"
  ]
}
```

### publish_story

Publish a draft now. Access: write, asks the user first. REST: `POST /api/v1/medium/publish_story`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |

Publishes a draft under your name, or in the publication it belongs to. Readers and followers can see it at once. By default you confirm each call; you can switch that off for this tool.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "status": "published",
  "url": "https://medium.com/@yourname/shipping-small-3f9a1c27b84e"
}
```

### schedule_story

Publish a draft at a set time. Access: write, asks the user first. REST: `POST /api/v1/medium/schedule_story`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |
| `publish_at` | datetime | yes | ISO 8601 with time zone. |

Schedules a draft. Medium publishes it at the set time, and the story stays in your drafts until then. By default you confirm each call; you can switch that off for this tool.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "status": "scheduled",
  "publish_at": "2026-10-15T09:00:00-04:00"
}
```

### submit_to_publication

Send a draft to the editors of a publication you write for. Access: write, asks the user first. REST: `POST /api/v1/medium/submit_to_publication`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `story_id` | string | yes | Story ID from list_stories. |
| `publication_id` | string | yes | Publication ID from list_publications. |

Submits a draft to a publication. Its editors review it and decide when to publish. A publication can accept only drafts, only published stories, or both. By default you confirm each call; you can switch that off for this tool.

Example response:

```json
{
  "story_id": "3f9a1c27b84e",
  "publication_id": "pub_7d21",
  "status": "submitted"
}
```

### reply_to_response

Reply as you under a response to your story. Access: write, asks the user first. REST: `POST /api/v1/medium/reply_to_response`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `response_id` | string | yes | Response ID from list_responses. |
| `body` | string | yes | Reply text. |

Posts a reply under one response, under your name. By default you confirm each call; you can switch that off for this tool.

Example response:

```json
{
  "response_id": "r_41b9c2",
  "reply_id": "r_41ba07",
  "status": "published"
}
```

## How do I connect Medium to Claude Code, Codex or Cursor?

Connecting Medium takes three steps: request access, sign in to Medium once, then add one MCP server or call the REST API with the same key.

### Connect Medium to your agent.

1. **Create an account** Sign up and add Medium in the console. Your API key is there too.

2. **Sign in to Medium once** Open the connect page from the console and sign in to Medium the way you always do. We keep the session, never your password, and you can revoke it anytime.

3. **Add Cotlet to your agent** Paste the snippet for your client. The same server and key serve every app you connect, so you do this once.

   Claude Code:

```
claude mcp add --transport http cotlet \
  https://cotlet.dev/mcp/v1 \
  --header "Authorization: Bearer $COTLET_API_KEY"
```

   Cursor:

```
{
  "mcpServers": {
    "cotlet": {
      "url": "https://cotlet.dev/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${COTLET_API_KEY}"
      }
    }
  }
}
```

   Codex:

```
# ~/.codex/config.toml
[mcp_servers.cotlet]
url = "https://cotlet.dev/mcp/v1"
bearer_token_env_var = "COTLET_API_KEY"
```

4. **Ask your agent** Ask in plain words. Your agent finds the Medium tools on the server and calls them for you; anything that reaches other people waits for your OK unless you switch that off for a tool.

```
Every Monday, check yourname.dev/blog for posts that are not on Medium yet, import each one with a canonical link back to my blog, and schedule them for Thursday 9:00 my time.
```

### Call Medium from your scripts.

1. **Export your API key** Your scripts use the same API key as your agent. Keep it in an environment variable, never in your code.

```
export COTLET_API_KEY="cotlet_..."
```

2. **Call a tool** Every tool is a POST endpoint at /api/v1/medium/{tool}. Send its parameters as JSON, exactly as listed in the endpoints above.

```
curl https://cotlet.dev/api/v1/medium/schedule_story \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"story_id":"3f9a1c27b84e","publish_at":"2026-10-15T09:00:00-04:00"}'
```

3. **Read the result** You get plain JSON back, ready for your script. A failed call costs nothing.

```
{
  "story_id": "3f9a1c27b84e",
  "status": "scheduled",
  "publish_at": "2026-10-15T09:00:00-04:00",
  "canonical_url": "https://yourname.dev/blog/shipping-small",
  "url": "https://medium.com/@yourname/shipping-small-3f9a1c27b84e"
}
```

## Why use Cotlet for Medium?

**Built for agents**

- One MCP server for every app you connect.
- The same tools as a REST API for scripts and cron jobs.
- Works with Claude Code, Codex and Cursor.

**Your login stays yours**

- You sign in to Medium yourself. We keep only the session, encrypted with AES-256.
- The model never sees a login.
- No stored passwords, no CAPTCHA solving, no MFA bypass.

**You stay in control**

- Pick read only, or read and write.
- Anything that reaches other people waits for your OK, unless you switch it off per tool.
- Revoke access in one click.

**Kept working for you**

- We test every integration daily.
- When Medium changes, the tool pauses until we fix it.
- Failed calls cost nothing.

## Is there a Medium MCP server on GitHub?

Yes. Open-source Medium MCP servers exist on GitHub, usually maintained by one person. Some use the old API token, which new accounts cannot get. Others drive a browser with your login. You install one on your own computer and keep it running; when Medium changes its site, it stops working until you or the maintainer fix it. Cotlet hosts the same kind of server for you, and our team keeps it working.

|  | GitHub MCP server | Cotlet |
|---|---|---|
| Setup | Clone the repo, install it, sign it in to Medium, add it to each MCP client | Request access, sign in to Medium once, add one MCP server or API key |
| When Medium changes | It breaks until you or the maintainer fix it | Our team tests it daily and fixes it for you; failed calls are free |
| Your Medium session | In a file or browser profile on your computer, readable by any program you run | Encrypted in an EU vault, limited to the actions you allow, revoked in one click |
| When the session expires | Tools fail until you sign in again by hand | We keep it alive; if Medium logs you out, your agent gets a link to sign in again |
| Upkeep | You update, monitor and debug it yourself | Nothing to host or update |
| Where it runs | Your computer, while it is on | Hosted: Claude Code, Codex, Cursor, n8n and scripts, also on a schedule |
| Price | Free, paid for with your time | Free 7-day trial with 5,000 credits, then credits per call |

### Which one fits you

**Pick Cotlet if**

- you are not a developer, or you do not want to maintain a server
- you need it to keep working when Medium changes, without checking it yourself
- your agent or a script should run it on a schedule, also while your computer is off

**Pick an open-source server if**

- you are comfortable installing, updating and fixing it yourself
- you want the session to stay on your own computer
- you only need it now and then, from one MCP client

## How much does the Medium API cost?

Free 7-day trial with 5,000 credits, no card needed. After that, the Medium API comes with the Cotlet plan, from $29 a month for 3,000 credits, with no limit on apps. Each month's credits stay valid for 3 months, so unused credits add up.

| Size | Price | Credits / month | Per credit |
|---|---|---|---|
| Solo | $29/mo | 3,000 | about $0.0097 |
| Pro | $99/mo | 12,000 | about $0.0083 |
| Agency | $299/mo | 40,000 | $0.0075 |

Each successful call uses credits for the work it takes; failed calls and timeouts cost nothing. A hard spend cap is on by default. Authenticate with the `Authorization: Bearer` header. [See full pricing](https://cotlet.dev/pricing)

## How Cotlet holds your access

Cotlet hosts MCP servers and REST APIs for apps with no usable API. Your agent works in your own Medium account.

- **Company details:** The legal name, address and registration numbers of the company behind Cotlet are in the Terms of service. [Terms](https://cotlet.dev/terms)
- **Your session:** You sign in to Medium yourself, in your browser. We keep only the session, never your password: encrypted with AES-256 in an EU vault, isolated to your account and used only when your agent calls a Medium tool you allowed. When it expires, your agent gives you a link to sign in again. [Security](https://cotlet.dev/security)
- **Revoking access:** Disconnect Medium in your dashboard: the session is deleted and access ends at once. Actions that reach other people wait for your OK unless you switch that off per tool.
- **What we never do:** Store passwords, solve CAPTCHAs or bypass MFA.
- **Medium's terms:** You use your own Medium account and stay responsible for following Medium's terms. Cotlet is independent and not affiliated with Medium. [Terms](https://cotlet.dev/terms)
- **Contact:** Questions about the company, security or an app: [contact@cotlet.dev](mailto:contact@cotlet.dev)

## Frequently asked questions

**How do I get access?**

Request access and pick Medium. Cotlet reviews each request and emails you your API key.

**Do I need to be technical?**

No. You sign in to Medium once in your browser and paste one command into your agent, or one URL into n8n. Your agent can walk you through it. There is no server to install, update or fix.

**Is a hosted server safe? My Medium session would leave my computer.**

Cotlet keeps your Medium session encrypted with AES-256 in an EU vault, isolated to your account and used only for the tools you allow: read only, or read and write. The AI model never sees it, and you revoke it in one click. A local server keeps the same session in a file on your computer, readable by any program you run, and needs a fresh sign-in whenever it expires.

**Do I need the Partner Program to see earnings?**

Earnings appear only for stories behind the paywall in the Partner Program. For other stories get_story_stats returns views, reads and claps, and no earnings. Medium updates the member read ratio daily.

**Can my agent post or send messages in Medium without asking me?**

No. Every call to update_story, publish_story, schedule_story, submit_to_publication or reply_to_response waits for your OK by default. For scheduled automations you can switch confirmation off per tool in your dashboard, for example only for approvals. create_draft, import_story runs without asking, because it sends nothing to anyone and one call undoes it.

**Can I use the Medium API in n8n?**

Yes. Add https://cotlet.dev/mcp/v1 with your API key in n8n's MCP Client node, or call https://cotlet.dev/api/v1/medium/{tool} from the HTTP Request node.
