Skip to main content
Glama

Notion MCP Server

by snowan

Notion MCP Server

Ein Server, der eine Verbindung zur Notion-API herstellt und Funktionen über Claudes Machine Context Protocol (MCP) bereitstellt.

Merkmale

  • Durchsuchen Sie Notion-Seiten nach Titel oder Inhalt
  • Seitendetails und Inhalte abrufen
  • Abfragen von Notion-Datenbanken
  • Erstellen Sie neue Seiten in Notion

Aufstellen

  1. Klonen Sie dieses Repository:
git clone https://github.com/yourusername/notion-mcp-server.git cd notion-mcp-server
  1. Installieren Sie Abhängigkeiten:
npm install
  1. Erstellen Sie im Stammverzeichnis eine .env Datei mit folgendem Inhalt:
NOTION_API_KEY=your_notion_api_key_here PORT=3000 # Optional: if you want to query a specific database by default NOTION_DATABASE_ID=your_notion_database_id_here
  1. Holen Sie sich Ihren Notion-API-Schlüssel:
    • Gehen Sie zu https://www.notion.so/my-integrations
    • Erstellen einer neuen Integration
    • Kopieren Sie das „Interne Integrationstoken“
    • Fügen Sie dieses Token als Ihren NOTION_API_KEY in der .env Datei hinzu
  2. Verbinden Sie Ihre Notion-Integration mit Ihrem Arbeitsbereich:
    • Gehen Sie zu einer Seite oder Datenbank in Ihrem Notion-Arbeitsbereich
    • Klicken Sie oben rechts auf das Menü „…“
    • Wählen Sie „Verbindungen hinzufügen“
    • Suchen und fügen Sie Ihre Integration hinzu

Ausführen des Servers

Starten Sie den Server im Entwicklungsmodus:

npm run dev

Oder im Produktionsmodus:

npm start

Der Server wird auf dem in Ihrer .env Datei angegebenen Port ausgeführt (Standard: 3000).

API-Endpunkte

Reguläre HTTP-Endpunkte

  • POST /api/notion/search
    • Suchen Sie in Notion nach Seiten
    • Body: { "query": "search term" }
  • POST /api/notion/page
    • Abrufen einer Seite nach ID
    • Text: { "page_id": "page-id-here" }
  • POST /api/notion/database/query
    • Abfragen einer Datenbank
    • Text: { "database_id": "database-id-here", "filter": {}, "sorts": [] }
  • POST /api/notion/page/create
    • Erstellen einer neuen Seite
    • Text: { "parent": {}, "properties": {}, "children": [] }

MCP-Integration

Der Server stellt unter /mcp/manifest.json ein MCP-Manifest bereit, das die verfügbaren Funktionen beschreibt.

Um eine MCP-Funktion aufzurufen, senden Sie eine POST-Anfrage an /api/notion/mcp/invoke mit der folgenden Struktur:

{ "function_name": "search_pages", "parameters": { "query": "search term" } }

Verfügbare MCP-Funktionen

  • search_pages – Notion-Seiten nach Titel oder Inhalt durchsuchen
  • get_page - Ruft eine Notion-Seite nach ID ab
  • query_database – Abfrage einer Notion-Datenbank
  • create_page – Erstellen Sie eine neue Seite in Notion

Lizenz

MIT

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Ein Server, der eine Verbindung zur Notion-API herstellt und Funktionen über Claudes Machine Context Protocol bereitstellt, wodurch die Suche, der Abruf, die Abfrage und die Erstellung von Notion-Seiten und -Datenbanken ermöglicht wird.

  1. Merkmale
    1. Aufstellen
      1. Ausführen des Servers
        1. API-Endpunkte
          1. Reguläre HTTP-Endpunkte
          2. MCP-Integration
        2. Verfügbare MCP-Funktionen
          1. Lizenz

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              MCP Server for the Notion API, enabling Claude to interact with Notion workspaces.
              Last updated -
              18
              1,466
              802
              TypeScript
              MIT License
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables Claude and other LLMs to interact with Notion workspaces, providing capabilities like searching, retrieving, creating and updating pages, as well as managing databases.
              Last updated -
              10
              947
              3
              TypeScript
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides a standardized interface for interacting with Notion's API, enabling users to list databases, create pages, and search across their Notion workspace.
              Last updated -
              111
              Python
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that connects Claude and other AI assistants to your Notion workspace, allowing AIs to interact with databases, pages, and blocks.
              Last updated -
              12
              1
              11
              JavaScript
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/snowan/notion-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server