Skip to main content
โ† Back to Articles
MCPCursor IDENotionknowledge managementdocumentationAI coding

Notion MCP Server Cursor IDE Setup 2026: Query Your Workspace from Composer

Connect Notion to Cursor IDE using MCP. Search pages, read databases, and create documentation without leaving your editor โ€” complete setup guide with troubleshooting.

By Web MCP Guideโ€ขApril 6, 2026โ€ข5 min read


Notion MCP Server Cursor IDE Setup 2026

Notion is where specs, RFCs, meeting notes, and project context live for most engineering teams. Connecting it to Cursor via MCP means your AI assistant can read your actual docs โ€” not hallucinate them. Here's the complete setup.

What This Integration Enables

With Notion MCP running in Cursor, you can:

  • Search your entire connected Notion workspace from Composer

  • Retrieve specific page content by title or ID

  • Query Notion databases with filters

  • Create new pages and append blocks to existing ones

  • Read technical specs, RFCs, and meeting notes inline with your code

  • Cross-reference your Notion project context while writing
  • Prerequisites


  • Cursor IDE 0.40+

  • Node.js 18+

  • Notion account with at least one workspace

  • Notion internal integration token โ€” created in step 1
  • Step 1: Create a Notion Integration

    1. Go to notion.so/my-integrations.
    2. Click + New integration.
    3. Name it "Cursor MCP", select your workspace, and enable: Read content, Update content, Insert content.
    4. Click Save and copy the Internal Integration Secret (starts with secret_).

    Step 2: Connect Pages to Your Integration

    Notion integrations only see pages you explicitly share with them:

    1. Open any Notion page you want accessible from Cursor.
    2. Click ยทยทยท (three dots, top right) โ†’ Add connections.
    3. Select your "Cursor MCP" integration.
    4. Repeat for parent pages, databases, or workspaces โ€” child pages are accessible automatically.

    For maximum utility, connect your top-level workspace pages (e.g., Engineering Hub, Product Docs, Meeting Notes) so everything underneath is automatically accessible.

    Step 3: Install the Notion MCP Server

    Notion has an official package:

    npm install -g @notionhq/mcp

    Or run it without a global install:

    npx @notionhq/mcp --version

    Step 4: Configure Cursor

    Edit ~/.cursor/mcp.json (macOS/Linux) or %APPDATA%\Cursor\mcp.json (Windows):

    {
    "mcpServers": {
    "notion": {
    "command": "npx",
    "args": ["-y", "@notionhq/mcp"],
    "env": {
    "NOTION_API_TOKEN": "secret_your_token_here"
    }
    }
    }
    }

    Some versions require the API version header. If tools don't appear after setup, add:

    "NOTION_VERSION": "2022-06-28"

    Step 5: Restart and Verify

    Quit Cursor fully and reopen. Check Settings โ†’ Features โ†’ MCP for the "notion" server.

    Test in Composer:

    Search Notion for "authentication architecture"

    Getting results confirms the integration is working.

    Real-World Use Cases

    Retrieving a Spec While Coding

    You're implementing a feature and need to check the original requirements:

    Find the Notion page titled "User Authentication v2 Spec" 
    and show me the API contract section

    Creating Docs from Code

    After implementing a module, generate documentation directly into Notion:

    Create a new Notion page in the "Engineering Docs" database 
    titled "Rate Limiting Implementation" and write a technical summary
    of how this middleware works: [paste code]

    Querying a Database

    List all items in the Notion "Q2 Roadmap" database 
    where Status is "In Progress" and Team is "Backend"

    Pulling Meeting Notes for Context

    Find the most recent Notion page with "backend architecture" in the title 
    from the last 2 weeks and summarize the key decisions

    Appending to an Existing Page

    Add a new section to the Notion page "Deployment Runbook" 
    with the header "Emergency Rollback Procedure" and the following steps:
    [list your steps]

    Troubleshooting

    Token not working (401 error)


  • Confirm the token starts with secret_ โ€” if it starts with ntn_, you copied an OAuth token instead.

  • Verify the integration has at least one page connected (step 2). Without connected pages, the token is valid but all queries return empty.

  • Check integration permissions in notion.so/my-integrations โ€” ensure Read content is enabled.
  • "Object not found" for specific pages


  • The page isn't connected to your integration. Go to the page โ†’ ยทยทยท โ†’ Add connections โ†’ select your integration.

  • Parent connections don't always auto-cascade. Connect the target page directly to be safe.
  • Search returns no results


  • Notion's search API only searches pages your integration has access to. If you're getting empty results, you likely haven't connected enough pages.

  • Use the Notion web UI to confirm the pages exist and are visible โ€” then add the integration connection.
  • Tools don't appear in Cursor after setup


  • Try adding "NOTION_VERSION": "2022-06-28" to your env block.

  • Delete the MCP cache (~/.cursor/mcp-cache/) and restart Cursor.

  • Check Cursor's Developer Tools โ†’ Console for MCP initialization errors.
  • Read-Only vs. Read-Write Setup

    If you only want Cursor to read Notion (safer for shared workspaces), create the integration with only Read content permissions enabled. This prevents Cursor from accidentally creating or modifying pages.

    For full read-write, enable all three content capabilities. You'll gain the ability to create pages and databases directly from Composer.

    Combining Notion with Other MCP Servers

    Notion works best as a context layer alongside action-oriented tools:

  • GitHub MCP โ€” pull a Notion spec, write the code, open a PR

  • Linear MCP โ€” retrieve Notion meeting notes, create Linear issues from action items

  • Slack MCP โ€” summarize a Notion page and post it to a Slack channel
  • Example multi-server workflow:

    1. Read the Notion page "Feature: Billing Overhaul Spec"
    2. Create a Linear issue "Implement billing overhaul" with the spec summary
    3. Create a GitHub branch "feature/billing-overhaul" in the payments repo

    All from a single Composer prompt.

    Security


  • Your Notion integration token grants access to all connected pages. Treat it like a password.

  • Don't commit ~/.cursor/mcp.json โ€” add it to .gitignore.

  • Set restricted file permissions: chmod 600 ~/.cursor/mcp.json.

  • Create a dedicated integration for Cursor with a recognizable name so you can revoke it independently from notion.so/my-integrations.
  • More MCP Integrations

    See the full MCP server directory to connect Slack, Linear, GitHub, Jira, and more to your Cursor workflow.