---
canonical_url: "https://docs.composio.dev/toolkits/hashnode_mcp"
markdown_url: "https://docs.composio.dev/toolkits/hashnode_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Hashnode MCP

Write, publish and manage Hashnode posts and drafts, review submissions, upload images, and read publications, series, comments, tags and users through Hashnode's official hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 32
- **Triggers:** 0
- **Slug:** `HASHNODE_MCP`
- **Version:** 00000000_00

## Tools

### Confirm image upload

**Slug:** `HASHNODE_MCP_CONFIRM_IMAGE_UPLOAD`

Verify a PUT-uploaded image (from create_image_upload_url) is within the 8MB size limit, deleting it if not, and return its public CDN URL. Call this after a successful PUT to the presigned url.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key` | string | Yes | The key returned by create_image_upload_url. |

### Create draft

**Slug:** `HASHNODE_MCP_CREATE_DRAFT`

Save a new unpublished draft to a publication. The target publication must be on the Pro plan. Returns the draft's id. Publish it later with publish_draft.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | No |  |
| `tags` | array | No |  |
| `title` | string | No |  |
| `metaTags` | object | No |  |
| `seriesId` | string | No |  |
| `settings` | object | No |  |
| `subtitle` | string | No |  |
| `coAuthors` | array | No | Co-author user ids, max 4, must be publication members. |
| `publishAs` | string | No | User id to credit as the author instead of the caller. Must be a publication member. |
| `publishedAt` | string | No | ISO datetime, to backdate the post when it's published. |
| `publicationId` | string | Yes | Id of the target publication. Must be on the Pro plan. |
| `contentMarkdown` | string | No | Draft body in markdown. |
| `disableComments` | boolean | No |  |
| `coverImageOptions` | object | No |  |
| `originalArticleURL` | string | No | Canonical URL, for republished articles. |

### Create image upload url

**Slug:** `HASHNODE_MCP_CREATE_IMAGE_UPLOAD_URL`

Get a one-time URL to PUT a local image file's raw bytes to, for uploading without inlining it into a tool call. Expires quickly, use it right away. After a successful PUT, call confirm_image_upload with the returned key to get the final CDN URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `contentType` | string | Yes | MIME type of the image you'll upload, e.g. 'image/png'. Must be image/*; SVG not accepted. |

### Create post

**Slug:** `HASHNODE_MCP_CREATE_POST`

Publish a new post directly to a Hashnode publication (via the publishPost mutation). The target publication must be on the Pro plan. Returns the new post's id, slug, and url.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | No | Auto-generated from the title if omitted. |
| `tags` | array | No |  |
| `title` | string | Yes |  |
| `ogImage` | string | No |  |
| `seriesId` | string | No |  |
| `subtitle` | string | No |  |
| `coAuthors` | array | No | Co-author user ids, max 4, must be publication members. |
| `enableToc` | boolean | No |  |
| `metaTitle` | string | No |  |
| `publishAs` | string | No | User id to credit as the post's author instead of the caller. Must be a publication member; the caller needs owner/admin/author rights on the publication. |
| `coverImage` | string | No | URL of the cover image. |
| `isDelisted` | boolean | No |  |
| `publishedAt` | string | No | ISO datetime, to backdate the post. |
| `publicationId` | string | Yes | Id of the target publication. Must be on the Pro plan. |
| `contentMarkdown` | string | Yes | Post body in markdown. |
| `disableComments` | boolean | No |  |
| `metaDescription` | string | No |  |
| `originalArticleURL` | string | No | Canonical URL, for republished articles. |

### Delete draft

**Slug:** `HASHNODE_MCP_DELETE_DRAFT`

Delete a draft. Only the draft's author or a publication admin can do this. This cannot be undone through the API.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Id of the draft to delete. |

### Delete post

**Slug:** `HASHNODE_MCP_DELETE_POST`

Soft-delete a Hashnode post (via the removePost mutation): marks it inactive, drops it from feeds and listings, and frees its slug. Only the post's author or a publication admin can do this, co-authors cannot. This cannot be undone through the API.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Id of the post to remove. |

### Get draft

**Slug:** `HASHNODE_MCP_GET_DRAFT`

Fetch a single draft by id: title, subtitle, slug, tags, series, author, and full markdown content. Only the draft's author or a publication admin can read it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Id of the draft to fetch. |

### Get post

**Slug:** `HASHNODE_MCP_GET_POST`

Fetch a single post by id (via the post query): title, subtitle, slug, url, brief, tags, author, publish date, and full markdown/html content. Requires the publication to be on the Pro plan. Use this to find a post's current content or confirm its id before calling update_post or delete_post.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Id of the post to fetch. |

### Get post by slug

**Slug:** `HASHNODE_MCP_GET_POST_BY_SLUG`

Fetch a single post by its slug within a publication (via publication.post): title, subtitle, url, brief, tags, author, publish date, and full markdown content. Provide exactly one of publicationId or host.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `slug` | string | Yes | The post's slug. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### Get publication

**Slug:** `HASHNODE_MCP_GET_PUBLICATION`

Fetch a publication's details: title, URL, about text, follower and post counts, and pinned post. Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### Get series

**Slug:** `HASHNODE_MCP_GET_SERIES`

Fetch a single series by its slug within a publication (via publication.series): id, name, description, and cover image. Provide exactly one of publicationId or host.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `slug` | string | Yes | The series' slug. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### Get tag

**Slug:** `HASHNODE_MCP_GET_TAG`

Fetch a tag's details by slug (via the tag query): id, name, tagline, info, follower and post counts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | The tag's slug, e.g. 'javascript'. |

### Get user

**Slug:** `HASHNODE_MCP_GET_USER`

Fetch a user's public profile by username (via the user query): id, name, tagline, and follower counts. Use this to resolve a username to the user id a publishAs or coAuthors value needs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `username` | string | Yes | The user's Hashnode username. |

### List all drafts

**Slug:** `HASHNODE_MCP_LIST_ALL_DRAFTS`

List every author's drafts in a Hashnode publication, most recently updated first. Requires the publication to be on the Pro plan and owner or admin rights. Provide exactly one of publicationId or host. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 50. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List all scheduled drafts

**Slug:** `HASHNODE_MCP_LIST_ALL_SCHEDULED_DRAFTS`

List every author's drafts that are scheduled to publish later in a Hashnode publication. Requires the publication to be on the Pro plan and owner or admin rights. Provide exactly one of publicationId or host. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 50. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List comments

**Slug:** `HASHNODE_MCP_LIST_COMMENTS`

List the comments on a post, newest first. Requires the publication to be on the Pro plan. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |
| `postId` | string | Yes | Id of the post. |

### List drafts

**Slug:** `HASHNODE_MCP_LIST_DRAFTS`

List your own drafts in a Hashnode publication, most recently updated first. Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 50. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List members

**Slug:** `HASHNODE_MCP_LIST_MEMBERS`

List a publication's members with their user id, username, and role (via publication.members). Use this to find the user id a publishAs value needs. Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host. Excludes members who set their profile privacy to private, so it may not show every member (including yourself).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List posts

**Slug:** `HASHNODE_MCP_LIST_POSTS`

List posts in a Hashnode publication, newest first (via publication.posts). Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host to identify the publication. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List publications

**Slug:** `HASHNODE_MCP_LIST_PUBLICATIONS`

List the publications you own: id, title, URL, and whether it's a team publication. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |

### List scheduled drafts

**Slug:** `HASHNODE_MCP_LIST_SCHEDULED_DRAFTS`

List your own drafts that are scheduled to publish later in a Hashnode publication. Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 50. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List series

**Slug:** `HASHNODE_MCP_LIST_SERIES`

List a publication's series with their id, name, and slug (via publication.seriesList). Use this to find the series id a seriesId value needs. Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List static pages

**Slug:** `HASHNODE_MCP_LIST_STATIC_PAGES`

List a publication's static pages (About, Contact, and so on) with their content. Requires the publication to be on the Pro plan. Provide exactly one of publicationId or host. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### List submitted drafts

**Slug:** `HASHNODE_MCP_LIST_SUBMITTED_DRAFTS`

List drafts submitted for review in a Hashnode publication, most recently updated first. Requires the publication to be on the Pro plan and owner or admin rights. Provide exactly one of publicationId or host. Paginate with the cursor returned as nextCursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | string | No | Publication domain, e.g. 'blog.example.com'. Provide this or publicationId, not both. |
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 50. |
| `publicationId` | string | No | Publication id. Provide this or host, not both. |

### Publish draft

**Slug:** `HASHNODE_MCP_PUBLISH_DRAFT`

Publish an existing draft as a post. The draft needs a title and content. Requires owner or admin rights on the publication. Returns the new post's id, slug, and url.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Id of the draft to publish. |

### Reject draft submission

**Slug:** `HASHNODE_MCP_REJECT_DRAFT_SUBMISSION`

Send a draft that was submitted for review back to its author. Requires owner or admin rights on the publication. Team publications only.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Id of the submitted draft. |

### Search posts

**Slug:** `HASHNODE_MCP_SEARCH_POSTS`

Full-text search posts within a publication (via searchPostsOfPublication), newest first by default. Unlike list_posts, this only accepts publicationId, not host, and needs a search query. Use list_posts to list without one.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Cursor from a previous call's nextCursor, to fetch the next page. |
| `first` | integer | No | Page size, max 100. |
| `query` | string | Yes | Search text. |
| `sortBy` | string ("DATE_PUBLISHED_ASC" | "DATE_PUBLISHED_DESC") | No | Sort order, defaults to newest first. |
| `publicationId` | string | Yes | Id of the publication to search within. |

### Submit draft for review

**Slug:** `HASHNODE_MCP_SUBMIT_DRAFT_FOR_REVIEW`

Submit your own draft to the publication's owner and admins for review. Team publications only. The draft needs a title and content.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draftId` | string | Yes | Id of the draft to submit. |

### Top commenters

**Slug:** `HASHNODE_MCP_TOP_COMMENTERS`

List the users who comment most on a publication's posts. Requires the publication to be on the Pro plan.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | How many users to return. Defaults to 10. |
| `publicationId` | string | Yes | Id of the publication. |

### Update draft

**Slug:** `HASHNODE_MCP_UPDATE_DRAFT`

Update an existing unpublished draft. Only include the fields you want to change; everything else is left as-is. Returns the draft's id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | No |  |
| `tags` | array | No |  |
| `title` | string | No |  |
| `draftId` | string | Yes | Id of the draft to update. |
| `metaTags` | object | No |  |
| `seriesId` | string | No |  |
| `settings` | object | No |  |
| `subtitle` | string | No |  |
| `coAuthors` | array | No | Co-author user ids, max 4, must be publication members. |
| `publishAs` | string | No | User id to credit as the author instead of the caller. Must be a publication member. |
| `publishedAt` | string | No | ISO datetime, to backdate the post when it's published. |
| `contentMarkdown` | string | No | Draft body in markdown. |
| `disableComments` | boolean | No |  |
| `coverImageOptions` | object | No |  |
| `originalArticleURL` | string | No | Canonical URL, for republished articles. |

### Update post

**Slug:** `HASHNODE_MCP_UPDATE_POST`

Update an existing, already-published Hashnode post (via the updatePost mutation). Only include the fields you want to change; everything else is left as-is. Returns the post's id, slug, and url.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Id of the post to update. |
| `slug` | string | No |  |
| `tags` | array | No |  |
| `title` | string | No |  |
| `ogImage` | string | No |  |
| `seriesId` | string | No |  |
| `subtitle` | string | No |  |
| `coAuthors` | array | No |  |
| `enableToc` | boolean | No |  |
| `metaTitle` | string | No |  |
| `publishAs` | string | No | User id to reassign the post's author to. Must be a publication member; only the publication owner or an admin/author-role member can change it. |
| `coverImage` | string | No |  |
| `isDelisted` | boolean | No |  |
| `publishedAt` | string | No |  |
| `contentMarkdown` | string | No |  |
| `disableComments` | boolean | No |  |
| `metaDescription` | string | No |  |
| `originalArticleURL` | string | No |  |

### Whoami

**Slug:** `HASHNODE_MCP_WHOAMI`

Fetch the caller's own Hashnode profile (via the me query): id, username, name, email, tagline, and join date. Use this to find your own user id, e.g. to compare against list_members results.
