Cover image
Try Now
2025-04-14

Implémentation FastMCP du serveur de notion-MCP avec prise en charge des objets et fonctions personnalisés extensibles

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Notion Chakra MCP

This is a Notion integration service that provides MCP (Message Control Protocol) endpoints for interacting with Notion databases and pages.

Features

  • List and query Notion databases
  • Create and update pages
  • Search Notion content
  • Manage blocks and children
  • Support for both stdio and SSE transports

Setup Options

1. MCP Client Configuration (Recommended)

Add the following to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "notion-chakra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v",
        "/path/to/notion-chakra-mcp/data:/app/data",
        "-e",
        "TRANSPORT",
        "-e",
        "NOTION_API_KEY",
        "-e",
        "HOST",
        "-e",
        "PORT",
        "-e",
        "PYTHONPATH=/app/src",
        "notion-chakra-mcp"
      ],
      "env": {
        "TRANSPORT": "stdio",
        "NOTION_API_KEY": "your_notion_api_key",
        "HOST": "0.0.0.0",
        "PORT": "8050"
      }
    }
  }
}

Make sure to:

  1. Replace /path/to/notion-chakra-mcp with your actual project path
  2. Set your NOTION_API_KEY value
  3. Create a data directory in your project root: mkdir -p data

2. Docker Compose Setup

For development or standalone usage, you can use Docker Compose:

# Build and start with stdio transport
TRANSPORT=stdio docker-compose up notion-chakra-mcp

# Or with SSE transport
TRANSPORT=sse docker-compose up notion-chakra-mcp

3. Direct Docker Usage

For manual testing or custom setups:

# Build the image
docker build -t notion-chakra-mcp .

# Run with stdio transport
docker run --rm -i \
  -v $(pwd)/data:/app/data \
  -e TRANSPORT=stdio \
  -e NOTION_API_KEY=your_key \
  -e PYTHONPATH=/app/src \
  notion-chakra-mcp

# Run with SSE transport
docker run --rm -i \
  -v $(pwd)/data:/app/data \
  -e TRANSPORT=sse \
  -e NOTION_API_KEY=your_key \
  -e HOST=0.0.0.0 \
  -e PORT=8050 \
  -p 8050:8050 \
  -e PYTHONPATH=/app/src \
  notion-chakra-mcp

Configuration

Environment Variables

  • NOTION_API_KEY: Your Notion integration token (required)
  • TRANSPORT: Transport type (stdio or sse, defaults to stdio)
  • HOST: Server host for SSE transport (defaults to 0.0.0.0)
  • PORT: Server port for SSE transport (defaults to 8050)
  • PYTHONPATH: Python module path (should be /app/src)

Data Persistence

The service uses a data directory for persistent storage:

  • Mounted at /app/data inside the container
  • Stores schemas, database mappings, and other persistent data
  • Must be created before running the container: mkdir -p data

Development

Running Tests

# Install test dependencies
pip install -r requirements.txt

# Run tests
python -m pytest tests/ -v

Adding New Features

  1. Add your feature implementation in src/
  2. Add tests in tests/
  3. Update requirements.txt if needed
  4. Run tests to verify everything works

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Rag de conversation sur site avec des conteneurs configurables

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

  • evilsocket
  • Le kit de développement d'agent simple.

  • yamadashy
  • 📦 REPOMIX (anciennement Repopack) est un outil puissant qui emballe l'ensemble de votre référentiel en un seul fichier adapté à l'IA. Parfait pour quand vous devez alimenter votre base de code avec de grands modèles de langue (LLMS) ou d'autres outils d'IA comme Claude, Chatgpt, Deepseek, Perplexity, Gemini, Gemma, Llama, Grok, et plus encore.

    Reviews

    2.7 (3)
    Avatar
    user_V9Z1pc4i
    2025-04-23

    Notion-Chakra-MCP by thestumonkey is a game-changing app that seamlessly integrates Notion and Chakra UI components. Its intuitive design and powerful features streamline productivity and enhance user experience. Whether you are managing projects or organizing personal tasks, this tool is indispensable. Highly recommend for anyone looking to optimize their workflow!

    Avatar
    user_nGoxdMAC
    2025-04-23

    Notion-Chakra-MCP by thestumonkey is a game-changer for any Notion enthusiast. This tool perfectly blends the power of Notion with advanced functionalities, making task management seamless and more efficient. The intuitive design and user-friendly interface are remarkable. Highly recommended for both beginners and experienced users looking to elevate their productivity.

    Avatar
    user_7JTsfZ64
    2025-04-23

    Notion-chakra-mcp by thestumonkey is an exceptional tool that seamlessly integrates with my workflow. It's intuitive and has significantly boosted my productivity. I love how easy it is to navigate and customize to fit my needs. Highly recommend it to anyone looking to streamline their tasks efficiently.