Skip to main content
Glama
trilogy-group

cs-ai-notion-mcp

cs-ai-notion-mcp

A custom Model Context Protocol (MCP) server for Notion providing full CRUD (Create, Read, Update, Delete) capabilities over Notion pages, databases, and content blocks. Built using FastMCP (@modelcontextprotocol/sdk) and the official Notion JavaScript SDK (@notionhq/client).

Features

  • 🔍 search_pages: Search pages or databases in your Notion workspace.

  • 📖 get_page: Retrieve metadata and properties for a specific page.

  • 📝 create_page: Create new pages under existing pages or database entries.

  • ✏️ update_page: Update page properties or toggle archive status.

  • 🧱 get_page_blocks: Read child content blocks (paragraphs, lists, headings) from a page.

  • append_blocks: Append new content blocks to a page or block.

  • 🗑️ delete_page: Archive/delete a page from Notion.

Related MCP server: Notion MCP Server

Setup & Installation

1. Prerequisites

2. Installation

cd /Users/xavier.villarroel/GitHub/cs-ai-notion-mcp
npm install

3. Environment Configuration

Copy .env.example to .env and set your key:

cp .env.example .env

Edit .env:

NOTION_API_KEY=secret_your_actual_notion_api_token

Running the Server

Local Execution (stdio)

npm start

Testing with MCP Inspector

npx @modelcontextprotocol/inspector node index.mjs

Adding to MCP Config (e.g. Claude Desktop or Antigravity)

{
  "mcpServers": {
    "notion": {
      "command": "node",
      "args": ["/Users/xavier.villarroel/GitHub/cs-ai-notion-mcp/index.mjs"],
      "env": {
        "NOTION_API_KEY": "secret_your_actual_notion_api_token"
      }
    }
  }
}

Code Architecture

The codebase follows strict project standards with 4 clearly delineated sections in index.mjs:

  1. Import Section: Module dependencies (@modelcontextprotocol/sdk, @notionhq/client, zod, dotenv).

  2. Functions Section: Low-level Notion API operations.

  3. Handler Section: MCP tool definitions and stdio server initialization.

  4. Comments Section: Exhaustive documentation for LLM code comprehension and testing.

License

MIT

Install Server
F
license - not found
C
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.

  • Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.

  • Streamline your Attio workflows using natural language to search, create, update, and organize com…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/trilogy-group/cs-ai-notion-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server