Notion MCP Server (self Hosted) logo

Notion MCP Server (self Hosted)

Self-hosted MCP access to Notion for keyword search, page editing, and data-source operations through a local API integration.

Install Notion MCP Server (self Hosted)

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "notion-mcp-server-self-hosted": {
      "command": "npx",
      "args": [
        "-y",
        "@notionhq/notion-mcp-server"
      ],
      "env": {
        "NOTION_TOKEN": "YOUR_VALUE_HERE",
        "OPENAPI_MCP_HEADERS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Notion MCP Server (self-hosted) connects an MCP-compatible client to the Notion API through a locally run npm package. It lets agents search workspace content, read and edit pages, and work with databases through the newer data-source tools, including filtering and sorting. Page content can also be retrieved or updated as enhanced Markdown. Reach for it when local execution and manual integration permissions fit your workflow; Notion recommends its hosted MCP server for active support and newer capabilities.

Use cases

  • Search a Notion workspace by keyword from an AI client
  • Read and revise Notion pages through Markdown
  • Query data sources with filters and sorts
  • Create or update Notion data sources
  • Move pages between parent locations

Key features

  • Local stdio execution with npx
  • Keyword search across Notion content
  • Page retrieval and editing
  • Markdown page read and update tools
  • Data-source queries, schemas, and mutations
  • Configurable Notion API headers

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned just now via OSV.dev · @notionhq/notion-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4.7kStargazers on the source repository.
npm downloads977kPackage downloads in the last 30 days.
Last commit12d agoMost recent push to the default branch.

How Notion MCP Server (self Hosted) works

What Notion MCP Server (self-hosted) does

Notion MCP Server (self-hosted) exposes Notion API operations to AI clients through the Model Context Protocol. It runs locally and uses a Notion internal integration token to access pages and databases that have been explicitly connected to that integration.

The server supports workspace keyword search, page retrieval and editing, database metadata access, and database operations through Notion's data-source model. Its tool set includes 22 tools in the 2.0 generation, with data sources replacing the older database query, update, and creation tools.

How it works

An MCP client starts the package with npx -y @notionhq/notion-mcp-server. The server sends requests to the Notion API using either NOTION_TOKEN or the more configurable OPENAPI_MCP_HEADERS variable. MCP tools are discovered when the server starts, so clients receive the available tool names and parameters automatically.

Notion access is controlled in two places: the integration's capabilities and the pages or databases connected to it. A read-only integration can be created by granting only content-reading access. Page and database sharing therefore needs to be configured manually in Notion rather than being inherited automatically from each user's account.

Setup and configuration

Create or select an internal integration from Notion's integrations settings, then copy its token. Grant the integration access to the pages and databases the agent should use. Add the server to an MCP client configuration with a local command such as:

config.json
{
  "command": "npx",
  "args": ["-y", "@notionhq/notion-mcp-server"],
  "env": {
    "NOTION_TOKEN": "ntn_****"
  }
}

OPENAPI_MCP_HEADERS can supply an authorization header and an explicit Notion API version for advanced configurations.

Tools and capabilities

  • Search Notion content by keyword, with page and data-source filters.
  • Retrieve, create, update, and move pages.
  • Read page content as enhanced Markdown with retrieve-page-markdown.
  • Replace a page's Markdown content or apply targeted find-and-replace edits with update-page-markdown.
  • Retrieve database metadata and data-source schemas.
  • Query, create, and update data sources, including filters and sorts.
  • List templates available in a data source.

The Markdown endpoints support optional meeting-note transcript inclusion. Markdown operations use Notion API version 2026-03-11; other API operations use 2025-09-03 by default. A value supplied through OPENAPI_MCP_HEADERS takes precedence for every tool.

Limitations and notes

This local implementation is no longer actively maintained or supported, and its issues and pull requests are not actively monitored. Notion recommends its hosted Remote Notion MCP instead.

Search is keyword-based rather than semantic, and connected-app search is unavailable. The local server requires manual token handling, page sharing, and JSON configuration. Its Markdown support is limited to the two page-content tools, while responses are described as less token-efficient than the hosted alternative.

Version 2.0 replaces database_id-based query, update, and creation tools with data-source equivalents using data_source_id. Clients discover tools automatically, but prompts or code that hardcode the former tool names need to be updated.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Notion MCP Server (self Hosted)

Notion MCP Server (self-hosted) is an MCP server that connects AI clients to the Notion API through a local process and integration token. Its main tools search workspace content, read and edit pages, retrieve database and data-source metadata, query data sources, and create or update Notion content.

Install it by configuring your MCP client to run `npx -y @notionhq/notion-mcp-server`. Create an internal Notion integration, set `NOTION_TOKEN` in the client environment, and connect the pages and databases the integration should access.

Yes, it works with Cursor through a `.cursor/mcp.json` configuration. Add the local `npx` command and provide either `NOTION_TOKEN` or `OPENAPI_MCP_HEADERS`, then grant the integration access to the relevant Notion content.

Configure read-only access by giving the Notion internal integration only the Read content capability. You must also connect the pages and databases it should read through the integration's access settings.

The database tools changed because the 2.0 API migration makes data sources the primary abstraction. Use `query-data-source`, `update-a-data-source`, and `create-a-data-source` with `data_source_id` where applicable instead of the former database tools.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNotion MCP Server (self Hosted) AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/notion-mcp-server-self-hosted?style=directory)](https://allmcps.com/mcp/notion-mcp-server-self-hosted)
HTML Embed
<a href="https://allmcps.com/mcp/notion-mcp-server-self-hosted"><img src="https://allmcps.com/api/badge/notion-mcp-server-self-hosted?style=directory" alt="Notion MCP Server (self Hosted) on AllMCPs" /></a>