Notion MCP Server

Notion MCP Server

A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.

Category
Visit Server

README

Notion MCP Server

A Model Context Protocol (MCP) server that connects Claude and other AI assistants to your Notion workspace. This integration allows AI assistants to interact with your Notion databases, pages, and blocks.

What is this?

This tool acts as a bridge between AI assistants (like Claude) and your Notion workspace. It allows the AI to:

  • View and search your Notion databases
  • Create and update pages
  • Manage content blocks
  • And much more!

Step-by-Step Setup Guide

Prerequisites

  • Node.js (version 14 or higher)
  • A Notion account
  • Claude Desktop app (if using with Claude)

1. Getting Your Notion API Key

  1. Go to https://www.notion.so/my-integrations
  2. Click the blue "+ New integration" button
  3. Fill in the details:
    • Name: Choose a name like "Claude Assistant" or "AI Helper"
    • Logo: Optional
    • Associated workspace: Select your Notion workspace
  4. Click "Submit"
  5. On the next page, find the "Internal Integration Token" section
  6. Click "Show" and copy the token (it starts with secret_)

2. Setting Up This Server

  1. Download this repository to your computer

    • If you have Git: git clone [repository-url]
    • Or download and extract the ZIP file
  2. Open a command prompt or terminal

    • Windows: Press Win+R, type cmd, and press Enter
    • Mac: Open Terminal from Applications > Utilities
  3. Navigate to the folder where you downloaded this repository:

    cd path/to/notion-mcp-server
    
  4. Install the required dependencies:

    npm install
    
  5. Create a configuration file:

    • Make a copy of .env.example and name it .env
    • Open the .env file in a text editor
    • Replace your_notion_api_key_here with the token you copied earlier
    • Save the file

3. Connecting to Notion Pages

For security, Notion requires you to explicitly grant access to each page or database:

  1. Open Notion and navigate to a page or database you want the AI to access
  2. Click the "•••" (three dots) in the top-right corner
  3. Select "Add connections"
  4. Find and select the integration you created earlier
  5. Repeat for any other pages or databases you want to make accessible

4. Connecting to Claude Desktop

  1. Locate your Claude Desktop configuration file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json (Type this path in File Explorer address bar)
    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json (In Finder, press Cmd+Shift+G and paste this path)
  2. Open the file in a text editor. If it doesn't exist, create it with the following content:

    {
      "mcpServers": {
        "notion": {
          "command": "node",
          "args": [
            "C:\\path\\to\\notion-mcp-server\\server.js"
          ],
          "env": {
            "NOTION_API_KEY": "your_notion_api_key_here"
          }
        }
      }
    }
    
  3. Replace:

    • C:\\path\\to\\notion-mcp-server\\server.js with the actual path to the server.js file
      • Windows: Use double backslashes (\\) in the path
      • Mac: Use forward slashes (/)
    • your_notion_api_key_here with your Notion API key
  4. Save the file and restart Claude Desktop

5. Testing the Connection

  1. Start a new conversation in Claude
  2. Ask Claude to interact with your Notion workspace, for example:
    • "Show me a list of my Notion databases"
    • "Create a new page in my Tasks database with title 'Test Task'"

Available Tools

The server provides these tools to AI assistants:

  • list-databases: View all accessible databases
  • query-database: Get entries from a database
  • create-page: Add a new page to a database
  • update-page: Modify an existing page
  • create-database: Create a new database
  • update-database: Modify a database structure
  • get-page: View a specific page
  • get-block-children: View content blocks
  • append-block-children: Add content to a page
  • update-block: Edit content blocks
  • get-block: View a specific block
  • search: Find content across your workspace

Troubleshooting

Common Issues:

  1. "Connection failed" in Claude

    • Make sure the server path in claude_desktop_config.json is correct
    • Check that your Notion API key is valid
    • Ensure Node.js is installed correctly
  2. "Access denied" when accessing Notion content

    • Make sure you've shared the page/database with your integration
    • Check that your API key has the necessary permissions
  3. Server won't start

    • Ensure all dependencies are installed (npm install)
    • Check that the .env file exists with your API key

Getting Help

If you encounter issues not covered here, please:

  • Check the console output for error messages
  • Ensure your Notion API key is valid
  • Verify that your integration has access to the pages/databases

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured