npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@shck-dev/notion-mcp

v0.1.7

Published

MCP server for Notion using internal API — search, export, and import pages as markdown. No workspace admin or OAuth needed, just your browser cookie.

Readme

@shck-dev/notion-mcp

Notion MCP Server — search, export, and import pages as markdown

npm version npm downloads license

No workspace admin. No OAuth. No page sharing.
Just paste 3 values from your browser and go.

Blog Post | GitHub | npm


Features

  • Search — full-text search across your entire workspace
  • Export — download any page as clean markdown (headings, lists, code blocks, tables, links)
  • Import — write markdown back to Notion pages, from a string or local file
  • Zero setup friction — uses the same internal API as the Notion web app; if you can see it in your browser, this server can access it

Tools

| Tool | Description | |------|-------------| | notion_search | Full-text search across all pages in your workspace | | notion_export_page | Export any Notion page as markdown | | notion_import_page | Write markdown content to a Notion page | | notion_import_page_from_file | Write a local .md file to a Notion page |

Why not the official Notion API?

| | This MCP server | Official Notion API | |---|----------|-------------------| | Setup | Paste 3 values from DevTools | Create integration, get admin approval, share pages | | Page access | Everything you can see | Only explicitly shared pages | | Markdown | Bidirectional (export + import) | Read-only blocks API | | Auth | Cookie (token_v2) | OAuth / integration token |

Trade-off: The internal API is undocumented and may change. Token expires periodically (re-grab from browser).

Quick start

1. Get credentials from your browser

  1. Open notion.so in Chrome
  2. Press F12ApplicationCookieswww.notion.so
  3. Copy the token_v2 cookie value → NOTION_TOKEN
  4. Press F12Network tab, do any action in Notion
  5. Find a POST request to api/v3/*, click it
  6. From Request Headers: copy x-notion-active-user-headerNOTION_USER_ID
  7. From Request Body (Payload): find spaceIdNOTION_SPACE_ID

2. Configure your MCP client

Claude Code

claude mcp add notion -- env NOTION_TOKEN=your_token NOTION_USER_ID=your_user_id NOTION_SPACE_ID=your_space_id bunx @shck-dev/notion-mcp

Claude Desktop / Cursor / any MCP client

Add to your MCP config (claude_desktop_config.json, .cursor/mcp.json, etc.):

{
  "mcpServers": {
    "notion": {
      "command": "bunx",
      "args": ["@shck-dev/notion-mcp"],
      "env": {
        "NOTION_TOKEN": "your_token_v2_value",
        "NOTION_USER_ID": "your_user_id",
        "NOTION_SPACE_ID": "your_space_id"
      }
    }
  }
}

Requirements

  • Bun runtime — curl -fsSL https://bun.sh/install | bash

Limitations

  • Internal API — undocumented, may break with Notion updates
  • Token expirytoken_v2 expires periodically; re-grab from browser when auth fails
  • Pages only — no database queries (search, export, import work on pages)
  • Replace-only import — import replaces all page content (no append/merge)
  • Lossy markdown — some complex formatting may simplify during conversion

License

MIT