Developer Docs
Create, manage, and publish documents programmatically. Integrate mdfy.cc with any AI tool.
npx mdfy-mcpCreate .mcp.json in your project:
{
"mcpServers": {
"mdfy": {
"command": "npx",
"args": ["mdfy-mcp"],
"env": {
"MDFY_EMAIL": "your@email.com"
}
}
}
}"Create a technical blog post about WebAssembly on mdfy.cc"
→ Document created: https://mdfy.cc/d/abc123The MCP server exposes 6 tools that any MCP-compatible AI client can call directly.
mdfy_createCreate a new document, get a shareable URL
mdfy_readFetch document content by ID
mdfy_updateUpdate existing document content
mdfy_listList all your documents
mdfy_publishToggle between Private and Shared
mdfy_deleteDelete a document
All endpoints accept and return JSON. Base URL: https://mdfy.cc
/api/docsCreate document
Request Body
{
"content": "# Hello World\nYour markdown here.",
"title": "My Document"
}Response
{
"id": "abc123",
"url": "https://mdfy.cc/d/abc123",
"editToken": "tok_..."
}/api/docs/{id}Read document
Response
{
"id": "abc123",
"title": "My Document",
"content": "# Hello World\nYour markdown here.",
"created_at": "2026-04-12T00:00:00Z",
"updated_at": "2026-04-12T00:00:00Z"
}/api/docs/{id}Update document
Request Body
{
"content": "# Updated content",
"editToken": "tok_..."
}Response
{
"id": "abc123",
"url": "https://mdfy.cc/d/abc123",
"updated_at": "2026-04-12T01:00:00Z"
}/api/docs/{id}Delete document
Request Body
{
"editToken": "tok_..."
}Response
{
"success": true
}/api/user/documentsList user's documents
Response
{
"documents": [
{
"id": "abc123",
"title": "My Document",
"created_at": "2026-04-12T00:00:00Z"
}
]
}Creating and reading documents requires no authentication. Anyone can create a document and get a shareable URL. Reading public documents is always open.
Listing, publishing, and deleting documents require email identification. Set via MDFY_EMAIL env var or x-user-email header.
Updating documents requires the editToken returned at creation time. The MCP server manages these automatically.
mdfy-mcpMCP server for mdfy.cc. Works with Claude Code, Claude Desktop, and any MCP-compatible client. Zero config — just npx mdfy-mcp and start publishing.
Create your first document programmatically in under 30 seconds.
npx mdfy-mcp