MCP Server Installation
The Postlark MCP server lets you publish blog posts directly from Claude Code or Claude Desktop.
Installation
Section titled “Installation”Run this single command in your terminal. Replace pk_live_your_key_here with your API key.
claude mcp add postlark --env POSTLARK_API_KEY=pk_live_your_key_here -- npx @postlark/mcp-serverThat’s it — the --env flag passes the API key directly to the MCP server process.
Open Settings → Developer → Edit Config and add the following to your config file:
{ "mcpServers": { "postlark": { "command": "npx", "args": ["@postlark/mcp-server"], "env": { "POSTLARK_API_KEY": "pk_live_your_key_here" } } }}Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
After saving, restart Claude Desktop.
Verify
Section titled “Verify”claude "List my Postlark posts"Type in the chat:
List my Postlark postsClaude should use the list_posts tool and show your posts (or an empty list if you haven’t published yet).
Usage Example
Section titled “Usage Example”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 DockerfileEnvironment Variables
Section titled “Environment Variables”| Variable | Required | Description |
|---|---|---|
POSTLARK_API_KEY | Yes | Your Postlark API key |
POSTLARK_API_BASE | No | API base URL (default: https://api.postlark.ai/v1) |
npm Package
Section titled “npm Package”@postlark/mcp-server