Interact with the Papernote cloud-based note management system
Papernote MCP Server
日本語のREADMEは、英語のREADMEの後に記載されています。
Overview
Papernote MCP Server is a Model Context Protocol (MCP) server that enables Claude.ai Web to interact with Papernote, a cloud-based note management system. This server provides tools for creating, reading, updating, and managing notes through natural language commands in Claude.ai.
Features
- Create Notes: Create new notes with automatic timestamp-based filenames
- Read Notes: Retrieve note content by filename
- Append Content: Add content to the top or bottom of existing notes
- Replace Text: Search and replace text within notes
- Full Update: Completely overwrite note content
- OAuth Authentication: Secure access control with Client ID/Secret
Installation
- Clone the repository:
git clone https://github.com/daishir0/paper_mcp - Change to the project directory:
cd paper_mcp - Install the required packages:
pip install -r requirements.txt - Copy
config.yaml.exampletoconfig.yamland configure:cp config.yaml.example config.yaml - Edit
config.yamlwith your settings:server.port: Server port (default: 8000)papernote.api_url: Your Papernote API endpointpapernote.api_key: Your Papernote API keyoauth.client_id: OAuth Client ID for MCP authenticationoauth.client_secret: OAuth Client Secret for MCP authentication
Usage
Starting the Server
python main.py
The server will start on http://127.0.0.1:8000 with SSE transport (port configurable in config.yaml).
Production Deployment (systemd)
Create a systemd service file at /etc/systemd/system/papermcp.service:
[Unit]
Description=Papernote MCP Server for Claude.ai
After=network.target
[Service]
User=your-user
WorkingDirectory=/path/to/paper_mcp
ExecStart=/bin/bash -c 'source /path/to/python/env && python main.py'
Type=simple
Restart=on-failure
[Install]
WantedBy=multi-user.target
Enable and start:
sudo systemctl daemon-reload
sudo systemctl enable papermcp
sudo systemctl start papermcp
Connecting to Claude.ai
- Go to Claude.ai Settings > Integrations
- Click Add custom connector
- Enter the following:
- URL:
https://your-domain.com/sse - Client ID: Your
oauth.client_idfrom config.yaml - Client Secret: Your
oauth.client_secretfrom config.yaml
- URL:
Available MCP Tools
Note Management Tools
| Tool | Description | Parameters |
|---|---|---|
create_note |
Create a new note | content: str |
get_note |
Get note by filename | filename: str |
append_top |
Add content after header | filename, content |
append_bottom |
Add content at end | filename, content |
replace_text |
Search and replace | filename, search, replace |
update_full |
Overwrite entire note | filename, content |
search_notes |
Search notes by content | query, search_type |
list_notes |
List all notes | category, limit |
list_categories |
List all categories | - |
delete_note |
Delete a note (backup auto-created) | filename |
Paper Management Tools (for Research)
| Tool | Description | Parameters |
|---|---|---|
search_papers |
Search papers by title/memo/summary | query |
list_papers |
List all papers | category, limit |
get_paper |
Get paper details with memo/summary | pdf_id |
get_paper_summary |
Get paper summary only | pdf_id |
Example Commands in Claude.ai
Once connected, you can use natural language:
Note Operations
- "Create a new note about today's meeting"
- "Show me the content of [_]20250121-123456.txt"
- "Append 'Task completed' to the bottom of my note"
- "Replace 'draft' with 'final' in the document"
- "Search for notes about 'meeting'"
- "List all my notes"
- "Show me all categories"
Paper Operations (Research)
- "Search for papers about 'machine learning'"
- "List all my papers"
- "Show me the details of this paper"
- "What's the summary of paper X?"
- "Compare papers A and B"
Notes
- Ensure
config.yamlis properly configured before starting - The server requires a running Papernote API backend
- Use HTTPS in production with a reverse proxy (Apache/Nginx)
- OAuth credentials protect access to the MCP server
License
This project is licensed under the MIT License - see the LICENSE file for details.
Papernote MCP Server
概要
Papernote MCP Serverは、Claude.ai WebがPapernote(クラウドベースのノート管理システム)と連携するためのModel Context Protocol(MCP)サーバーです。Claude.aiで自然言語のコマンドを使用して、ノートの作成、読み取り、更新、管理を行うためのツールを提供します。
機能
- ノート作成: タイムスタンプベースのファイル名で新規ノートを自動作成
- ノート読み取り: ファイル名でノートの内容を取得
- コンテンツ追加: 既存ノートの上部または下部にコンテンツを追加
- テキスト置換: ノート内のテキストを検索して置換
- 全体更新: ノートの内容を完全に上書き
- OAuth認証: Client ID/Secretによる安全なアクセス制御
インストール方法
- リポジトリをクローン:
git clone https://github.com/daishir0/paper_mcp - プロジェ
Tools (14)
create_noteCreate a new note with automatic timestamp-based filenamesget_noteRetrieve note content by filenameappend_topAdd content after the header of an existing noteappend_bottomAdd content at the end of an existing notereplace_textSearch and replace text within notesupdate_fullCompletely overwrite note contentsearch_notesSearch notes by contentlist_notesList all notes with optional category and limit filterslist_categoriesList all available note categoriesdelete_noteDelete a note (backup auto-created)search_papersSearch papers by title, memo, or summarylist_papersList all papers with optional category and limit filtersget_paperGet paper details including memo and summaryget_paper_summaryGet paper summary onlyEnvironment Variables
papernote.api_urlrequiredYour Papernote API endpointpapernote.api_keyrequiredYour Papernote API keyoauth.client_idrequiredOAuth Client ID for MCP authenticationoauth.client_secretrequiredOAuth Client Secret for MCP authenticationConfiguration
{
"mcpServers": {
"papernote": {
"command": "python",
"args": ["/path/to/paper_mcp/main.py"],
"env": {
"PAPERNOTE_API_URL": "your_api_url",
"PAPERNOTE_API_KEY": "your_api_key"
}
}
}
}