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.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Hashnode Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Hashnode now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Hashnode Accept Publication InviteTool to accept a publication invitation.
Hashnode Add CommentAdd a comment to a Hashnode post.
Hashnode Add Content BlockTool to add a content block to a Hashnode documentation project.
Hashnode Add Custom MDX ComponentTool to add a custom MDX component to a Hashnode documentation project.
Hashnode: Add Documentation Project Custom DomainTool to add a custom domain to a Hashnode documentation project.
Hashnode Add ReplyTool to add a reply to an existing comment.
Hashnode: Check Custom Domain AvailabilityTool to check if a custom domain is available for your Hashnode publication.
Hashnode: Check Subdomain AvailabilityTool to check if a subdomain is available for a Hashnode publication.
Create Documentation API ReferenceTool to create a documentation API reference from an OpenAPI specification URL in a Hashnode project.
Create Documentation LinkTool to create a link within a Hashnode documentation guide.
Hashnode: Create Documentation ProjectTool to create a new documentation project on Hashnode.
Hashnode Create Documentation SectionTool to create a new documentation section in a Hashnode documentation guide.
Create Hashnode Documentation GuideTool to create a new documentation guide in a Hashnode documentation project.
Hashnode Delete Content BlockTool to delete a content block from a Hashnode documentation project.
Hashnode Delete Custom MDX ComponentTool to delete a custom MDX component from a Hashnode documentation project.
Disable Documentation Project AI SearchTool to disable AI search for a documentation project on Hashnode.
Hashnode: Fetch InvitationsFetch pending publication invitations for a Hashnode publication.
Hashnode: Fetch Popular TagsTool to fetch a paginated list of popular tags.
Fetch Publication PostsTool to fetch a paginated list of posts from a publication.
Fetch Series PostsTool to fetch posts from a series within a publication.
Fetch Single ArticleTool to fetch a single article by slug from a publication.
Fetch Stories FeedFetch a paginated feed of stories from Hashnode.
Hashnode: Fetch User DetailsTool to fetch detailed user profile information by username.
Hashnode: Follow TagsFollow specified tags to customize your content feed on Hashnode.
Generate Documentation Project Preview Authorization TokenTool to generate a JWT authorization token for previewing a documentation project.
Get Documentation ProjectTool to fetch details of a Docs by Hashnode project by ID or hostname.
Get Post by IDTool to retrieve a published post by ID from Hashnode.
Get Publication by ID or HostTool to fetch publication details by ID or hostname.
Hashnode: Get Tag DetailsTool to fetch detailed information about a tag by its slug.
Hashnode Like CommentTool to like a comment on Hashnode.
Hashnode Like PostTool to like a post on Hashnode.
Hashnode: Like ReplyTool to like a reply on Hashnode.
Hashnode: List PublicationsTool to list all publications of the authenticated user.
Hashnode: List Top CommentersTool to fetch users who have most actively participated in discussions by commenting in the last 7 days.
Hashnode: Map Documentation Project WWW RedirectTool to configure WWW redirect for a documentation project's custom domain.
Hashnode: Get Current UserRetrieves profile details of the currently authenticated Hashnode user.
Move Documentation Sidebar ItemTool to reorder documentation sidebar items within a Hashnode guide.
Publish Documentation API ReferenceTool to publish a documentation API reference in a Hashnode documentation project.
Hashnode Publish PostTool to publish a new blog post to a Hashnode publication.
Hashnode Remove CommentTool to remove a comment from a Hashnode post.
Hashnode Remove Documentation GuideTool to remove a documentation guide from a Hashnode project.
Remove Documentation ProjectTool to remove a documentation project from Hashnode.
Hashnode Remove Documentation Project Custom DomainTool to remove a custom domain from a Hashnode documentation project.
Remove Documentation Sidebar ItemTool to remove a sidebar item from a documentation guide on Hashnode.
Hashnode Remove PostTool to remove (delete) a post from Hashnode.
Hashnode Remove ReplyTool to remove a reply from a comment.
Hashnode Rename Documentation GuideTool to rename a documentation guide in a Hashnode project.
Rename Documentation Sidebar ItemTool to rename a documentation sidebar item within a Hashnode guide.
Hashnode Restore PostTool to restore a previously deleted Hashnode post.
Save Documentation Page Draft ContentTool to save draft content for a documentation page in Hashnode.
Search Posts of PublicationTool to search and retrieve posts from a specific publication based on a search query.
Subscribe to NewsletterTool to subscribe an email address to a Hashnode publication's newsletter.
Hashnode: Toggle Follow UserTool to toggle follow status for a Hashnode user.
Hashnode: Unfollow TagsUnfollow specified tags to customize your content feed on Hashnode.
Unsubscribe from NewsletterTool to unsubscribe an email address from a Hashnode publication's newsletter.
Hashnode Update CommentTool to update an existing comment on a Hashnode post.
Hashnode Update Content BlockTool to update a content block in a Hashnode documentation project.
Update Documentation AppearanceTool to update the appearance settings of a Hashnode documentation project.
Update Documentation General SettingsTool to update general settings of a Hashnode documentation project.
Update Hashnode Documentation GuideTool to update an existing documentation guide in a Hashnode project.
Hashnode: Update Documentation IntegrationsTool to update third-party integrations for a Docs by Hashnode project.
Update Documentation LinkTool to update an existing link within a Hashnode documentation guide.
Hashnode: Update Documentation Project SubdomainTool to update the subdomain of a Hashnode documentation project.
Hashnode Update Documentation SectionTool to update a section in a Hashnode documentation guide.
Hashnode Update PostTool to update an existing Hashnode post via the updatePost mutation.
Hashnode Update ReplyTool to update a reply.
Hashnode Verify Documentation Project Custom DomainTool to verify a custom domain for a Hashnode documentation project.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Hashnode tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Fetch all posts from my publication')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI 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

Frequently Asked Questions

Do I need my own developer credentials to use Hashnode with Composio?

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.

Can I use multiple toolkits together?

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

Is Composio secure?

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

What if the API changes?

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

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.