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

pmwiki-mcp

v1.0.0

Published

MCP server for PmWiki - enables AI agents to read, create, and edit wiki pages

Readme

PmWiki MCP Server

A Model Context Protocol (MCP) server that enables AI agents like Claude to interact with a PmWiki instance.

Features

  • wiki_find_pages - Search for pages by name or content
  • wiki_read_page - Read page content (raw, markdown, or HTML)
  • wiki_create_page - Create new wiki pages
  • wiki_edit_page - Edit existing wiki pages
  • wiki_list_pages - List pages in a group

Installation

Using npx (recommended)

No installation needed - just configure Claude Desktop:

{
  "mcpServers": {
    "pmwiki": {
      "command": "npx",
      "args": ["-y", "pmwiki-mcp"],
      "env": {
        "PMWIKI_URL": "https://your-wiki-url.com",
        "PMWIKI_MCP_KEY": "your-mcp-key-here"
      }
    }
  }
}

Global installation

npm install -g pmwiki-mcp

Configuration

The server requires two environment variables:

| Variable | Description | |----------|-------------| | PMWIKI_URL | Base URL of your wiki (e.g., https://wiki.example.com) | | PMWIKI_MCP_KEY | MCP authentication key (generated via ?action=mcpkeygen) |

Server Setup

Your PmWiki installation needs the MCP cookbook (cookbook/mcp.php) which provides the API endpoints:

  1. Copy cookbook/mcp.php to your wiki's cookbook directory
  2. Add to local/config.php:
    include_once("$FarmD/cookbook/mcp.php");
  3. Generate an MCP key by visiting ?action=mcpkeygen while logged in as admin
  4. Save the key securely - it provides full read/write access to all pages

Tools

wiki_find_pages

Search for wiki pages by name or content.

Parameters:

  • query (required) - Search query
  • group (optional) - Limit search to a specific group
  • nameOnly (optional) - Only search page names, not content
  • limit (optional) - Maximum results (default: 50)

Example:

Search for pages about "authentication"

wiki_read_page

Read a wiki page's content.

Parameters:

  • pagename (required) - Page name (e.g., "Main.HomePage" or "Main/HomePage")
  • format (optional) - Output format: raw, markdown, or html (default: raw)

Example:

Read the page Main/AdminPage in markdown format

wiki_create_page

Create a new wiki page.

Parameters:

  • pagename (required) - Page name
  • content (required) - Page content in PmWiki markup
  • summary (optional) - Edit summary

Example:

Create page Main.NewPage with content "!! Welcome\n\nThis is a new page."

wiki_edit_page

Edit an existing wiki page.

Parameters:

  • pagename (required) - Page name
  • content (required) - New page content
  • summary (optional) - Edit summary

wiki_list_pages

List wiki pages in a group.

Parameters:

  • group (optional) - Group name (lists all if omitted)
  • limit (optional) - Maximum pages (default: 100)

Example:

List all pages in the Main group

Security

  • The MCP key provides full access to all wiki pages - protect it like a password
  • All requests are logged to wiki.d/.mcplog
  • Rate limiting prevents abuse (60 requests per minute per IP)
  • HTTPS is strongly recommended for production use

Development

# Clone the repository
git clone https://github.com/milee98/pmwiki.git
cd pmwiki/pmwiki-mcp

# Install dependencies
npm install

# Build
npm run build

# Run locally
PMWIKI_URL=https://wiki.example.com PMWIKI_MCP_KEY=xxx npm start

License

MIT