mcp-notion
Global Notion workspace-accessible MCP server for all Notion pages within the workspace
claude mcp add --transport stdio seonglae-mcp-notion node /path/to/mcp/build/index.js \ --env ROOT_PAGE="$SOME_UUID"
How to use
This MCP server exposes a Notion-based note navigation experience. It indexes Notion pages starting from a ROOT_PAGE and exposes notes as text/markdown resources with UUID slugs, enabling you to browse, search, and retrieve related pages via MCP-compatible tools. The server provides a resource interface to list and fetch notes (note:// URIs), a search_notes tool to locate relevant Notion pages using a query string, and a set of prompts to summarize, refactor, fix, or enhance individual notes. The design focuses on graph-aware retrieval, considering parent-child and reference relationships to surface contextually relevant Notion content.
To use it, configure ROOT_PAGE with your Notion root page ID, then run the server. Client tools and prompts can query the server for markdown content and metadata, enabling workflows that read and summarize Notion pages, propose structural improvements, or generate enhancements to notes. The MCP setup makes it possible to integrate Notion pages into broader AI-assisted workflows by exposing them through standard MCP channels (resources, tools, prompts).
How to install
Prerequisites:
- Node.js and npm/yarn/pnpm installed on your system
- Git to clone the repository (if needed)
Install and build (example workflow):
-
Clone the repository: git clone https://github.com/your-org/mcp-notion.git cd mcp-notion
-
Install dependencies using pnpm (as recommended by the project): pnpm install
-
Build the project: pnpm build
-
Run in development or production mode (adjust paths as needed):
- Development with auto-rebuild: pnpm watch
- Start the server manually (after build): node /path/to/mcp/build/index.js
-
Optional: configure MCP Inspector for debugging: pnpm inspector
Environment configuration:
- Set ROOT_PAGE to the Notion root page ID you want to start from. This is required for the Notion-based navigation.
- Any additional environment variables required by the server can be added to the mcp config or environment as needed.
Additional notes
Tips and troubleshooting:
- Ensure ROOT_PAGE is the proper Notion page ID and that your Notion workspace permissions allow access.
- If you encounter issues with Notion API access, verify network connectivity and any required API keys or tokens per your Notion integration setup.
- When using Claude Desktop integration, ensure the mcpServers configuration in Claude's config points to the correct node/index.js path and that ROOT_PAGE is provided.
- The server uses SSEServerTransport for remote communication; ensure network endpoints and ports are correctly configured for remote deployment.
- If you modify prompts or add new tools, rebuild the project to pick up changes.
- For debugging, use the MCP Inspector with pnpm inspector to inspect stdio-based server communication and tool invocations.
Related MCP Servers
markdownify
A Model Context Protocol server for converting almost anything to Markdown
scira -chat
A minimalistic MCP client with a good feature set.
CanvasMCPClient
Canvas MCP Client is an open-source, self-hostable dashboard application built around an infinite, zoomable, and pannable canvas. It provides a unified interface for interacting with multiple MCP (Model Context Protocol) servers through a flexible, widget-based system.
docmole
Dig through any documentation with AI - MCP server for Claude, Cursor, and other AI assistants
better-notion
Markdown-first MCP server for Notion API - composite tools optimized for AI agents
mcp-turso
MCP server for interacting with Turso-hosted LibSQL databases