0.2.1 • Published 23h agoCLI
@markexport/mcp
Licence
—
Version
0.2.1
Deps
1
Size
10 kB
Vulns
0
Weekly
0
@markexport/mcp
Export Markdown to PDF, DOCX, HTML, and more from any MCP-compatible AI agent via the MarkExport API.
Setup
Add @markexport/mcp to your MCP client configuration:
{
"mcpServers": {
"markexport": {
"command": "npx",
"args": ["-y", "@markexport/mcp"]
}
}
}
Restart your client. The export_markdown tool will be available.
Tools
export_markdown
Export a Markdown string to a downloadable file. Input:
| Field | Required | Description |
|---|---|---|
content |
yes | The Markdown content to export |
format |
yes | pdf | docx | pptx | html | xlsx | csv | json | xml | latex | ipynb | md |
theme |
no | default | executive (defaults to default) |
api_url |
no | Self-hosted base URL (defaults to https://markexport.com) |
Returns:
{
"job_id": "local-abc123",
"download_url": "https://markexport.com/api/export/local-abc123/download",
"status": "done"
}
Usage examples
Ask the agent
"Export this conversation as a PDF with the executive theme."
The agent will call export_markdown with your recent messages as content.
Via tool call
{
"tool": "export_markdown",
"arguments": {
"content": "# My Report\n\n## Section 1\n\nContent here.",
"format": "pdf",
"theme": "executive"
}
}
Troubleshooting
Export fails — Check that the MarkExport API is reachable. The service may be temporarily down.
Content too large — Maximum content size is 5MB. Split large documents.