PageSpace speaks the Model Context Protocol (MCP) — an open standard for giving AI tools access to external data and actions. The companion pagespace-mcp npm package runs locally as an MCP server and lets tools like Claude Desktop, Claude Code, and Cursor read and write your PageSpace workspace.
AI tool (MCP client) → pagespace-mcp (MCP server) → PageSpace API
↓
Your workspace
Tokens authenticate as your user. Every operation runs with your permissions; drive-scoped tokens restrict access further.
mcp_ and is shown once — only a SHA3-256 hash is stored server-side.The config format follows the standard MCP mcpServers schema:
{
"mcpServers": {
"pagespace": {
"command": "npx",
"args": ["-y", "pagespace-mcp@latest"],
"env": {
"PAGESPACE_API_URL": "https://pagespace.ai",
"PAGESPACE_AUTH_TOKEN": "mcp_your_token_here"
}
}
}
}
Edit claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\\Claude\\claude_desktop_config.jsonclaude mcp add pagespace -- npx -y pagespace-mcp@latest
Then set PAGESPACE_API_URL and PAGESPACE_AUTH_TOKEN in your environment.
Settings > MCP Servers → add the mcpServers block above.
Once connected, pagespace-mcp exposes tools that wrap the PageSpace API. The exact tool list ships with the npm package and evolves independently; the pagespace-mcp README is the authoritative reference.
At a minimum the server covers:
/api/mcp/drives.read, replace, insert, delete, edit-cells). Backed by /api/mcp/documents and /api/pages./api/search and /api/search/multi-drive.TASK_LIST pages. Backed by /api/pages/[pageId]/tasks.Every tool respects the caller's permissions. If you cannot view a page in the web UI, the MCP server cannot see it either.
The same MCP token also unlocks an OpenAI-compatible API, so any tool that speaks the OpenAI Chat Completions format can talk to one of your PageSpace agents as if it were a model.
https://pagespace.ai/api/v1mcp_...)ps-agent://<pageId>, the id of the AI Chat page you want to run. Copy it from the agent's settings tab.curl https://pagespace.ai/api/v1/chat/completions \
-H "Authorization: Bearer mcp_your_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "ps-agent://<pageId>",
"stream": true,
"messages": [{ "role": "user", "content": "Summarize the latest notes in this drive." }]
}'
The agent replies with its own system prompt and tools, and runs those tools server-side under the same permissions you'd have in the app — it can search the drive, read pages, and write back, all within the token's scope. Responses are streamed, so set stream: true (non-streaming requests are rejected). Pass an optional conversation_id to continue a thread across calls, and GET /api/v1/models lists the agents a token can reach.
Token rejected: confirm it hasn't been revoked in Settings > MCP and that it starts with mcp_.
Connection refused: check PAGESPACE_API_URL is correct and reachable from the machine running the MCP server.
Permission denied: MCP inherits your user permissions. If you lost access to a drive, the token stops seeing it too.
Server fails to start: run npx -y pagespace-mcp@latest --help to confirm the package installs.
Search docs, blog posts, and more.