Skip to content

MCP Server

The MDtoLink MCP server lets AI assistants publish and manage markdown documents on your behalf. Pick your editor below to get started in one command.

For agents that support the Agent Skills standard (Claude Code, Cursor, Codex, and more):

Terminal window
npx skills add schedawg74/skills --skill mdtolink

This teaches your agent how to use MDtoLink without requiring MCP. For direct tool access (publish, list, update, delete via function calls), also install the MCP server below.

Terminal window
claude mcp add mdtolink -e MDTOLINK_API_KEY=mdtolink_xxxxxxxxxxxx -- npx -y -p mdtolink mdtolink-mcp
Terminal window
npx -y -p mdtolink mdtolink-mcp

Open this link to install directly: Install in Cursor

Add to your config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
"mcpServers": {
"mdtolink": {
"command": "npx",
"args": ["-y", "-p", "mdtolink", "mdtolink-mcp"],
"env": {
"MDTOLINK_API_KEY": "mdtolink_xxxxxxxxxxxx"
}
}
}
}

See the AI Agents section for more editors.

Create an API key and pass it as MDTOLINK_API_KEY. If you’ve already run mdtolink login, the MCP server picks up your stored token automatically — no key needed.

ToolDescription
publishPublish markdown content to a shareable URL, or update an existing document
list_documentsList your published documents with metadata
get_documentGet a document with its full markdown content by ID
unpublishDelete a published document by ID
ParameterRequiredDescription
contentYesMarkdown content to publish
titleNoDocument title (max 200 chars)
slugNoCustom URL slug (Pro+ only)
documentIdNoExisting document ID to update
privateNoMake document private (Pro+ only)
ParameterDefaultDescription
limit20Number of documents (1-100)
offset0Number of documents to skip
ParameterRequiredDescription
idYesDocument ID
ParameterRequiredDescription
idYesDocument ID to delete
VariableDefaultDescription
MDTOLINK_API_KEYAPI key for authentication
MDTOLINK_SERVER_URLhttps://api.mdtolink.comAPI server URL
MDTOLINK_APP_URLhttps://app.mdtolink.comBase URL for document links