postmd-mcp-server

Publish Markdown as a shareable web page, with document graphs

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
95%
命名品質
80%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,006Token(工具定義)
~1.6 KB典型回應大小
中等的注意力影響(128k 上下文的 0.79%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "postmd-mcp-server": {
      "command": "npx",
      "args": [
        "postmd-mcp-server"
      ]
    }
  }
}

可執行的套件

npmpostmd-mcp-server2.6.0stdio

遠端端點

https://postmd.turink.com/mcpstreamable-http

它能做什麼

工具清單

工具(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).

輸入結構描述

{
  "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.

輸入結構描述

{
  "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`.

輸入結構描述

{
  "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.

輸入結構描述

{
  "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.

輸入結構描述

{
  "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"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本5 個工具
已驗證未記錄版本5 個工具