What is MCP
The Model Context Protocol is an open standard for connecting LLMs to external tools and data. Anthropic launched it. Claude Desktop, Claude Code, Cursor, Zed, and a growing list of hosts support it.
@papermark/mcp-server implements the protocol over stdio (for desktop clients) and HTTP+OAuth (for hosted agents). Each tool maps 1:1 onto a REST endpoint.
Install
For stdio hosts, no install step is needed, npx handles it:
npx -y @papermark/mcp-serverClaude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\\Claude\\claude_desktop_config.json (Windows):
{
"mcpServers": {
"papermark": {
"command": "npx",
"args": ["-y", "@papermark/mcp-server"],
"env": {
"PAPERMARK_TOKEN": "pm_live_…"
}
}
}
}Restart Claude Desktop. The Papermark tools appear in the tools tray.
Claude Code
claude mcp add papermark \
-e PAPERMARK_TOKEN=pm_live_… \
-- npx -y @papermark/mcp-serverTools
43 tools, grouped by resource. Every tool name matches a REST endpoint, so an agent that knows the API knows the tools.
Datarooms
create_dataroom
get_dataroom
list_datarooms
search_datarooms
update_dataroom
delete_dataroom
list_dataroom_documents
attach_dataroom_document
list_dataroom_folders
create_dataroom_folder
get_dataroom_folder
update_dataroom_folder
move_dataroom_folder
delete_dataroom_folder
get_dataroom_analyticsDocuments
upload_document
list_documents
search_documents
get_document
update_document
delete_document
add_document_version
list_document_versions
get_document_version
promote_document_version
get_document_analyticsFolders
create_folder
list_folders
get_folder
update_folder
move_folder
delete_folderLinks
create_link
list_links
get_link
update_link
delete_link
get_link_analytics
list_link_viewsVisitors & views
list_visitors
get_visitor
list_visitor_views
get_view_analyticsAuth & scopes
The MCP server inherits your token's scopes. An agent with a documents.read token literally cannot call delete_document. The server returns the same invalid_scope error a curl would.
For hosted agents, the server supports OAuth 2.1 authorization-code flow + PKCE.
Example agent prompts
Provision a deal room
Create a dataroom named "Acme. Series B" with a folder for "Financials".
Upload all PDFs from ~/Documents/AcmeDD into that folder.
Generate three password-protected links. One for each partner. And email the URLs
to dave@vc.com, lena@vc.com, and mark@vc.com.Daily analytics digest
Every morning, list views from the last 24 hours across all my datarooms.
Group by visitor email. Flag anyone who spent more than 5 minutes on a single document.Cleanup
Find all dataroom links that expired more than 30 days ago.
Revoke them and summarize which datarooms had inactive links.