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

mcp-mdnotion

v1.0.1

Published

MCP server to convert markdown to Notion JSON blocks

Readme

Markdown to Notion MCP Server

This project is a Model Context Protocol (MCP) server that converts Markdown content to Notion API Blocks.

It uses the @tryfabric/martian library to parse Markdown and convert it into a format compatible with the Notion API.

Prerequisites

  • Node.js (v16 or higher)

Installation & Usage

Using npx (Recommended)

The easiest way to use this MCP server is with npx, which allows you to run it without installing it globally:

npx mcp-mdnotion

This will automatically download and run the latest version of the server.

Configuration for npx

When using npx, configure your MCP client with the following settings:

For Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "markdown-to-notion": {
      "command": "npx",
      "args": ["mcp-mdnotion"]
    }
  }
}

Global Installation

Alternatively, you can install the package globally:

npm install -g mcp-mdnotion

Then configure your MCP client to use the global installation:

{
  "servers": {
    "markdown-to-notion": {
      "type": "stdio",
      "command": "mcp-mdnotion"
    }
  }
}

Local Development

For local development or if you want to modify the code:

  1. Clone the repository:

    git clone https://github.com/mikamboo/mcp-mdnotion.git
    cd mcp-mdnotion
  2. Install the dependencies:

    npm install

Quick Start

  1. Start using immediately with npx:

    npx mcp-mdnotion
  2. Configure your MCP client (e.g., VS Code, Claude Desktop) to use the server with npx configuration shown above.

  3. Test the conversion: Use the markdown-to-notion tool in your MCP client to convert markdown like:

    # Hello World
       
    This is a **bold** paragraph with *italic* text.

Build

To build the project, run the following command:

npm run build

This will compile the TypeScript code and output the JavaScript files in the build directory.

Running the Server

To run the MCP server, execute the following command:

node build/index.js

The server will start and listen for requests on standard I/O.

Usage

The server exposes a single tool: markdown-to-notion.

markdown-to-notion

This tool converts a given Markdown string into Notion blocks.

Input:

  • markdown (string): The Markdown content to convert.

Output:

  • A JSON string representing the Notion blocks.

Example:

If you send the following request to the server:

{
  "tool": "markdown-to-notion",
  "input": {
    "markdown": "# Hello World\n\nThis is a paragraph."
  }
}

The server will respond with:

{
  "content": [
    {
      "type": "text",
      "text": "[\n  {\n    \"object\": \"block\",\n    \"type\": \"heading_1\",\n    \"heading_1\": {\n      \"rich_text\": [\n        {\n          \"type\": \"text\",\n          \"text\": {\n            \"content\": \"Hello World\"\n          }\n        }\n      ]\n    }\n  },\n  {\n    \"object\": \"block\",\n    \"type\": \"paragraph\",\n    \"paragraph\": {\n      \"rich_text\": [\n        {\n          \"type\": \"text\",\n          \"text\": {\n            \"content\": \"This is a paragraph.\"\n          }\n        }\n      ]\n    }\n  }\n]"
    }
  ]
}

Integration with MCP Clients

VS Code with Copilot

  1. Create or update .vscode/mcp.json in your project:

    {
      "servers": {
        "markdown-to-notion": {
          "type": "stdio",
          "command": "npx",
          "args": ["mcp-mdnotion"]
        }
      }
    }
  2. Restart VS Code or reload the MCP servers.

  3. Use the tool by asking Copilot to convert markdown to Notion format.

Claude Desktop

  1. Open your Claude Desktop configuration file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the server configuration:

    {
      "mcpServers": {
        "markdown-to-notion": {
          "command": "npx",
          "args": ["mcp-mdnotion"]
        }
      }
    }
  3. Restart Claude Desktop.

Other MCP Clients

For other MCP clients, use the npx command configuration:

  • Command: npx
  • Arguments: ["mcp-mdnotion"]
  • Type: stdio

References

  • https://github.com/tryfabric/martian
  • https://modelcontextprotocol.io/quickstart/server