Postmd MCP Server
概览
作者提供的说明(英文原文)
Publish Markdown as a shareable web page, with document graphs
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 3 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 65/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 文档、表格与办公
- 你需要填写:POSTMD_API_KEY
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 3 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 可以做 5 件事(工具) postmd_create_document, postmd_get_document, postmd_get_document_raw, postmd_update_document …
- 需要你自己填写:
POSTMD_BASE_URL,POSTMD_API_KEY,POSTMD_DEBUG
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
- 打开 Settings → Connectors
- 点击 Add custom connector
- 粘贴下面的地址,然后点击 Add
- 如果要求登录,请登录作者的服务
https://postmd.turink.com/mcp或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"postmd": {
"command": "npx",
"args": [
"-y",
"postmd-mcp-server"
],
"env": {
"POSTMD_BASE_URL": "your-value",
"POSTMD_API_KEY": "your-value",
"POSTMD_DEBUG": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http postmd https://postmd.turink.com/mcp或者在你的电脑上运行
claude mcp add postmd --env POSTMD_BASE_URL=your-value --env POSTMD_API_KEY=your-value --env POSTMD_DEBUG=your-value -- npx -y postmd-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"postmd": {
"url": "https://postmd.turink.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"postmd": {
"command": "npx",
"args": [
"-y",
"postmd-mcp-server"
],
"env": {
"POSTMD_BASE_URL": "your-value",
"POSTMD_API_KEY": "your-value",
"POSTMD_DEBUG": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"postmd": {
"type": "http",
"url": "https://postmd.turink.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"postmd": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"postmd-mcp-server"
],
"env": {
"POSTMD_BASE_URL": "your-value",
"POSTMD_API_KEY": "your-value",
"POSTMD_DEBUG": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
- 打开网页版 ChatGPT → Settings → Connectors (Apps)
- 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
- 粘贴下面的地址,起个名字,然后保存
- 如果要求登录,请登录作者的服务
https://postmd.turink.com/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
POSTMD_BASE_URLenvWhere PostMD runs. Defaults to https://postmd.turink.com; set it only for a self-hosted instance.- Needed only for managing documents and groups. Publishing and reading work without it.
POSTMD_DEBUGenvSet to 1 for verbose diagnostics on stderr.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
工具名称和描述与服务器在 2026年11月8日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
postmd_create_documentPublish 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 del
postmd_get_documentGet 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.
postmd_get_document_rawGet the stored Markdown source of a document. Public — no API key needed. Password-protected documents need `password`.
postmd_update_documentUpdate 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. Replac
postmd_delete_documentDelete a document. Password-protected documents require the password or the owner's API key; documents without a password can be deleted by anyone.
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 reinlainer 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 1343 毫秒内响应(HTTP 200)
- – 不适用
使用 OAuth 登录
无需登录
- ✓ 通过
工具描述中没有隐藏指令
已读取 5 个工具描述,未发现针对 AI 的隐藏指令
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3601 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3601 个服务器的 46% 更新
- 基础检查结果等于或优于此分类中其他 3601 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Postmd MCP Server 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:POSTMD_API_KEY
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(2.6.1)于36天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
PostMD MCP Server
Model Context Protocol server for [PostMD](https://postmd.turink.com) — publish a Markdown document, get a web page you share by link, and add a document graph that the viewer draws: the reading order, the bodies and rules a document names, a procedure spread over its chapters. Optional groups, document passwords and viewer themes. This server wraps PostMD's public API (/api/v1) so assistants can publish, read, update and organize documents.
Publishing needs no account and no key. With zero configuration this server can already turn Markdown into a shareable page, and the hosted server at https://postmd.turink.com/mcp needs no install either. An API key adds management: organizing documents in groups, and notes.
30-day retention. Documents have a 30-day retention period (data.retainedUntil) that extends by 30 days whenever the document is read (at most once per day). Documents without a password can be updated or deleted by anyone; password-protected documents require the password or the owner's API key.
Where things are written down: /llms.txt lists what the service can do and which page answers each thing; it is the place to start. /docs/api is the HTTP reference and /api-docs the machine-readable spec.
Hosted or local
| Hosted | Local | |
|---|---|---|
| Address | https://postmd.turink.com/mcp | npx -y postmd-mcp-server |
| Needs | nothing | Node.js 20 or later |
| Tools | 5 | all 20 |
| API key | not accepted | optional, for member-scoped tools |
| Clients | any, including web-only ones such as ChatGPT and claude.ai | any that can run a local process |
The hosted server has no way to receive an API key, so it carries only the tools that need none. Groups, notes and the tools that read a file from your disk are local-only.
Configuration
Local only — the hosted server reads none of these. All are optional.
| Variable | Description |
|---|---|
POSTMD_BASE_URL | Defaults to https://postmd.turink.com. Set for a self-hosted / local instance. Origin only, no trailing slash. |
POSTMD_API_KEY | pmk_… for the tools marked with a scope below. Sign in at postmd.turink.com, open Account → API keys, pick the scopes you need — read and write are independent, and a 403 usually means a missing scope. |
POSTMD_DEBUG | 1 / true / yes → extra stderr logging. |
Load order: this repo's .env (if present) is applied via dotenv without overwriting variables already set by the host (e.g. MCP env). Do not commit .env or keys.
Tools
Every tool below works on the local server. The hosted server carries five of them: postmd_create_document, postmd_get_document, postmd_get_document_raw, postmd_update_document, and postmd_delete_document.
Publishing and reading — no key needed:
| Tool | Purpose |
|---|---|
postmd_create_document | Publish Markdown, get docCode + share URL |
postmd_create_document_from_file | Same, but this server reads a local filePath (large files) |
postmd_get_document | Metadata by docCode |
postmd_get_document_raw | Stored Markdown body (optional password) |
Managing documents — key with documents:write (or password / no credential for unowned documents without password):
| Tool | Purpose |
|---|---|
postmd_update_document | Replace content and/or metadata; can clear password |
postmd_update_document_from_file | Same, body read from a local filePath |
postmd_delete_document | Delete a document (no undo) |
postmd_create_documents_from_files | Bulk-publish several .md files in one call |
postmd_move_document_to_group | Move a document into a group |
Graphs
A PostMD document can carry graph data that the viewer draws, showing how the parts of the document relate. No tool here creates or edits a graph, because there is no endpoint for one: the data sits in the Markdown as an HTML comment and travels with the body.
Adding a graph to an existing document therefore means reading it with postmd_get_document_raw, inserting the comment, and sending the whole body back with postmd_update_document. Publishing a new document with a graph is an ordinary postmd_create_document call.
The format is at https://postmd.turink.com/docs/graph. Working out what the nodes are and how they connect requires reading the document, which is the calling agent's part; PostMD only draws what it finds.
Keeping the code in the file
A Markdown file can carry the code of the document it was published as, in an HTML comment at its top marked postmd:document. A later session that opens the file can then tell which document to update without being given the address. The format is at https://postmd.turink.com/docs/api, "Keeping the code in the file". No tool here writes the comment; the calling agent edits its own file.
Replacing content on a document that has notes
Notes are located by the text they quote, not by a stored position. Replacing a document's body therefore 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 instead. The note itself, including the quoted text, is kept either way.
Both update tools require notesOnReplace whenever new content is sent.
| Value | Effect |
|---|---|
keep | Replaces the content and leaves the notes as they are |
abort | Refuses when the document has notes anchored to its text, and says how many |
Metadata-only updates do not take it.
Notes and highlights — key with documents:read / documents:write. A note is text anchored to a quoted passage; a highlight is the same object carrying only a colour. Visibility comes from ownership: on the key member's own document a note is PRIVATE or SHARED, and on anyone else's document it is always SHARED. Documents nobody owns — anonymous uploads and service-owned pages — take no notes:
| Tool | Purpose |
|---|---|
postmd_list_notes | Notes on a document: yours + every SHARED one |
postmd_add_note | Attach a note, or a colour-only highlight to a quoted passage |
postmd_update_note | Edit a note you wrote |
postmd_resolve_note | Mark a SHARED discussion settled, or reopen it |
postmd_delete_note | Delete yours, or a SHARED note on your document |
postmd_list_my_notes | Your notes across every document |
Groups — key with groups:read / groups:write:
| Tool | Purpose |
|---|---|
postmd_list_groups | Groups visible to the key (paged) |
postmd_list_group_documents | Documents in a group (paged, searchable, sortable) |
postmd_create_group | New group |
postmd_update_group | Rename group |
postmd_delete_group | Delete a group (documents survive) |
For uploads: either pass the full Markdown as the markdown argument, or pass a local filePath only so this server reads the file. The path must exist on the machine running the MCP server.
Client configuration
Hosted
Claude Code:
claude mcp add --transport http postmd https://postmd.turink.com/mcp
Clients that take a JSON config:
{
"mcpServers": { "PostMD": { "type": "http", "url": "https://postmd.turink.com/mcp" } } }
In ChatGPT, add it under Settings → Apps; in claude.ai, under Settings → Connectors. There is nothing to authorize.
Local
There is nothing to install: npx fetches the package and the client spawns it.
Claude Code:
claude mcp add postmd -- npx -y postmd-mcp-server
Cursor (~/.cursor/mcp.json) and most other stdio clients:
{
"mcpServers": { "PostMD": { "type": "stdio", "command": "npx", "args": ["-y", "postmd-mcp-server"], "env": { "POSTMD_API_KEY": "pmk_…" } } } }
To run a checkout instead — changing the code, or debugging against a local PostMD — point the client at the file.
git clone https://github.com/reinlainer/postmd-mcp-server.git
cd postmd-mcp-server && npm ci claude mcp add postmd-dev -- node "$PWD/src/index.js"
Leave env out entirely for publish/read-only use. cp .env.example .env works too — the server loads its own .env.
Running npx -y postmd-mcp-server by hand only checks that it starts. It speaks MCP over stdin and stdout, so it will sit there waiting for a client.
Smoke test
Runs the full write path against a live server and cleans up after itself. Needs a key with all four scopes.
export POSTMD_API_KEY=pmk_…
npm run smoke
Creates a group and a passworded document, reads it back, updates it, clears the password, then deletes both. It also publishes one document with no credential and removes it without a token.
Stack
@modelcontextprotocol/sdk 1.30.0, dotenv. License: MIT.