drio
Open app

Notion Knowledge Base MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

Notion Knowledge Base MCP Server is a server that provides access to a Notion knowledge base through the Cline VSCode extension, allowing users to query their knowledge base directly.

To use the server, install it in Cline after cloning the repository and setting up your Dify API key. You can then ask questions about your Notion knowledge base directly in Cline.

  • Query your Notion knowledge base directly from Cline - Get detailed answers with references to Notion pages - Built with FastMCP for reliable performance - Comprehensive error handling and logging
  1. Accessing internal documentation quickly
  2. Retrieving project information from Notion
  3. Enhancing productivity by integrating Notion with VSCode

Add to your AI client

Use these steps to connect Notion Knowledge Base MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "notion-mcp-server-rickydata-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-notion-mcp-server-rickydata-indexer"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "notion-mcp-server-rickydata-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-notion-mcp-server-rickydata-indexer"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "notion-mcp-server-rickydata-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-notion-mcp-server-rickydata-indexer"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "notion-mcp-server-rickydata-indexer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-notion-mcp-server-rickydata-indexer"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "notion-mcp-server-rickydata-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-notion-mcp-server-rickydata-indexer"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "notion-mcp-server-rickydata-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-notion-mcp-server-rickydata-indexer"
      ]
    }
  }
}

FAQ

What are the prerequisites for using the server?

You need Python 3.10 or higher, the uv package manager, the Cline VSCode extension, and a Dify API key.

How do I install the server?

Clone the repository, create a .env file with your API key, and install it using fastmcp.

What should I do if the server is not connecting?

Verify your API key, ensure the server path is correct, and check that uv is installed.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1090,"uuid":"cd54a65b-8394-42ef-964e-7916596c63ab","name":"notion_mcp_server","title":"Notion Knowledge Base MCP Server","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/183191692?v=4","created_at":"2025-01-28T02:30:26.689Z","updated_at":"2025-02-23T07:20:08.039Z","status":"created","author_name":"rickydata-indexer","author_avatar_url":"https://avatars.githubusercontent.com/u/183191692?v=4","tags":"notion,knowledge-base,mcp-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/rickydata-indexer/notion_mcp_server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]