notion_mcp_server

notion_mcp_server

3.2

An MCP server that provides access to a Notion knowledge base through the Cline VSCode extension.

The Notion Knowledge Base MCP Server is designed to facilitate seamless access to a Notion knowledge base directly from the Cline VSCode extension. Built with FastMCP, this server ensures reliable performance and offers comprehensive error handling and logging. Users can query their Notion knowledge base and receive detailed answers with references to specific Notion pages. The server requires Python 3.10 or higher, the uv package manager, the Cline VSCode extension, and a Dify API key for accessing the Notion knowledge base. Installation involves cloning the repository, setting up the API key, and installing the server in Cline. Once installed, users can interact with the server by asking questions about their Notion knowledge base, receiving detailed responses, links to relevant pages, and page IDs for reference. The server is automatically configured during installation, but manual updates can be made in Cline's configuration file if necessary.

Features

  • 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

Usage with Different Platforms

macOS


{
  "mcpServers": {
    "notion-kb": {
      "command": "uv",
      "args": [
        "run",
        "--with", "fastmcp",
        "--with", "python-dotenv",
        "--with", "requests",
        "fastmcp",
        "run",
        "/absolute/path/to/notion_mcp_server.py"
      ],
      "env": {
        "DIFY_API_BACKEND_KEY": "your-api-key"
      }
    }
  }
}

Windows


{
  "mcpServers": {
    "notion-kb": {
      "command": "uv",
      "args": [
        "run",
        "--with", "fastmcp",
        "--with", "python-dotenv",
        "--with", "requests",
        "fastmcp",
        "run",
        "/absolute/path/to/notion_mcp_server.py"
      ],
      "env": {
        "DIFY_API_BACKEND_KEY": "your-api-key"
      }
    }
  }
}