logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Notion AI Interconnect Utility

A specialized Model Context Protocol (MCP) gateway engineered to seamlessly bridge AI agents with Notion knowledge bases, enabling sophisticated retrieval, manipulation, and state tracking of workspace artifacts like projects, timelines, and item statuses via a uniform endpoint structure.

Author

Notion AI Interconnect Utility logo

ghubnerr

MIT License

Quick Info

GitHub GitHub Stars 4
NPM Weekly Downloads 9778
Tools 1
Last Updated 2026-02-19

Tags

toolstasksaibusiness toolsnotion mcpnotion workspaces

Notion Workspace Synchronization Proxy (MCP Node)

This service functions as a dedicated MCP server, offering an abstraction layer for large language models to interact programmatically with Notion environments. It standardizes read/write operations across pages, databases, and metadata.

Initial Setup Requirements

  • Runtime Environment: Node.js environment, version 16 or newer.
  • Authentication Credential: A valid Notion Integration API Key, obtainable from your Notion settings portal.
  • Workspace Access: A pre-configured Notion workspace where the integration has been granted necessary read/write permissions.

Deployment Procedure

  1. Code Retrieval:

    bash git clone https://github.com/yourusername/notion-mcp-server.git cd notion-mcp-server

  2. Dependency Resolution:

    bash npm install

  3. Configuration File Generation:

    Establish a .env file in the project root containing mandatory secrets and optional operational overrides:

    Core Security Token

    NOTION_API_KEY=your_notion_api_key_here

    Operational Overrides

    DEBUG=false REQUIRE_CONFIRMATION_FOR_CREATE=true REQUIRE_CONFIRMATION_FOR_UPDATE=true REQUIRE_CONFIRMATION_FOR_DELETE=true UPDATE_POLLING_INTERVAL=60000 MAX_BLOCK_DEPTH=3 BACKUP_DIR=./backups BACKUP_RETENTION_DAYS=30 MAX_BACKUPS_PER_PAGE=5

  4. Compilation Phase:

    bash npm run build

  5. Service Activation: bash npm start

Integration with Desktop AI Client (e.g., Claude)

To enable communication between the AI application and this proxy:

  1. Verify the desktop client software is current.
  2. Locate and edit the primary configuration JSON for the client:

    • macOS Path: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows Path: %APPDATA%\Claude\claude_desktop_config.json
  3. Incorporate the following server definition under the mcpServers block:

    { "mcpServers": { "notion_connector": { "command": "node", "args": ["/path/to/notion-mcp-server/build/index.js"], "env": { "NOTION_API_KEY": "your_notion_api_key_here" } } } }

  4. Save the configuration and relaunch the desktop AI application.

Available Endpoints (Resource Access)

The server exposes structured interfaces for data traversal:

Resource URI Functionality Summary
notion://databases Enumerates all accessible workspace databases.
notion://databases/{databaseId}/schema Fetches the structural metadata (schema) of a specified database.
notion://databases/{databaseId}/content Retrieves all constituent entries (pages/items) within a database.
notion://pages/{pageId} Fetches the full block content of a singular Notion page.
notion://updates Returns a chronologically ordered log of recent workspace modifications.

Operational Toolset

The proxy provides utility functions callable by the AI agent:

Predefined Operational Prompts

These named commands allow for complex, multi-step operations via simple invocations:

Prompt Identifier Purpose
fetch-due-items Generates a comprehensive list of temporally constrained objectives.
project-health-report Compiles a summary assessment of a named endeavor's current state.
today-agenda Retrieves the set of mandated tasks scheduled for the current calendar day.

Illustrative Agent Invocations

When interfaced with the AI, these queries translate to API calls:

  1. "What actions must I finalize today within my linked Notion space?"
  2. "Provide the progress update for initiative designated 'Project X'."
  3. "Instantiate a new record within the 'Conceptual Drafts' database titled 'Novel Design Concept'."
  4. "Mark the task identified as 'Task Y' as fully executed."
  5. "Detail all transactional changes recorded in the workspace over the preceding 24-hour period."
  6. "Generate an overview of commitments falling due in the subsequent seven days."
  7. "List all archived states associated with page ID abc123."
  8. "Rollback the state of page abc123 using the backup snapshot from 2023-01-01."

Extending Capabilities

To augment the server's utility:

  1. New Data Views: Implement new resource handlers within the main execution file (index.ts).
  2. New Actions: Define additional tool definitions within index.ts.
  3. New Templates: Register new prompt structures in index.ts.
  4. API Enhancements: Integrate new Notion SDK methods within notion-api.ts.

Diagnostic Logging

For troubleshooting, consult the following logs:

  • Client Logs: Check the diagnostic output generated by the desktop AI application for MCP communication errors.
  • Server Output: Monitor the standard output stream (stdout/stderr) of the running Node process.

See Also

`