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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@larryhudson/simple-notion-mcp-server

v0.1.4

Published

Model Context Protocol (MCP) server for Notion

Downloads

32

Readme

Simple Notion MCP Server

Overview

This project implements a Model Context Protocol (MCP) server that acts as a bridge between AI assistants and the Notion API. Unlike the official Notion MCP server which returns large JSON blobs, this server renders Notion pages as Markdown, making them much more efficient for LLMs to process and understand.

Features

  • Markdown Rendering: Converts Notion pages to clean, readable Markdown format
  • Rich Text Support: Preserves formatting for bold, italic, strikethrough, and code elements

Setup

  1. Create a Notion integration and get an API token from https://www.notion.so/my-integrations
  2. Set the token as an environment variable:
export NOTION_TOKEN=your-notion-api-token

Alternatively, you can create a .env file in your project with:

NOTION_TOKEN=your-notion-api-token
  1. Make sure to share any Notion pages you want to access with your integration

Usage

Using with VS Code

Add this to your settings JSON file:

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "notion_token",
        "description": "Notion API Token",
        "password": true
      }
    ],
    "servers": {
      "notion": {
        "command": "npx",
        "args": [
          "-y",
          "@larryhudson/simple-notion-mcp-server"
        ],
        "env": {
          "NOTION_TOKEN": "${input:notion_token}"
        }
      }
    }
  }
}

Using with Claude or other MCP-compatible applications

Add this to your MCP configuration JSON file:

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@larryhudson/simple-notion-mcp-server"],
      "env": {
        "NOTION_TOKEN": "<YOUR_NOTION_API_TOKEN>"
      }
    }
  }
}

Available Tools

get_page

Retrieves a Notion page by ID and renders it as Markdown.

Parameters:

  • page_id: The ID of the Notion page to retrieve

Example:

{
  "page_id": "83c75a5b7a324be29d454536f2345678"
}

How It Works

The server processes Notion pages through these steps:

  1. Fetches page metadata using the Notion API
  2. Retrieves all blocks from the page (with recursive fetching of child blocks)
  3. Formats blocks into Markdown, maintaining structure and formatting
  4. Returns a clean Markdown representation of the page

Technical Details

Built with:

  • Model Context Protocol (MCP): Framework for allowing AI assistants to interact with external tools
  • Notion API Client: Official client for communicating with Notion
  • TypeScript: For type safety and better developer experience

Development

You can use the Model Context Protocol inspector to try out the server:

npx @modelcontextprotocol/inspector npx tsx src/index.ts

Limitations and Future Improvements

  • Currently only supports retrieving pages (not updating or creating)
  • Image handling could be improved in future updates (e.g. rendering images as base64 image blocks)

License

MIT