postmd-mcp-server
Publish Markdown as a shareable web page, with document graphs
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"postmd-mcp-server": {
"command": "npx",
"args": [
"postmd-mcp-server"
]
}
}
}Runnable packages
2.6.0stdioRemote endpoints
https://postmd.turink.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (5)
🟡postmd_create_document(markdown, title, fileName, password, viewerStyle, ...)
Publish Markdown as a PostMD web page. No API key required — anyone can publish. Returns docCode and data.shareUrl; hand shareUrl to people. Documents have a 30-day retention period (data.retainedUntil) that extends on each read. Documents without a password can be updated or deleted by anyone; password-protected documents require the password or the owner's API key. With an API key the document belongs to that member; groupId files it into that group (key with documents:write).
Input Schema
{
"type": "object",
"properties": {
"markdown": {
"type": "string",
"description": "Full Markdown document as one UTF-8 string (the entire source, not a summary). May include graph data in an HTML comment, which the viewer draws; the format is at /docs/graph."
},
"title": {
"type": "string",
"description": "Shown in the viewer and link previews. Defaults to fileName without .md."
},
"fileName": {
"type": "string",
"description": "Upload filename, must end in .md. Default document.md."
},
"password": {
"type": "string",
"description": "Readers must supply this password to see the content."
},
"viewerStyle": {
"type": "string",
"description": "Viewer theme: readable (default), github, minimal, report, pamphlet or dark. Unknown values fall back to readable."
},
"groupId": {
"type": "number",
"description": "File the document in this group instead of the default group (needs an API key)."
}
},
"required": [
"markdown"
]
}🟢postmd_get_document(docCode)
Get document metadata by docCode: title, fileName, hasPassword, viewerStyle, timestamps. Public — no API key needed. Content is not included; use postmd_get_document_raw for the Markdown source.
Input Schema
{
"type": "object",
"properties": {
"docCode": {
"type": "string",
"description": "Document code, e.g. P-123-456-789."
}
},
"required": [
"docCode"
]
}🟢postmd_get_document_raw(docCode, password)
Get the stored Markdown source of a document. Public — no API key needed. Password-protected documents need `password`.
Input Schema
{
"type": "object",
"properties": {
"docCode": {
"type": "string"
},
"password": {
"type": "string",
"description": "Plain document password, if the document has one."
}
},
"required": [
"docCode"
]
}🔴postmd_update_document(docCode, markdown, title, fileName, password, ...)
Update a document. Password-protected documents require the password or the owner's API key; documents without a password can be updated by anyone. Include `markdown` to replace the stored content; any metadata field replaces that field. clearPassword removes the password. Replacing the content requires notesOnReplace.
Input Schema
{
"type": "object",
"properties": {
"docCode": {
"type": "string"
},
"markdown": {
"type": "string",
"description": "Full new Markdown body as one UTF-8 string. Omit if only metadata changes. Adding or revising a graph means sending the whole body with the graph comment in it; the format is at /docs/graph."
},
"title": {
"type": "string"
},
"fileName": {
"type": "string",
"description": "Upload filename when replacing content. Default document.md."
},
"password": {
"type": "string",
"description": "Readers must supply this password to see the content."
},
"viewerStyle": {
"type": "string",
"description": "Viewer theme: readable (default), github, minimal, report, pamphlet or dark. Unknown values fall back to readable."
},
"currentPassword": {
"type": "string",
"description": "Current password to authenticate if the document is password-protected."
},
"clearPassword": {
"type": "boolean",
"description": "true removes the password."
},
"notesOnReplace": {
"type": "string",
"enum": [
"keep",
"abort"
],
"description": "Required when replacing the content. Notes are located by the text they quote, so replacing the body moves or loses where they point: a note whose quote is gone loses its place in the body, and one whose quote now appears elsewhere points there. keep replaces anyway and leaves the notes. abort refuses when the document has notes anchored to its text, and the answer says how many."
}
},
"required": [
"docCode"
]
}🔴postmd_delete_document(docCode, password)
Delete a document. Password-protected documents require the password or the owner's API key; documents without a password can be deleted by anyone.
Input Schema
{
"type": "object",
"properties": {
"docCode": {
"type": "string"
},
"password": {
"type": "string",
"description": "Document password if the document has one and you are not authenticated as its owner."
}
},
"required": [
"docCode"
]
}Community
Evidence