Hashnode MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Hashnode MCP or direct API to publish blog posts, manage drafts, update articles, and fetch analytics through natural language.

Hashnode logoHashnode
Api Key

Hashnode is a blogging platform designed for developers to create, manage, and share technical content. It streamlines publishing and helps grow your dev audience effortlessly.

67 Tools

Try Hashnode now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Hashnode
Try asking
TOOLS

Supported Tools

Every Hashnode action and event your agent gets out of the box.

Hashnode Accept Publication Invite

Tool to accept a publication invitation.

Hashnode Add Comment

Add a comment to a Hashnode post.

Hashnode Add Content Block

Tool to add a content block to a Hashnode documentation project.

Hashnode Add Custom MDX Component

Tool to add a custom MDX component to a Hashnode documentation project.

Hashnode: Add Documentation Project Custom Domain

Tool to add a custom domain to a Hashnode documentation project.

Hashnode Add Reply

Tool to add a reply to an existing comment.

Hashnode: Check Custom Domain Availability

Tool to check if a custom domain is available for your Hashnode publication.

Hashnode: Check Subdomain Availability

Tool to check if a subdomain is available for a Hashnode publication.

Create Documentation API Reference

Tool to create a documentation API reference from an OpenAPI specification URL in a Hashnode project.

Create Documentation Link

Tool to create a link within a Hashnode documentation guide.

Hashnode: Create Documentation Project

Tool to create a new documentation project on Hashnode.

Hashnode Create Documentation Section

Tool to create a new documentation section in a Hashnode documentation guide.

Create Hashnode Documentation Guide

Tool to create a new documentation guide in a Hashnode documentation project.

Hashnode Delete Content Block

Tool to delete a content block from a Hashnode documentation project.

Hashnode Delete Custom MDX Component

Tool to delete a custom MDX component from a Hashnode documentation project.

Disable Documentation Project AI Search

Tool to disable AI search for a documentation project on Hashnode.

Hashnode: Fetch Invitations

Fetch pending publication invitations for a Hashnode publication.

Hashnode: Fetch Popular Tags

Tool to fetch a paginated list of popular tags.

Fetch Publication Posts

Tool to fetch a paginated list of posts from a publication.

Fetch Series Posts

Tool to fetch posts from a series within a publication.

Fetch Single Article

Tool to fetch a single article by slug from a publication.

Fetch Stories Feed

Fetch a paginated feed of stories from Hashnode.

Hashnode: Fetch User Details

Tool to fetch detailed user profile information by username.

Hashnode: Follow Tags

Follow specified tags to customize your content feed on Hashnode.

Generate Documentation Project Preview Authorization Token

Tool to generate a JWT authorization token for previewing a documentation project.

Get Documentation Project

Tool to fetch details of a Docs by Hashnode project by ID or hostname.

Get Post by ID

Tool to retrieve a published post by ID from Hashnode.

Get Publication by ID or Host

Tool to fetch publication details by ID or hostname.

Hashnode: Get Tag Details

Tool to fetch detailed information about a tag by its slug.

Hashnode Like Comment

Tool to like a comment on Hashnode.

Hashnode Like Post

Tool to like a post on Hashnode.

Hashnode: Like Reply

Tool to like a reply on Hashnode.

Hashnode: List Publications

Tool to list all publications of the authenticated user.

Hashnode: List Top Commenters

Tool to fetch users who have most actively participated in discussions by commenting in the last 7 days.

Hashnode: Map Documentation Project WWW Redirect

Tool to configure WWW redirect for a documentation project's custom domain.

Hashnode: Get Current User

Retrieves profile details of the currently authenticated Hashnode user.

Move Documentation Sidebar Item

Tool to reorder documentation sidebar items within a Hashnode guide.

Publish Documentation API Reference

Tool to publish a documentation API reference in a Hashnode documentation project.

Hashnode Publish Post

Tool to publish a new blog post to a Hashnode publication.

Hashnode Remove Comment

Tool to remove a comment from a Hashnode post.

Hashnode Remove Documentation Guide

Tool to remove a documentation guide from a Hashnode project.

Remove Documentation Project

Tool to remove a documentation project from Hashnode.

Hashnode Remove Documentation Project Custom Domain

Tool to remove a custom domain from a Hashnode documentation project.

Remove Documentation Sidebar Item

Tool to remove a sidebar item from a documentation guide on Hashnode.

Hashnode Remove Post

Tool to remove (delete) a post from Hashnode.

Hashnode Remove Reply

Tool to remove a reply from a comment.

Hashnode Rename Documentation Guide

Tool to rename a documentation guide in a Hashnode project.

Rename Documentation Sidebar Item

Tool to rename a documentation sidebar item within a Hashnode guide.

Hashnode Restore Post

Tool to restore a previously deleted Hashnode post.

Save Documentation Page Draft Content

Tool to save draft content for a documentation page in Hashnode.

Search Posts of Publication

Tool to search and retrieve posts from a specific publication based on a search query.

Subscribe to Newsletter

Tool to subscribe an email address to a Hashnode publication's newsletter.

Hashnode: Toggle Follow User

Tool to toggle follow status for a Hashnode user.

Hashnode: Unfollow Tags

Unfollow specified tags to customize your content feed on Hashnode.

Unsubscribe from Newsletter

Tool to unsubscribe an email address from a Hashnode publication's newsletter.

Hashnode Update Comment

Tool to update an existing comment on a Hashnode post.

Hashnode Update Content Block

Tool to update a content block in a Hashnode documentation project.

Update Documentation Appearance

Tool to update the appearance settings of a Hashnode documentation project.

Update Documentation General Settings

Tool to update general settings of a Hashnode documentation project.

Update Hashnode Documentation Guide

Tool to update an existing documentation guide in a Hashnode project.

Hashnode: Update Documentation Integrations

Tool to update third-party integrations for a Docs by Hashnode project.

Update Documentation Link

Tool to update an existing link within a Hashnode documentation guide.

Hashnode: Update Documentation Project Subdomain

Tool to update the subdomain of a Hashnode documentation project.

Hashnode Update Documentation Section

Tool to update a section in a Hashnode documentation guide.

Hashnode Update Post

Tool to update an existing Hashnode post via the updatePost mutation.

Hashnode Update Reply

Tool to update a reply.

Hashnode Verify Documentation Project Custom Domain

Tool to verify a custom domain for a Hashnode documentation project.

SETUP GUIDE

Connect Hashnode MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK and Claude Agent SDK
2

Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
Initialize the Composio client and create a Tool Router session
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Fetch all posts from my publication' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent
SETUP GUIDE

Connect Hashnode API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Hashnode Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Fetch all articles I published this week on Hashnode'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Hashnode actions with your Agent

Why Use Composio?

AI Native Hashnode Integration

  • Supports both Hashnode MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Hashnode data

Managed Auth

  • Built-in API Key handling with secure storage
  • Central place to manage, scope, and revoke Hashnode access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Hashnode
  • Scoped, least privilege access to Hashnode resources
  • Full audit trail of agent actions to support review and compliance
FAQ

Frequently asked questions

Yes, Hashnode requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with Hashnode.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Hashnode tool your agent needs.Free to start.

Start building