How to integrate Hashnode MCP with Codex

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Hashnode logo
Codex logo
divider

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Hashnode MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Also integrate Hashnode with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Hashnode MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

What is the Hashnode MCP server, and what's possible with it?

The Hashnode MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Hashnode account. It provides structured and secure access to your blog and developer publication data, so your agent can fetch articles, manage publication invites, reply to comments, and explore tags or user details on your behalf.

  • Fetch and analyze articles: Let your agent retrieve single articles or lists of posts from your publications, making it easy to summarize, review, or manage your content.
  • Publication invite handling: Effortlessly accept publication invitations or view all your pending invites, streamlining the process of joining new developer teams or publications.
  • Interact with comments and replies: Have your agent add replies to existing comments, enabling automated engagement and conversation management on your posts.
  • Tag discovery and trend tracking: Easily fetch popular tags so your agent can suggest relevant topics, optimize your writing focus, or help you follow industry trends.
  • User and publication insights: Retrieve detailed profile information for any user or publication, giving your agent the context needed for personalized recommendations and content actions.

Supported Tools & Triggers

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.

Conclusion

You've successfully integrated Hashnode with Codex using Composio's MCP server. Now you can interact with Hashnode directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Hashnode operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Hashnode operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities

How to build Hashnode MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Hashnode MCP?

With a standalone Hashnode MCP server, the agents and LLMs can only access a fixed set of Hashnode tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Hashnode and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Codex?

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Hashnode tools.

Can I manage the permissions and scopes for Hashnode while using Tool Router?

Yes, absolutely. You can configure which Hashnode scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Hashnode data and credentials are handled as safely as possible.

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.