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

@punyamsingh/docmost-mcp

v0.1.0

Published

MCP server for self-hosted Docmost: read, search, create and update pages in Markdown

Readme

docmost-mcp

An MCP server for self-hosted Docmost. Read, search, create and update wiki pages in Markdown from Claude Code, Claude Desktop, Cursor or any other MCP client.

Docmost's official MCP server and API keys are part of its paid Enterprise edition. This server needs neither. It logs in with a normal Docmost account and calls the same API the Docmost web app uses. Since Docmost v0.70 that API accepts and returns Markdown, and the server converts it to and from its editor format.

Tools

| Tool | What it does | |---|---| | list_spaces | Lists the spaces the account can see, with their ids | | list_pages | Lists the root pages of a space, or the children of a page | | search_pages | Full-text search, optionally within one space | | get_page | Returns a page as Markdown, with its id, space, parent and URL | | create_page | Creates a page from Markdown, at a space root or under a parent page | | update_page | Replaces, appends to or prepends to a page body; can rename it or change its icon |

Every tool that takes a page accepts a page id, a slug id, or the page URL copied from the browser.

Content updates go through Docmost's real-time collaboration layer, so if someone has the page open while it is updated, their editor picks up the change instead of overwriting it.

Requirements

  • Node.js 20.12 or newer
  • Docmost v0.70 or newer
  • A Docmost account without MFA. Edits are attributed to this account in page history, so each person should use their own.

Setup

There is nothing to clone. Register the server with your MCP client and pass your Docmost login as environment variables. npx downloads and runs it.

Claude Code: all projects

claude mcp add docmost --scope user \
  -e DOCMOST_URL=https://docs.example.com \
  -e [email protected] \
  -e DOCMOST_PASSWORD='your-password' \
  -- npx -y @punyamsingh/docmost-mcp

Claude Desktop, Cursor and other clients

Add the following to the client's MCP config (claude_desktop_config.json, ~/.cursor/mcp.json, …):

{
  "mcpServers": {
    "docmost": {
      "command": "npx",
      "args": ["-y", "@punyamsingh/docmost-mcp"],
      "env": {
        "DOCMOST_URL": "https://docs.example.com",
        "DOCMOST_EMAIL": "[email protected]",
        "DOCMOST_PASSWORD": "your-password"
      }
    }
  }
}

To run the latest code on GitHub instead of the npm release, replace @punyamsingh/docmost-mcp with github:punyamsingh/docmost-mcp. The first start is slower because it builds from source.

The client stores these values in its own config file in plain text, the same as a .env file would, so use a config file only you can read.

After the first login the session token is cached in ~/.cache/docmost-mcp/ (or $XDG_CACHE_HOME/docmost-mcp/), with file mode 600. Restarting the client therefore does not open a new Docmost session each time. A new login happens automatically when the token expires or is revoked.

From a clone

git clone https://github.com/punyamsingh/docmost-mcp.git
cd docmost-mcp
npm install          # also builds into build/
cp .env.example .env # then fill in DOCMOST_URL, DOCMOST_EMAIL, DOCMOST_PASSWORD
claude mcp add docmost --scope user -- node "$PWD/build/index.js"

.env is git-ignored. Variables set in the client's config take precedence over it.

Limitations

  • Uploading local image files is not supported yet; reference images that are already hosted somewhere by URL.
  • No tools for deleting or moving pages, comments, or permissions.
  • Accounts with MFA cannot log in, because the server has no way to complete the second factor.

License

MIT