MCP cover image
See in Github
2025-01-09

1

Github Watches

1

Github Forks

0

Github Stars

Notion Knowledge Base MCP Server

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

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

Prerequisites

  • Python 3.10 or higher
  • uv package manager
  • Cline VSCode extension
  • A Dify API key for accessing the Notion knowledge base

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/notion-mcp-server.git
    cd notion-mcp-server
    
  2. Create a .env file with your Dify API key:

    echo "DIFY_API_BACKEND_KEY=your-api-key-here" > .env
    
  3. Install the server in Cline:

    fastmcp install notion_mcp_server.py
    

    This will automatically:

    • Install all required dependencies using uv
    • Configure the server in Cline's settings
    • Make the server available to use with Cline

Usage

Once installed, you can use the server in Cline by asking questions about your Notion knowledge base. For example:

Tell me about internal tooling

The server will respond with relevant information from your Notion knowledge base, including:

  • Detailed answers
  • Links to relevant Notion pages
  • Page IDs for reference

Configuration

The server is configured automatically during installation, but you can manually update the settings in Cline's configuration file if needed:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Example configuration:

{
  "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"
      }
    }
  }
}

Development

For development and testing:

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Run the development server:

    fastmcp dev notion_mcp_server.py
    

This will start the MCP Inspector interface for testing the server.

Troubleshooting

  1. Server not connecting

    • Verify your API key in the .env file
    • Ensure the server path in Cline's config is absolute
    • Check that uv is installed and in your PATH
  2. Dependencies issues

    • Try reinstalling with fastmcp install notion_mcp_server.py --force
    • Verify uv is installed correctly
  3. Server hangs

    • Ensure you're using the uv run command as specified in the config
    • Check the server logs for errors

Contributing

See mcp_instructions.md for detailed information about the server's implementation and architecture.

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://jgadvisorycpa.com
  • This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    4 (1)
    Avatar
    user_lGNbPTyg
    2025-04-15

    The Twitter Client MCP by mzkrasner is an outstanding tool for managing my Twitter experience. Its intuitive interface and seamless performance make tweeting, following trends, and engaging with followers incredibly easy. The reliability and speed of the updates are impressive. Highly recommended for anyone looking to enhance their Twitter usage. Check it out here: https://mcp.so/server/twitter-client-mcp/mzkrasner