API & MCP Documentation
MD Share exposes a REST API and an MCP server for programmatic access to your documents and folders.
Authentication
Use a session cookie or an API key as a Bearer token: Authorization: Bearer <token>.
REST endpoints
GET /api/docs— list documentsPOST /api/docs— create documentGET /api/docs/:slug— get documentPUT /api/docs/:slug— update documentDELETE /api/docs/:slug— delete documentGET /api/folders— list foldersPOST /api/folders— create folder
MCP tools
list_documents— list your documents (optionally by folder)get_document— read a document by slugcreate_document— create a documentupdate_document— edit title/content/visibilitydelete_document— delete a documentlist_folders,create_folder,move_documents
SSE endpoint: https://mdshare.codeorch.app/api/mcp/sse. OAuth discovery: https://mdshare.codeorch.app/.well-known/oauth-authorization-server.
AI visibility
See llms.txt and llms-full.txt.