Scrapbox Cosense MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_DOMAINNoAPI domainscrapbox.io
COSENSE_SIDNoSession ID for Scrapbox/Cosense authentication (required for private projects)
SERVICE_LABELNoService identifiercosense (scrapbox)
COSENSE_PAGE_LIMITNoInitial page fetch limit (1-1000)100
COSENSE_SORT_METHODNoInitial page fetch order (updated/created/accessed/linked/views/title)updated
COSENSE_PROJECT_NAMEYesProject name

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
create_page
Create a new page in my-research-notes project on cosense (scrapbox) Creates a new page with the specified title and optional body text. The page will be opened in your default browser.
get_page
Get a page from my-research-notes project on cosense (scrapbox) Returns page content and its linked pages. Page content includes title and description in plain text format.
list_pages
List pages from my-research-notes project on cosense (scrapbox) with flexible sorting options. Available sorting methods: - updated: Sort by last update time - created: Sort by creation time - accessed: Sort by access time - linked: Sort by number of incoming links - views: Sort by view count - title: Sort by page title
search_pages
Search pages in my-research-notes project on cosense (scrapbox) Supports various search features: - Basic search: "keyword" - Multiple keywords: "word1 word2" (AND search) - Exclude words: "word1 -word2" - Exact phrase: "\"exact phrase\""