Notion

suekou
651
# MCP Server for Notion API A MCP server for Notion API, supporting Claude integration.

Overview

What is Notion

mcp-notion-server is a server designed for the Notion API, enabling integration with Notion workspaces through Claude, allowing users to interact with their Notion data seamlessly.

How to Use

To use mcp-notion-server, you need to create a Notion integration, retrieve the secret key, add the integration to your workspace, and configure Claude Desktop with the necessary environment variables and commands.

Key Features

Key features include easy integration with Notion workspaces, support for Markdown conversion, and the ability to perform various operations like reading and updating content within Notion.

Where to Use

mcp-notion-server can be used in various fields such as project management, note-taking, and collaborative workspaces where Notion is utilized for organizing information and tasks.

Use Cases

Use cases include automating task management, enhancing note-taking capabilities, and integrating Notion with other applications to streamline workflows.

Usage

Installation

Generate your exclusive SSE URL:

MCP Server Configuration (for all clients):

Installation in Cursor

Click on the Cursor settings icon in the top right, find the MCP option, then click the + button in the top right of that page and add the configuration in the config panel.

Note: Do not delete previously added configuration items

After completion, restart Cursor, chat with Cursor, and you can use MCP functions

Installation in Claude

Find this json file at the following path: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json If this file doesn't exist, create one and paste the content above into the file.

Note: Do not delete previously added configuration items.

After completion, restart Claude, and you can use MCP functions through the Claude dialog

SDK

Installation in Python

Install composio-toolset by running the following commands in your terminal:

pip install composio_openai

Python example code:

from composio_openai import ComposioToolSet, App
from openai import OpenAI

openai_client = OpenAI()
composio_toolset = ComposioToolSet(entity_id="default")

tools = composio_toolset.get_tools(apps=[App.GITHUB])

Installation in TypeScript

Install composio-core by running the following commands in your terminal:

npm install -g composio_core

TypeScript example code:

import { OpenAI } from "openai";
import { OpenAIToolSet } from "composio-core";

const openaiClient = new OpenAI();
const composioToolset = new OpenAIToolSet();

const tools = await composioToolset.getTools({
  apps: ["github"],
});

Content