hashnode-mcp-server
Allows managing a Hashnode blog, including creating drafts, publishing posts, listing and updating posts, and managing publications via the Hashnode GraphQL API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hashnode-mcp-serverCreate a draft about cloud security best practices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hashnode-mcp-server
MCP server for the Hashnode GraphQL API.
Create drafts, publish posts, manage your blog — all via Claude.
Tools
Tool | Description |
| Get your profile and publication IDs |
| Get publication info by host |
| List published posts |
| Get a single post by slug |
| Create a draft |
| Update an existing draft |
| List drafts in a publication |
| Publish a draft → live post |
| Publish directly (no draft step) |
| Update a published post |
| Delete a post ⚠️ |
Related MCP server: mcp-blog
Setup
1. Get your Personal Access Token
Go to hashnode.com/settings/developer and click Generate new token.
2. Install
Via npx (no install needed — recommended):
npx -y hashnode-mcp-serverVia global install:
pnpm add -g hashnode-mcp-serverBuild from source:
git clone https://github.com/kieksme/mcp-hashnode.git
cd mcp-hashnode
pnpm install && pnpm run build3. Configure your MCP client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"hashnode": {
"command": "npx",
"args": ["-y", "hashnode-mcp-server"],
"env": {
"HASHNODE_TOKEN": "your-token-here"
}
}
}
}Claude Code (CLI)
claude mcp add hashnode \
--command npx \
--args "-y hashnode-mcp-server" \
--env HASHNODE_TOKEN=your-token-hereCursor
Add to .cursor/mcp.json in your project root, or to ~/.cursor/mcp.json globally:
{
"mcpServers": {
"hashnode": {
"command": "npx",
"args": ["-y", "hashnode-mcp-server"],
"env": {
"HASHNODE_TOKEN": "your-token-here"
}
}
}
}VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"hashnode": {
"type": "stdio",
"command": "npx",
"args": ["-y", "hashnode-mcp-server"],
"env": {
"HASHNODE_TOKEN": "your-token-here"
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"hashnode": {
"command": "npx",
"args": ["-y", "hashnode-mcp-server"],
"env": {
"HASHNODE_TOKEN": "your-token-here"
}
}
}
}Usage examples
"What's my publication ID?"
→ hashnode_get_me
"Create a draft called 'Cloud Security Best Practices' with this content: ..."
→ hashnode_create_draft
"Publish the draft with ID xyz"
→ hashnode_publish_draft
"List my last 10 posts on thinkport.hashnode.dev"
→ hashnode_list_postsAuthentication
Hashnode requires Authorization: <token> (no Bearer prefix).
All mutations need the token; most read queries are public.
Rate limits
Queries: 20,000 req/min
Mutations: 500 req/min
Tags format
Tags must be objects — not plain strings:
[
{ "name": "Cloud Computing", "slug": "cloud-computing" },
{ "name": "DevOps", "slug": "devops" }
]Releases
This project uses release-please for automated releases.
Commits to
mainthat follow Conventional Commits (feat:,fix:,chore:etc.) are tracked automatically.release-please opens a Release PR that bumps the version and updates
CHANGELOG.md.Merging the Release PR creates a GitHub Release and triggers an automated npm publish.
Required secret
Add NPM_TOKEN to the repository secrets (Settings → Secrets → Actions):
Generate at npmjs.com/settings/tokens — choose Automation type.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kieksme/mcp-hashnode'
If you have feedback or need assistance with the MCP directory API, please join our Discord server