scrapbox-cosense-mcp is an MCP (Model Context Protocol) server specifically designed for the cosense/scrapbox platform. Developed by worldnine and hosted on GitHub, this project aims to provide AI applications with a standardized interface to Scrapbox knowledge bases.
Cosense is a knowledge management platform whose core philosophy is "the key to productivity lies in knowledge." It allows users to share experiences, accumulate knowledge, and easily achieve compound knowledge growth within an organization.
# Clone the project
git clone https://github.com/worldnine/scrapbox-cosense-mcp.git
cd scrapbox-cosense-mcp
# Install dependencies
npm install
# Build the server
npm run build
# Automatically rebuild during development
npm run watch
To use this server in Claude Desktop, you need to add the server settings to the configuration file:
macOS Configuration File Path:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows Configuration File Path:
%APPDATA%/Claude/claude_desktop_config.json
Configuration Example:
{
"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",
"COSENSE_SORT_METHOD": "created",
"SERVICE_LABEL": "scrapbox(cosense)"
}
}
}
}
COSENSE_SID: Scrapbox/Cosense authentication session ID.
API_DOMAIN: API domain (default: "scrapbox.io").
SERVICE_LABEL: Service identifier (default: "cosense (scrapbox)").
COSENSE_PAGE_LIMIT: Initial page retrieval limit (default: 100).
COSENSE_SORT_METHOD: Initial page retrieval order (default: "updated").
Since the MCP server communicates via stdio, debugging can be difficult. The project recommends using MCP Inspector for debugging:
npm run inspector
The Inspector will provide a URL that can be accessed in a browser to use the debugging tool.
Standardized Interface: This server facilitates interaction with cosense/Scrapbox projects, allowing users to retrieve, list, search, and create pages, while supporting various query operations and secure access to private projects.
Security: Supports access to private projects via session ID, ensuring data security.
Flexible Configuration: Provides various environment variable options to adapt to different usage scenarios.
Developer-Friendly: Offers automatic rebuilding in development mode and dedicated debugging tools.
This project is based on the Model Context Protocol architecture, allowing developers to expose data through the MCP server or build AI applications (MCP clients). The project is developed using Node.js and TypeScript, following the MCP standard protocol specifications.
scrapbox-cosense-mcp is a fully functional MCP server implementation that provides AI applications with a standardized way to interact with Scrapbox knowledge bases. It not only supports basic page operations but also offers powerful search capabilities and secure private project access, making it an ideal tool for building intelligent knowledge management systems.