Research Notion MCP server

Integrates with Notion to enable AI-powered survey creation, data retrieval, and analysis for research projects.
Back to servers
Setup instructions
Provider
Hikari YANAGAWA
Release date
Feb 08, 2025
Language
Python
Stats
1 star

This MCP server allows you to connect Claude to Notion for survey data creation and retrieval. It enables automated data collection and management through the Model Context Protocol while maintaining structured records in your Notion workspace.

Prerequisites

Before you begin, ensure you have the following installed:

  • Python 3.12.1 or later
  • uv 0.5.25 or later
  • Claude Desktop Client

Installation

Step 1: Clone the Repository

Start by cloning the repository to your local machine:

git clone [repository-url]
cd research-mcp-server

Step 2: Set Up Notion Integration

  1. Obtain a Notion token by creating an integration at Notion Integrations
  2. Create a database page in Notion to store your survey data
  3. Note the database ID from the URL of your database page (it's the last part of the URL)

Step 3: Configure Environment Variables

Create a .env file in the root directory of the project with the following content:

NOTION_TOKEN=[YOUR_NOTION_TOKEN]
NOTION_ROOT_DATABASE_ID=[YOUR_NOTION_DATABASE_ID]

Replace the placeholder values with your actual Notion token and database ID.

Configuration

Setting Up Claude Desktop Client

Add the MCP server definition to your Claude Desktop Client configuration:

  1. Open the claude_desktop.json configuration file
  2. Add the following to the mcpServers section:
{
  "mcpServers": {
    "Research MCP Server": {
      "command": "uv",
      "args": [
        "run",
        "--with", "mcp[cli]",
        "--with", "notion-client",
        "--with", "pydantic",
        "mcp",
        "run",
        "/path/to/research-mcp-server/server.py"
      ]
    }
  }
}

Make sure to replace /path/to/research-mcp-server/ with the actual path to where you cloned the repository.

Launching the Server

After completing the configuration:

  1. Restart the Claude Desktop Client
  2. The Research MCP Server should automatically launch when Claude starts

Usage

Once the server is running, you can interact with it through Claude:

Conducting Surveys

Simply ask Claude to perform a survey. For example:

  • "Could you create a survey about user experience?"
  • "Please collect feedback about our new feature"

Reviewing Results

To view survey results, you can:

  1. Ask Claude to review and summarize the results
  2. Directly access your Notion database to see the raw data

The survey data will be stored in the Notion database you configured, allowing you to analyze and export it as needed.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "Research-MCP-Server" '{"command":"uv","args":["run","--with","mcp[cli]","--with","notion-client","--with","pydantic","mcp","run","/path/to/research-mcp-server/server.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "Research MCP Server": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "mcp[cli]",
                "--with",
                "notion-client",
                "--with",
                "pydantic",
                "mcp",
                "run",
                "/path/to/research-mcp-server/server.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

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

2. Add this to your configuration file:

{
    "mcpServers": {
        "Research MCP Server": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "mcp[cli]",
                "--with",
                "notion-client",
                "--with",
                "pydantic",
                "mcp",
                "run",
                "/path/to/research-mcp-server/server.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later