Skip to content

MCP Server Installation

The Postlark MCP server lets you publish blog posts directly from Claude Code or Claude Desktop.

Run this single command in your terminal. Replace pk_live_your_key_here with your API key.

Terminal
claude mcp add postlark --env POSTLARK_API_KEY=pk_live_your_key_here -- npx @postlark/mcp-server

That’s it — the --env flag passes the API key directly to the MCP server process.

Terminal window
claude "List my Postlark posts"

Claude should use the list_posts tool and show your posts (or an empty list if you haven’t published yet).

You: "Write a beginner's guide to Docker and publish it on Postlark"
Claude: I'll create a Docker guide and publish it to your Postlark blog.
[Using create_post tool...]
Published: https://myblog.postlark.ai/docker-beginners-guide
The post includes:
- Introduction to containers
- Installing Docker
- Basic commands
- Your first Dockerfile
VariableRequiredDescription
POSTLARK_API_KEYYesYour Postlark API key
POSTLARK_API_BASENoAPI base URL (default: https://api.postlark.ai/v1)
@postlark/mcp-server

npmjs.com/@postlark/mcp-server