
Scrapbox Cosense
STDIOScrapbox/Cosense integration MCP server for knowledge management and page operations
Scrapbox/Cosense integration MCP server for knowledge management and page operations
MCP server for cosense/scrapbox.
get_page
list_pages
search_pages
create_pages
Install dependencies:
npm install
Build the server:
npm run build
Auto-rebuild during development:
npm run watch
git clone https://github.com/worldnine/scrapbox-cosense-mcp.git cd scrapbox-cosense-mcp npm install npm run build
To use with Claude Desktop, add the server configuration as follows:
For MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
For Windows: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "scrapbox-cosense-mcp": { "command": "npx", "args": ["github:worldnine/scrapbox-cosense-mcp"], "env": { "COSENSE_PROJECT_NAME": "your_project_name", "COSENSE_SID": "your_sid", // Required for private projects "COSENSE_PAGE_LIMIT": "25", // Optional (default: 100) "COSENSE_SORT_METHOD": "created", // Optional (default: "updated") "SERVICE_LABEL": "scrapbox(cosense)" // Optional (default: "cosense(scrapbox)") } } } }
This server uses the following environment variables:
COSENSE_PROJECT_NAME
: Project nameCOSENSE_SID
: Session ID for Scrapbox/Cosense authentication (required for private projects)API_DOMAIN
: API domain (default: "scrapbox.io")SERVICE_LABEL
: Service identifier (default: "cosense (scrapbox)")COSENSE_PAGE_LIMIT
: Initial page fetch limit (1-1000, default: 100)COSENSE_SORT_METHOD
: Initial page fetch order (updated/created/accessed/linked/views/title, default: updated)Since MCP servers communicate via stdio, debugging can be challenging. Using MCP Inspector is recommended. You can run it with:
npm run inspector
The Inspector provides a URL to access debugging tools in the browser.
cosense/scrapbox 用のMCPサーバーです。
get_page
list_pages
search_pages
create_pages
依存関係のインストール:
npm install
サーバーのビルド:
npm run build
開発時の自動リビルド:
npm run watch
git clone https://github.com/worldnine/scrapbox-cosense-mcp.git cd scrapbox-cosense-mcp npm install npm run build
Claude Desktopで使用するには、以下のようにサーバー設定を追加してください:
MacOSの場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windowsの場合: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "scrapbox-cosense-mcp": { "command": "npx", "args": ["github:worldnine/scrapbox-cosense-mcp"], "env": { "COSENSE_PROJECT_NAME": "your_project_name", "COSENSE_SID": "your_sid", // プライベートプロジェクトの場合は必須 "COSENSE_PAGE_LIMIT": "25", // オプション(デフォルト: 100) "COSENSE_SORT_METHOD": "created", // オプション(デフォルト: "updated") "SERVICE_LABEL": "scrapbox(cosense)" // オプション(デフォルト: "cosense(scrapbox)") } } } }
このサーバーは以下の環境変数を使用します:
COSENSE_PROJECT_NAME
: プロジェクト名COSENSE_SID
: Scrapbox/Cosenseの認証用セッションID(プライベートプロジェクトの場合は必須)API_DOMAIN
: APIドメイン(デフォルト: "scrapbox.io")SERVICE_LABEL
: サービスの識別名(デフォルト: "cosense (scrapbox)")COSENSE_PAGE_LIMIT
: 初期取得時のページ数(1-1000、デフォルト: 100)COSENSE_SORT_METHOD
: 初期取得時の取得ページ順(updated/created/accessed/linked/views/title、デフォルト: updated)MCPサーバーはstdioを介して通信を行うため、デバッグが難しい場合があります。MCP Inspectorの使用を推奨します。以下のコマンドで実行できます:
npm run inspector
InspectorはブラウザでデバッグツールにアクセスするためのURLを提供します。