anyrxo/proton-docs-mcp
If you are the rightful owner of proton-docs-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
MCP server for Proton Docs enables AI assistants to create, edit, format, and manage your Proton Docs documents.
Proton Docs MCP
A Model Context Protocol (MCP) server that enables AI assistants like Claude Desktop, Cursor, and other MCP-compatible clients to interact with your Proton Docs documents through browser automation.
โจ Features
- ๐ Create documents with custom titles and content
- ๐ Read document contents directly from Proton Docs
- โ๏ธ Edit documents with append or replace functionality
- ๐ Text formatting (bold, italic, underline, strikethrough)
- ๐ List management (ordered and unordered lists)
- ๐ Link insertion and management
- ๐จ Font customization (family, size, color)
- ๐ Text alignment (left, center, right, justify)
- ๐๏ธ Delete documents (to trash or permanently)
- ๐ค Export documents (DOCX, PDF, TXT, Markdown)
- ๐ Search documents by content
- ๐ฅ Share documents with other users
- ๐ Document listing with optional search filtering
- ๐ Version history access
- ๐ Secure browser automation through Puppeteer
๐ Prerequisites
- Node.js 16 or higher
- Valid Proton account with access to Proton Docs
- Claude Desktop, Cursor, or any MCP-compatible client
๐ Quick Start
1. Install from npm (Recommended)
npm install -g proton-docs-mcp
2. Or install from source
git clone https://github.com/anyrxo/proton-docs-mcp.git
cd proton-docs-mcp
npm install
npm run build
โ๏ธ Configuration
Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"proton-docs": {
"command": "node",
"args": ["path/to/proton-docs-mcp/dist/index.js"],
"env": {
"PROTON_EMAIL": "your-email@proton.me",
"PROTON_PASSWORD": "your-password"
}
}
}
}
Cursor
Add to your Cursor settings:
{
"mcp.servers": {
"proton-docs": {
"command": "node",
"args": ["path/to/proton-docs-mcp/dist/index.js"],
"env": {
"PROTON_EMAIL": "your-email@proton.me",
"PROTON_PASSWORD": "your-password"
}
}
}
}
Environment Variables
Set your Proton credentials as environment variables:
export PROTON_EMAIL="your-email@proton.me"
export PROTON_PASSWORD="your-password"
Or create a .env
file in the project root:
PROTON_EMAIL=your-email@proton.me
PROTON_PASSWORD=your-password
๐ฏ Usage Examples
Once configured, you can ask your AI assistant:
- "Create a new document titled 'Meeting Notes' with today's agenda"
- "List all my Proton Docs documents"
- "Read the contents of my 'Project Plan' document"
- "Make the text in my document bold and add a bulleted list"
- "Export my document as a PDF"
- "Share my document with with edit permissions"
- "Search for documents containing 'quarterly report'"
- "Delete the old draft document"
๐ ๏ธ Available Tools
The MCP provides these tools:
Tool | Description | Parameters |
---|---|---|
list_documents | List all documents with optional search | searchQuery? , limit |
create_document | Create a new document | title , content? |
read_document | Read document contents | documentUrl |
edit_document | Edit document content | documentUrl , content , append? |
delete_document | Delete a document | documentUrl , permanent? |
search_documents | Search documents by content | query |
share_document | Share document with user | documentUrl , email , permission |
format_text | Apply text formatting | documentUrl , format , text? |
insert_list | Create lists in document | documentUrl , type , items |
insert_link | Add links to document | documentUrl , text , url |
change_font | Modify font properties | documentUrl , property , value |
align_text | Set text alignment | documentUrl , alignment |
export_document | Export to various formats | documentUrl , format |
get_version_history | Access document versions | documentUrl |
copy_document | Duplicate a document | documentUrl , newTitle? |
๐งช Testing
Test if the MCP is working:
# Build the project
npm run build
# Test connection
npm run dev
๐ง Troubleshooting
Authentication Issues
- Verify your Proton credentials are correct
- Check if 2FA is enabled (may require app-specific password)
- Ensure environment variables are properly set
Browser Automation Issues
- Make sure you have sufficient system resources
- Check if Proton Docs is accessible in your region
- Verify network connectivity to Proton services
Tool not showing in Claude/Cursor
- Restart your AI client after configuration
- Check the logs for any error messages
- Verify the path to the MCP server is correct
- Ensure all dependencies are installed
๐ Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run tests
npm test
๐ Security Considerations
- Credentials: Store credentials securely using environment variables
- Browser Isolation: Each session runs in a separate browser instance
- No Data Storage: No document content is cached or stored locally
- HTTPS Only: All communication with Proton services uses HTTPS
- Session Management: Automatic cleanup of browser sessions
๐ค Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
๐ License
MIT License - see file
๐ Known Issues
- Large documents may take time to process
- Complex formatting operations might require multiple steps
- Rate limiting may apply for extensive operations
- Browser automation requires graphical environment
๐ฎ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ Why Choose Proton Docs MCP?
- ๐ Privacy-First: Built for Proton's privacy-focused ecosystem
- ๐ค AI-Native: Designed specifically for AI assistant integration
- โก Comprehensive: 14+ tools covering all document management needs
- ๐ก๏ธ Secure: No data storage, browser isolation, HTTPS-only
- ๐ฆ Easy Install: npm package with global CLI support
- ๐ง Professional: Production-ready with proper error handling
- ๐ Well-Documented: Complete guides and examples included
๐ Related Projects
- proton-drive-mcp - MCP server for Proton Drive
- Model Context Protocol - Official MCP specification
๐ Stats
Made with โค๏ธ for the Proton ecosystem and AI automation community